TMI-TIFF: Now passes YCbCrPositioning to upsampler. Replaced magic value with constant.

This commit is contained in:
Harald Kuhr
2013-02-14 12:48:07 +01:00
parent 1548523336
commit 42831ea65b
4 changed files with 9 additions and 4 deletions
@@ -46,6 +46,6 @@ public class YCbCrUpsamplerStreamTest extends InputStreamAbstractTestCase {
// TODO: Implement + add @Ignore for all tests that makes no sense for this class.
@Override
protected InputStream makeInputStream(byte[] pBytes) {
return new YCbCrUpsamplerStream(new ByteArrayInputStream(pBytes), new int[] {2, 2}, pBytes.length / 4, null);
return new YCbCrUpsamplerStream(new ByteArrayInputStream(pBytes), new int[] {2, 2}, TIFFExtension.YCBCR_POSITIONING_CENTERED, pBytes.length / 4, null);
}
}