forked from enlightenment/efl
Evas: Add support for AGRY88 in evas_common_rgba_image_from_copied_data
This should fix a potential abort().
This commit is contained in:
parent
11937a3841
commit
5a1ef2155d
|
@ -63,6 +63,16 @@ evas_common_rgba_image_from_copied_data(Image_Entry* ie_dst, int w, int h, DATA3
|
||||||
if (image_data)
|
if (image_data)
|
||||||
memcpy(dst->image.data, image_data, w * h * sizeof(DATA32));
|
memcpy(dst->image.data, image_data, w * h * sizeof(DATA32));
|
||||||
break;
|
break;
|
||||||
|
case EVAS_COLORSPACE_AGRY88:
|
||||||
|
dst->cache_entry.flags.alpha = 1;
|
||||||
|
if (image_data)
|
||||||
|
memcpy(dst->image.data8, image_data, w * h * sizeof(DATA16));
|
||||||
|
break;
|
||||||
|
case EVAS_COLORSPACE_GRY8:
|
||||||
|
dst->cache_entry.flags.alpha = 1;
|
||||||
|
if (image_data)
|
||||||
|
memcpy(dst->image.data8, image_data, w * h * sizeof(DATA8));
|
||||||
|
break;
|
||||||
case EVAS_COLORSPACE_YCBCR422P601_PL:
|
case EVAS_COLORSPACE_YCBCR422P601_PL:
|
||||||
case EVAS_COLORSPACE_YCBCR422P709_PL:
|
case EVAS_COLORSPACE_YCBCR422P709_PL:
|
||||||
case EVAS_COLORSPACE_YCBCR422601_PL:
|
case EVAS_COLORSPACE_YCBCR422601_PL:
|
||||||
|
@ -72,11 +82,6 @@ evas_common_rgba_image_from_copied_data(Image_Entry* ie_dst, int w, int h, DATA3
|
||||||
if (image_data && (dst->cs.data))
|
if (image_data && (dst->cs.data))
|
||||||
memcpy(dst->cs.data, image_data, dst->cache_entry.h * sizeof(unsigned char*) * 2);
|
memcpy(dst->cs.data, image_data, dst->cache_entry.h * sizeof(unsigned char*) * 2);
|
||||||
break;
|
break;
|
||||||
case EVAS_COLORSPACE_GRY8:
|
|
||||||
dst->cache_entry.flags.alpha = 1;
|
|
||||||
if (image_data)
|
|
||||||
memcpy(dst->image.data8, image_data, w * h * sizeof(DATA8));
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
abort();
|
abort();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue