diff options
author | Cedric BAIL <cedric.bail@free.fr> | 2011-08-23 15:13:40 +0000 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2011-08-23 15:13:40 +0000 |
commit | 7ae4bd0f31887260171ef6757999dfa30d9f2cb6 (patch) | |
tree | cfad1ed8b72586af46f24493256482ce9c10ea13 /legacy/evas/src/modules/engines/gl_sdl/evas_engine.c | |
parent | 428c512599e313173a3db20a4ce210cf774063ed (diff) |
evas: add YUY2 shader to GL engine.
TODO: add NV12 and NV12T to evas.
SVN revision: 62721
Diffstat (limited to '')
-rw-r--r-- | legacy/evas/src/modules/engines/gl_sdl/evas_engine.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c index 397f76a375..3134270fdd 100644 --- a/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c +++ b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c | |||
@@ -467,6 +467,7 @@ eng_image_colorspace_set(void *data, void *image, int cspace) | |||
467 | break; | 467 | break; |
468 | case EVAS_COLORSPACE_YCBCR422P601_PL: | 468 | case EVAS_COLORSPACE_YCBCR422P601_PL: |
469 | case EVAS_COLORSPACE_YCBCR422P709_PL: | 469 | case EVAS_COLORSPACE_YCBCR422P709_PL: |
470 | case EVAS_COLORSPACE_YCBCR422601_PL: | ||
470 | if (im->tex) evas_gl_common_texture_free(im->tex); | 471 | if (im->tex) evas_gl_common_texture_free(im->tex); |
471 | im->tex = NULL; | 472 | im->tex = NULL; |
472 | if (im->cs.data) | 473 | if (im->cs.data) |
@@ -599,7 +600,8 @@ eng_image_size_set(void *data, void *image, int w, int h) | |||
599 | } | 600 | } |
600 | im_old = image; | 601 | im_old = image; |
601 | if ((eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P601_PL) || | 602 | if ((eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P601_PL) || |
602 | (eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P709_PL)) | 603 | (eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P709_PL) || |
604 | (eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422601_PL)) | ||
603 | w &= ~0x1; | 605 | w &= ~0x1; |
604 | if ((im_old) && (im_old->im->cache_entry.w == w) && (im_old->im->cache_entry.h == h)) | 606 | if ((im_old) && (im_old->im->cache_entry.w == w) && (im_old->im->cache_entry.h == h)) |
605 | return image; | 607 | return image; |
@@ -686,6 +688,7 @@ eng_image_data_get(void *data, void *image, int to_write, DATA32 **image_data, i | |||
686 | break; | 688 | break; |
687 | case EVAS_COLORSPACE_YCBCR422P601_PL: | 689 | case EVAS_COLORSPACE_YCBCR422P601_PL: |
688 | case EVAS_COLORSPACE_YCBCR422P709_PL: | 690 | case EVAS_COLORSPACE_YCBCR422P709_PL: |
691 | case EVAS_COLORSPACE_YCBCR422601_PL: | ||
689 | *image_data = im->cs.data; | 692 | *image_data = im->cs.data; |
690 | break; | 693 | break; |
691 | default: | 694 | default: |
@@ -725,6 +728,7 @@ eng_image_data_put(void *data, void *image, DATA32 *image_data) | |||
725 | break; | 728 | break; |
726 | case EVAS_COLORSPACE_YCBCR422P601_PL: | 729 | case EVAS_COLORSPACE_YCBCR422P601_PL: |
727 | case EVAS_COLORSPACE_YCBCR422P709_PL: | 730 | case EVAS_COLORSPACE_YCBCR422P709_PL: |
731 | case EVAS_COLORSPACE_YCBCR422601_PL: | ||
728 | if (image_data != im->cs.data) | 732 | if (image_data != im->cs.data) |
729 | { | 733 | { |
730 | if (im->cs.data) | 734 | if (im->cs.data) |