summaryrefslogtreecommitdiff
path: root/src/lib/evas/cache2
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-04-08 17:19:38 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-04-15 18:50:37 +0900
commit54fb9b23467211574848e84d5a3771bd61a3789e (patch)
tree6ee97aae0d99d388f4364a6c8eaa6c0dc9f73a64 /src/lib/evas/cache2
parent44b3cd15642a1df5b1987de8507967f96f75fdc8 (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.c4
-rw-r--r--src/lib/evas/cache2/evas_cache2.h10
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
387EAPI Image_Entry * 387EAPI Image_Entry *
388evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace) 388evas_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
417EAPI Image_Entry * 417EAPI Image_Entry *
418evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace) 418evas_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
72EAPI DATA32 * evas_cache2_image_pixels(Image_Entry *im); 72EAPI DATA32 * evas_cache2_image_pixels(Image_Entry *im);
73EAPI Image_Entry * evas_cache2_image_writable(Image_Entry *im); 73EAPI Image_Entry * evas_cache2_image_writable(Image_Entry *im);
74EAPI Image_Entry * evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace); 74EAPI Image_Entry * evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace);
75EAPI Image_Entry * evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace); 75EAPI Image_Entry * evas_cache2_image_copied_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace);
76EAPI Image_Entry * evas_cache2_image_size_set(Image_Entry *im, unsigned int w, unsigned h); 76EAPI Image_Entry * evas_cache2_image_size_set(Image_Entry *im, unsigned int w, unsigned h);
77EAPI Image_Entry * evas_cache2_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h); 77EAPI Image_Entry * evas_cache2_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
78EAPI Image_Entry * evas_cache2_image_empty(Evas_Cache2 *cache); 78EAPI Image_Entry * evas_cache2_image_empty(Evas_Cache2 *cache);