#619: Fix WebP Y'CbCr->RGB conversion (now uses rec 601)

(cherry picked from commit 976e5d6210)
This commit is contained in:
Harald Kuhr
2021-08-26 16:47:51 +02:00
parent ca3adb7c45
commit ed46305d31
9 changed files with 120 additions and 63 deletions
@@ -2136,7 +2136,8 @@ public final class TIFFImageReader extends ImageReaderBase {
&& (referenceBW == null || Arrays.equals(referenceBW, REFERENCE_BLACK_WHITE_YCC_DEFAULT))) {
// Fast, default conversion
for (int i = 0; i < data.length; i += 3) {
YCbCrConverter.convertYCbCr2RGB(data, data, i);
// TODO: The default is likely neither JPEG or rec 601, as the reference B/W doesn't match...
YCbCrConverter.convertJPEGYCbCr2RGB(data, data, i);
}
}
else {