Evas: Add support for AGRY88 in image creation functions
- evas_common_rgba_image_from_data - evas_common_rgba_image_colorspace_set - evas_common_image_colorspace_normalize
This commit is contained in:
parent
5a1ef2155d
commit
77d0d69c3e
|
@ -15,13 +15,21 @@ evas_common_rgba_image_from_data(Image_Entry* ie_dst, int w, int h, DATA32 *imag
|
||||||
|
|
||||||
switch (cspace)
|
switch (cspace)
|
||||||
{
|
{
|
||||||
case EVAS_COLORSPACE_ARGB8888:
|
case EVAS_COLORSPACE_ARGB8888:
|
||||||
dst->cache_entry.w = w;
|
dst->cache_entry.w = w;
|
||||||
dst->cache_entry.h = h;
|
dst->cache_entry.h = h;
|
||||||
dst->image.data = image_data;
|
dst->image.data = image_data;
|
||||||
dst->image.no_free = 1;
|
dst->image.no_free = 1;
|
||||||
dst->cache_entry.flags.alpha = alpha ? 1 : 0;
|
dst->cache_entry.flags.alpha = alpha ? 1 : 0;
|
||||||
break;
|
break;
|
||||||
|
case EVAS_COLORSPACE_AGRY88:
|
||||||
|
case EVAS_COLORSPACE_GRY8:
|
||||||
|
dst->cache_entry.w = w;
|
||||||
|
dst->cache_entry.h = h;
|
||||||
|
dst->image.data8 = (DATA8 *) image_data;
|
||||||
|
dst->image.no_free = 1;
|
||||||
|
dst->cache_entry.flags.alpha = 1;
|
||||||
|
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:
|
||||||
|
@ -32,14 +40,7 @@ evas_common_rgba_image_from_data(Image_Entry* ie_dst, int w, int h, DATA32 *imag
|
||||||
dst->cache_entry.h = h;
|
dst->cache_entry.h = h;
|
||||||
dst->cs.data = image_data;
|
dst->cs.data = image_data;
|
||||||
dst->cs.no_free = 1;
|
dst->cs.no_free = 1;
|
||||||
break;
|
break;
|
||||||
case EVAS_COLORSPACE_GRY8:
|
|
||||||
dst->cache_entry.w = w;
|
|
||||||
dst->cache_entry.h = h;
|
|
||||||
dst->image.data8 = (DATA8 *) image_data;
|
|
||||||
dst->image.no_free = 1;
|
|
||||||
dst->cache_entry.flags.alpha = 1;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
abort();
|
abort();
|
||||||
break;
|
break;
|
||||||
|
@ -126,6 +127,7 @@ evas_common_rgba_image_colorspace_set(Image_Entry* ie_dst, Evas_Colorspace cspac
|
||||||
switch (cspace)
|
switch (cspace)
|
||||||
{
|
{
|
||||||
case EVAS_COLORSPACE_ARGB8888:
|
case EVAS_COLORSPACE_ARGB8888:
|
||||||
|
case EVAS_COLORSPACE_AGRY88:
|
||||||
case EVAS_COLORSPACE_GRY8:
|
case EVAS_COLORSPACE_GRY8:
|
||||||
if (dst->cs.data)
|
if (dst->cs.data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -760,6 +760,7 @@ evas_common_image_colorspace_normalize(RGBA_Image *im)
|
||||||
{
|
{
|
||||||
case EVAS_COLORSPACE_ARGB8888:
|
case EVAS_COLORSPACE_ARGB8888:
|
||||||
case EVAS_COLORSPACE_GRY8:
|
case EVAS_COLORSPACE_GRY8:
|
||||||
|
case EVAS_COLORSPACE_AGRY88:
|
||||||
if (im->image.data != im->cs.data)
|
if (im->image.data != im->cs.data)
|
||||||
{
|
{
|
||||||
#ifdef EVAS_CSERVE2
|
#ifdef EVAS_CSERVE2
|
||||||
|
|
Loading…
Reference in New Issue