Near lossless feature: fix some comments.

Change-Id: I2c5fc2a3b3fe5123d66b42bf148e361b4862dfb9
This commit is contained in:
Urvang Joshi
2016-02-19 16:44:01 +00:00
committed by James Zern
parent 6753f35cac
commit 3335713169
2 changed files with 8 additions and 8 deletions

View File

@ -126,12 +126,12 @@ static void NearLossless(int xsize, int ysize, uint32_t* argb,
static int QualityToLimitBits(int quality) {
// quality mapping:
// 0..19 -> 5
// 0..39 -> 4
// 0..59 -> 3
// 0..79 -> 2
// 0..99 -> 1
// 100 -> 0
// 0..19 -> 5
// 20..39 -> 4
// 40..59 -> 3
// 60..79 -> 2
// 80..99 -> 1
// 100 -> 0
return MAX_LIMIT_BITS - quality / 20;
}