Enlightenment CVS committal Author : cedric Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/cache Modified Files: evas_cache_image.c Log Message: Fix width correctly depending on colorspace. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/cache/evas_cache_image.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- evas_cache_image.c 4 Jun 2008 08:20:39 -0000 1.22 +++ evas_cache_image.c 10 Jun 2008 09:20:41 -0000 1.23 @@ -628,6 +628,10 @@ assert(cache); + if ((im->space == EVAS_COLORSPACE_YCBCR422P601_PL) || + (im->space == EVAS_COLORSPACE_YCBCR422P709_PL)) + w &= ~0x1; + im = _evas_cache_image_entry_new(cache, NULL, 0, NULL, NULL, NULL, NULL); im->w = w; im->h = h; @@ -655,6 +659,10 @@ cache = im->cache; + if ((im->space == EVAS_COLORSPACE_YCBCR422P601_PL) || + (im->space == EVAS_COLORSPACE_YCBCR422P709_PL)) + w &= ~0x1; + _evas_cache_image_entry_surface_alloc(cache, im, w, h); if (cache->func.debug) @@ -671,6 +679,10 @@ assert(im); assert(im->cache); assert(im->references > 0); + + if ((im->space == EVAS_COLORSPACE_YCBCR422P601_PL) || + (im->space == EVAS_COLORSPACE_YCBCR422P709_PL)) + w &= ~0x1; if ((im->w == w) && (im->h == h)) return im; ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs