Skip to content

Commit

Permalink
Merge pull request #44682 from madmiraal/fix-etc-quality
Browse files Browse the repository at this point in the history
Fix ETC quality setting
  • Loading branch information
akien-mga authored Dec 26, 2020
2 parents 0f509b0 + 072b8a1 commit f2968f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/etc/image_compress_etc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2968f5

Please sign in to comment.