diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-04-08 17:19:38 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-04-15 18:50:37 +0900 |
commit | 54fb9b23467211574848e84d5a3771bd61a3789e (patch) | |
tree | 6ee97aae0d99d388f4364a6c8eaa6c0dc9f73a64 /src/lib/evas/cache2 | |
parent | 44b3cd15642a1df5b1987de8507967f96f75fdc8 (diff) |
Evas: Use Evas_Colorspace to declare cspace
Why use int when we have a proper type?
All these APIs are internal.
Diffstat (limited to 'src/lib/evas/cache2')
-rw-r--r-- | src/lib/evas/cache2/evas_cache2.c | 4 | ||||
-rw-r--r-- | src/lib/evas/cache2/evas_cache2.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c index 5690a917e9..353ab0d3ab 100644 --- a/src/lib/evas/cache2/evas_cache2.c +++ b/src/lib/evas/cache2/evas_cache2.c | |||
@@ -385,7 +385,7 @@ _evas_cache2_image_entry_preload_remove(Image_Entry *ie, const void *target) | |||
385 | } | 385 | } |
386 | 386 | ||
387 | EAPI Image_Entry * | 387 | EAPI Image_Entry * |
388 | evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace) | 388 | evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace) |
389 | { | 389 | { |
390 | Image_Entry *im; | 390 | Image_Entry *im; |
391 | 391 | ||
@@ -415,7 +415,7 @@ evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h | |||
415 | } | 415 | } |
416 | 416 | ||
417 | EAPI Image_Entry * | 417 | EAPI Image_Entry * |
418 | evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace) | 418 | evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace) |
419 | { | 419 | { |
420 | Image_Entry *im; | 420 | Image_Entry *im; |
421 | 421 | ||
diff --git a/src/lib/evas/cache2/evas_cache2.h b/src/lib/evas/cache2/evas_cache2.h index 6c7f5f801b..efa76fc5b3 100644 --- a/src/lib/evas/cache2/evas_cache2.h +++ b/src/lib/evas/cache2/evas_cache2.h | |||
@@ -27,10 +27,10 @@ struct _Evas_Cache2_Image_Func | |||
27 | int (*size_set)(Image_Entry *dst, const Image_Entry *src, unsigned int w, unsigned int h); | 27 | int (*size_set)(Image_Entry *dst, const Image_Entry *src, unsigned int w, unsigned int h); |
28 | 28 | ||
29 | /* The destination surface does not have any surface. */ | 29 | /* The destination surface does not have any surface. */ |
30 | int (*copied_data)(Image_Entry *dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace); | 30 | int (*copied_data)(Image_Entry *dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace); |
31 | /* The destination surface does not have any surface. */ | 31 | /* The destination surface does not have any surface. */ |
32 | int (*data)(Image_Entry *dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace); | 32 | int (*data)(Image_Entry *dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace); |
33 | int (*color_space)(Image_Entry *dst, int cspace); | 33 | int (*color_space)(Image_Entry *dst, Evas_Colorspace cspace); |
34 | 34 | ||
35 | /* This function need to update im->w and im->h. */ | 35 | /* This function need to update im->w and im->h. */ |
36 | // int (*load)(Image_Entry *im); /**< return is EVAS_LOAD_ERROR_* or EVAS_LOAD_ERROR_NONE! */ | 36 | // int (*load)(Image_Entry *im); /**< return is EVAS_LOAD_ERROR_* or EVAS_LOAD_ERROR_NONE! */ |
@@ -71,8 +71,8 @@ EAPI void evas_cache2_image_cache_key_create(char *hkey, const char *path, size_ | |||
71 | 71 | ||
72 | EAPI DATA32 * evas_cache2_image_pixels(Image_Entry *im); | 72 | EAPI DATA32 * evas_cache2_image_pixels(Image_Entry *im); |
73 | EAPI Image_Entry * evas_cache2_image_writable(Image_Entry *im); | 73 | EAPI Image_Entry * evas_cache2_image_writable(Image_Entry *im); |
74 | EAPI Image_Entry * evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace); | 74 | EAPI Image_Entry * evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace); |
75 | EAPI Image_Entry * evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace); | 75 | EAPI Image_Entry * evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace); |
76 | EAPI Image_Entry * evas_cache2_image_size_set(Image_Entry *im, unsigned int w, unsigned h); | 76 | EAPI Image_Entry * evas_cache2_image_size_set(Image_Entry *im, unsigned int w, unsigned h); |
77 | EAPI Image_Entry * evas_cache2_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h); | 77 | EAPI Image_Entry * evas_cache2_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h); |
78 | EAPI Image_Entry * evas_cache2_image_empty(Evas_Cache2 *cache); | 78 | EAPI Image_Entry * evas_cache2_image_empty(Evas_Cache2 *cache); |