mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 11:05:29 -04:00
TMI-TIFF: Minor bug introduced by testing..
This commit is contained in:
parent
00f47e81a4
commit
b834a32b01
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user