summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-04-08 15:57:27 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-04-08 15:58:58 +0900
commit60d144d963682ddc55820b2ad98de529541278a1 (patch)
treef0c0730ae19d6231d09ccd5f4f309efe749d1478
parent01c162697793a013ec559c1b2368d2d1a7a5dee3 (diff)
ETC1 encoding: fix typo in TGV and EET savers
If quality is >30 && <=70 then choose medium params, not low. Spotted by Snacker, thanks.
-rw-r--r--src/lib/eet/eet_image.c2
-rw-r--r--src/modules/evas/savers/tgv/evas_image_save_tgv.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eet/eet_image.c b/src/lib/eet/eet_image.c
index b275c55489..6564372109 100644
--- a/src/lib/eet/eet_image.c
+++ b/src/lib/eet/eet_image.c
@@ -1024,7 +1024,7 @@ eet_data_image_etc1_compressed_convert(int *size,
1024 param.m_quality = rg_etc1_high_quality; 1024 param.m_quality = rg_etc1_high_quality;
1025 block = 7; 1025 block = 7;
1026 } 1026 }
1027 else if (quality < 30) 1027 else if (quality > 30)
1028 { 1028 {
1029 param.m_quality = rg_etc1_medium_quality; 1029 param.m_quality = rg_etc1_medium_quality;
1030 block = 6; 1030 block = 6;
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 fedba2442a..4a6af37f57 100644
--- a/src/modules/evas/savers/tgv/evas_image_save_tgv.c
+++ b/src/modules/evas/savers/tgv/evas_image_save_tgv.c
@@ -47,7 +47,7 @@ evas_image_save_file_tgv(RGBA_Image *im,
47 param.m_quality = rg_etc1_high_quality; 47 param.m_quality = rg_etc1_high_quality;
48 block = 7; 48 block = 7;
49 } 49 }
50 else if (quality < 30) 50 else if (quality > 30)
51 { 51 {
52 param.m_quality = rg_etc1_medium_quality; 52 param.m_quality = rg_etc1_medium_quality;
53 block = 6; 53 block = 6;