Minor patches in lossless calculation

This commit is contained in:
robo-mop
2023-10-18 10:50:59 +05:30
parent f1f40302fe
commit 3ed34e101c
6 changed files with 5 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ val encode(std::string buffer, int width, int height, AvifOptions options) {
break;
}
bool lossless = options.quality == AVIF_QUANTIZER_LOSSLESS &&
bool lossless = options.quality == AVIF_QUALITY_LOSSLESS &&
(options.qualityAlpha == -1 || options.qualityAlpha == AVIF_QUALITY_LOSSLESS) &&
format == AVIF_PIXEL_FORMAT_YUV444;