jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=07700a799ce7598b03e5a552db358e223f32eb61

commit 07700a799ce7598b03e5a552db358e223f32eb61
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Wed Apr 16 18:28:56 2014 +0900

    Evas TGV saver: Use medium quality by default
    
    The default quality is 80 and high quality is horribly slow,
    so default to medium quality instead (it's already very slow).
    
    If you really want to shoot yourself in the foot and use high
    quality, just set quality > 95 and go make some coffee.
    
    Also, disable dithering, it creates horrible artifacts on real
    life pictures (gradients and flat surfaces especially).
---
 src/modules/evas/savers/tgv/evas_image_save_tgv.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 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 3cad4ba..ce1ee72 100644
--- a/src/modules/evas/savers/tgv/evas_image_save_tgv.c
+++ b/src/modules/evas/savers/tgv/evas_image_save_tgv.c
@@ -42,8 +42,10 @@ evas_image_save_file_tgv(RGBA_Image *im,
    width = htonl(im->cache_entry.w);
    height = htonl(im->cache_entry.h);
 
-   param.m_dithering = 1;
-   if (quality > 70)
+   // Disable dithering, as it will deteriorate the quality of flat surfaces
+   param.m_dithering = 0;
+
+   if (quality > 95)
      {
         param.m_quality = rg_etc1_high_quality;
         block = 7;

-- 


Reply via email to