diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-08-24 23:44:46 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-08-25 13:21:25 +0100 |
commit | 7b3096f947064daf342f79bff6d37974e365f5de (patch) | |
tree | 0ea5fee7a4abc6adca9c3cb0240d1d930db98917 /src/modules/evas/engines | |
parent | b3c5008284d5002bd7e5a78968498996d6154569 (diff) | |
download | efl-7b3096f947064daf342f79bff6d37974e365f5de.tar.gz |
evas - gl generic - use correct enums for types
Diffstat (limited to 'src/modules/evas/engines')
-rw-r--r-- | src/modules/evas/engines/gl_generic/evas_engine.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c index a051f00242..b413436efd 100644 --- a/src/modules/evas/engines/gl_generic/evas_engine.c +++ b/src/modules/evas/engines/gl_generic/evas_engine.c @@ -2467,7 +2467,8 @@ eng_ector_buffer_new(void *engine, Evas *evas, int w, int h, // alloc buffer ie = evas_cache_image_copied_data(evas_common_image_cache_get(), w, h, - NULL, EINA_TRUE, cspace); + NULL, EINA_TRUE, + (Evas_Colorspace)cspace); if (!ie) return NULL; pixels = ((RGBA_Image *) ie)->image.data; memset(pixels, 0, w * h * pxs); @@ -2758,15 +2759,15 @@ eng_image_data_maps_get(void *engine EINA_UNUSED, const void *image, const Eina_ } static inline Eina_Bool -_is_yuv(Efl_Gfx_Colorspace cspace) +_is_yuv(Evas_Colorspace cspace) { switch (cspace) { - case EFL_GFX_COLORSPACE_YCBCR422P601_PL: - case EFL_GFX_COLORSPACE_YCBCR422P709_PL: - case EFL_GFX_COLORSPACE_YCBCR422601_PL: - case EFL_GFX_COLORSPACE_YCBCR420NV12601_PL: - case EFL_GFX_COLORSPACE_YCBCR420TM12601_PL: + case EVAS_COLORSPACE_YCBCR422P601_PL: + case EVAS_COLORSPACE_YCBCR422P709_PL: + case EVAS_COLORSPACE_YCBCR422601_PL: + case EVAS_COLORSPACE_YCBCR420NV12601_PL: + case EVAS_COLORSPACE_YCBCR420TM12601_PL: return EINA_TRUE; default: |