summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-27 20:17:20 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-27 20:19:46 +0900
commitcc49c1702b64152144a1fc6534ba9de71a61d4ba (patch)
treef3d162a6c39c42ebf1b8a24e23fc20c361de2591 /src/modules/evas/engines/gl_common/evas_gl_texture.c
parent80000e993e779caf4317cd595c6c4593d2db8857 (diff)
evas - fix yuv support to no longer ignore 709 colorspace params
if yuou use 709 instead of 601 yuv (ycbcr) evas will just be wrong and use 601. this fixes that and implements 709. it also fixes a scaling bug for yuv in the gl engine. no one noticed but me, so i won't call this a bug fix, and it can go into the next efl release - no need to backport unless it actually bothers peolpe (which it seemingly doesn't)
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index 20105cde51..39b97ae8f5 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -1684,7 +1684,7 @@ evas_gl_common_texture_yuv_new(Evas_Engine_GL_Context *gc, DATA8 **rows, unsigne
1684 tex = evas_gl_common_texture_alloc(gc, w, h, EINA_FALSE); 1684 tex = evas_gl_common_texture_alloc(gc, w, h, EINA_FALSE);
1685 if (!tex) return NULL; 1685 if (!tex) return NULL;
1686 1686
1687 tex->ptu = _pool_tex_new(gc, w / 2 + 1, h / 2 + 1, lum_ifmt, lum_fmt); 1687 tex->ptu = _pool_tex_new(gc, (w + 1) / 2, (h + 1) / 2, lum_ifmt, lum_fmt);
1688 if (!tex->ptu) 1688 if (!tex->ptu)
1689 { 1689 {
1690 evas_gl_common_texture_light_free(tex); 1690 evas_gl_common_texture_light_free(tex);