summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_generic/evas_engine.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-24 23:44:46 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-25 13:21:25 +0100
commit7b3096f947064daf342f79bff6d37974e365f5de (patch)
tree0ea5fee7a4abc6adca9c3cb0240d1d930db98917 /src/modules/evas/engines/gl_generic/evas_engine.c
parentb3c5008284d5002bd7e5a78968498996d6154569 (diff)
evas - gl generic - use correct enums for types
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_generic/evas_engine.c15
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,
2467 2467
2468 // alloc buffer 2468 // alloc buffer
2469 ie = evas_cache_image_copied_data(evas_common_image_cache_get(), w, h, 2469 ie = evas_cache_image_copied_data(evas_common_image_cache_get(), w, h,
2470 NULL, EINA_TRUE, cspace); 2470 NULL, EINA_TRUE,
2471 (Evas_Colorspace)cspace);
2471 if (!ie) return NULL; 2472 if (!ie) return NULL;
2472 pixels = ((RGBA_Image *) ie)->image.data; 2473 pixels = ((RGBA_Image *) ie)->image.data;
2473 memset(pixels, 0, w * h * pxs); 2474 memset(pixels, 0, w * h * pxs);
@@ -2758,15 +2759,15 @@ eng_image_data_maps_get(void *engine EINA_UNUSED, const void *image, const Eina_
2758} 2759}
2759 2760
2760static inline Eina_Bool 2761static inline Eina_Bool
2761_is_yuv(Efl_Gfx_Colorspace cspace) 2762_is_yuv(Evas_Colorspace cspace)
2762{ 2763{
2763 switch (cspace) 2764 switch (cspace)
2764 { 2765 {
2765 case EFL_GFX_COLORSPACE_YCBCR422P601_PL: 2766 case EVAS_COLORSPACE_YCBCR422P601_PL:
2766 case EFL_GFX_COLORSPACE_YCBCR422P709_PL: 2767 case EVAS_COLORSPACE_YCBCR422P709_PL:
2767 case EFL_GFX_COLORSPACE_YCBCR422601_PL: 2768 case EVAS_COLORSPACE_YCBCR422601_PL:
2768 case EFL_GFX_COLORSPACE_YCBCR420NV12601_PL: 2769 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
2769 case EFL_GFX_COLORSPACE_YCBCR420TM12601_PL: 2770 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
2770 return EINA_TRUE; 2771 return EINA_TRUE;
2771 2772
2772 default: 2773 default: