summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-04-18 18:32:20 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-04-18 18:33:42 +0900
commit356939a8fdd7b7e30acfb0826d5c37d5661da179 (patch)
treeb15462e89dc1f5499a53975fb9fdb734e82550db
parentf6eae69eb24d9bce23929ebc2fb904bc73f4a217 (diff)
Evas: Add comments to the TGV saver (FIXME)
The block size has a visual effect. This is obviously a bug.
-rw-r--r--src/modules/evas/savers/tgv/evas_image_save_tgv.c19
1 files changed, 7 insertions, 12 deletions
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,
45 // Disable dithering, as it will deteriorate the quality of flat surfaces 45 // Disable dithering, as it will deteriorate the quality of flat surfaces
46 param.m_dithering = 0; 46 param.m_dithering = 0;
47 47
48 // FIXME: Depending on the block size, we have some distortion of the image
49 // Usually, one or two pixels on the top & left borders are removed
50 block = 6;
51
48 if (quality > 95) 52 if (quality > 95)
49 { 53 param.m_quality = rg_etc1_high_quality;
50 param.m_quality = rg_etc1_high_quality;
51 block = 7;
52 }
53 else if (quality > 30) 54 else if (quality > 30)
54 { 55 param.m_quality = rg_etc1_medium_quality;
55 param.m_quality = rg_etc1_medium_quality;
56 block = 6;
57 }
58 else 56 else
59 { 57 param.m_quality = rg_etc1_low_quality;
60 param.m_quality = rg_etc1_low_quality;
61 block = 5;
62 }
63 58
64 header[4] = (block << 4) | block; 59 header[4] = (block << 4) | block;
65 header[5] = 0; 60 header[5] = 0;