TMI-TIFF: Minor bug introduced by testing..

This commit is contained in:
Harald Kuhr 2013-01-31 16:35:37 +01:00
parent 00f47e81a4
commit b834a32b01

View File

@ -226,7 +226,7 @@ final class YCbCrUpsamplerStream extends FilterInputStream {
double lumaBlue = coefficients[2];
rgb[offset ] = clamp((int) Math.round(cr * (2 - 2 * lumaRed) + y));
rgb[offset + 2] = clamp((int) Math.round(cb * (2 - 2 * lumaBlue) + y) - 128);
rgb[offset + 2] = clamp((int) Math.round(cb * (2 - 2 * lumaBlue) + y));
rgb[offset + 1] = clamp((int) Math.round((y - lumaRed * (rgb[offset] & 0xff) - lumaBlue * (rgb[offset + 2] & 0xff)) / lumaGreen));
}