PlanarYUVLuminanceSourceTestCase.java (zxing-zxing-3.4.1) | : | PlanarYUVLuminanceSourceTestCase.java (zxing-zxing-3.5.0) | ||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
import org.junit.Assert; | import org.junit.Assert; | |||
import org.junit.Test; | import org.junit.Test; | |||
/** | /** | |||
* Tests {@link PlanarYUVLuminanceSource}. | * Tests {@link PlanarYUVLuminanceSource}. | |||
*/ | */ | |||
public final class PlanarYUVLuminanceSourceTestCase extends Assert { | public final class PlanarYUVLuminanceSourceTestCase extends Assert { | |||
private static final byte[] YUV = { | private static final byte[] YUV = { | |||
0, 1, 1, 2, 3, 5, | 0, 1, 1, 2, 3, 5, | |||
8, 13, 21, 34, 55, 89, | 8, 13, 21, 34, 55, 89, | |||
0, -1, -1, -2, -3, -5, | 0, -1, -1, -2, -3, -5, | |||
-8, -13, -21, -34, -55, -89, | -8, -13, -21, -34, -55, -89, | |||
127, 127, 127, 127, 127, 127, | 127, 127, 127, 127, 127, 127, | |||
127, 127, 127, 127, 127, 127, | 127, 127, 127, 127, 127, 127, | |||
}; | }; | |||
private static final int COLS = 6; | private static final int COLS = 6; | |||
private static final int ROWS = 4; | private static final int ROWS = 4; | |||
private static final byte[] Y = new byte[COLS * ROWS]; | private static final byte[] Y = new byte[COLS * ROWS]; | |||
static { | static { | |||
System.arraycopy(YUV, 0, Y, 0, Y.length); | System.arraycopy(YUV, 0, Y, 0, Y.length); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |