From: Jean-Philippe Andre Date: Fri, 18 Apr 2014 09:32:20 +0000 (+0900) Subject: Evas: Add comments to the TGV saver (FIXME) X-Git-Tag: v1.10.0-alpha1~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=356939a8fdd7b7e30acfb0826d5c37d5661da179;p=platform%2Fupstream%2Fefl.git Evas: Add comments to the TGV saver (FIXME) The block size has a visual effect. This is obviously a bug. --- diff --git a/src/modules/evas/savers/tgv/evas_image_save_tgv.c b/src/modules/evas/savers/tgv/evas_image_save_tgv.c index b1a52b7..357dfff 100644 --- a/src/modules/evas/savers/tgv/evas_image_save_tgv.c +++ b/src/modules/evas/savers/tgv/evas_image_save_tgv.c @@ -45,21 +45,16 @@ evas_image_save_file_tgv(RGBA_Image *im, // Disable dithering, as it will deteriorate the quality of flat surfaces param.m_dithering = 0; + // FIXME: Depending on the block size, we have some distortion of the image + // Usually, one or two pixels on the top & left borders are removed + block = 6; + if (quality > 95) - { - param.m_quality = rg_etc1_high_quality; - block = 7; - } + param.m_quality = rg_etc1_high_quality; else if (quality > 30) - { - param.m_quality = rg_etc1_medium_quality; - block = 6; - } + param.m_quality = rg_etc1_medium_quality; else - { - param.m_quality = rg_etc1_low_quality; - block = 5; - } + param.m_quality = rg_etc1_low_quality; header[4] = (block << 4) | block; header[5] = 0;