diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-26 10:23:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-26 10:23:06 +0100 |
commit | f2968f59e1243c17c9f6cff92677c59d4078257c (patch) | |
tree | ca277338027ac8411b8d28fb128c08e286bdddb2 | |
parent | 0f509b0723b15cc4d426eb8dd820566edfd16fd6 (diff) | |
parent | 072b8a1894fc24473c9ec4d30dc1019c5e57a921 (diff) |
Merge pull request #44682 from madmiraal/fix-etc-quality
Fix ETC quality setting
-rw-r--r-- | modules/etc/image_compress_etc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/etc/image_compress_etc.cpp b/modules/etc/image_compress_etc.cpp index bcdea41b43..552d3025f4 100644 --- a/modules/etc/image_compress_etc.cpp +++ b/modules/etc/image_compress_etc.cpp @@ -166,12 +166,12 @@ static void _compress_etc(Image *p_img, float p_lossy_quality, bool force_etc1_f int encoding_time = 0; float effort = 0.0; //default, reasonable time - if (p_lossy_quality > 0.75) { - effort = 0.4; + if (p_lossy_quality > 0.95) { + effort = 80; } else if (p_lossy_quality > 0.85) { - effort = 0.6; - } else if (p_lossy_quality > 0.95) { - effort = 0.8; + effort = 60; + } else if (p_lossy_quality > 0.75) { + effort = 40; } Etc::ErrorMetric error_metric = Etc::ErrorMetric::RGBX; // NOTE: we can experiment with other error metrics |