Lines Matching refs:b2
24 private static byte sadByte2Byte(byte[] b1, byte[] b2) { in sadByte2Byte() argument
25 int min_length = Math.min(b1.length, b2.length); in sadByte2Byte()
28 sad += Math.abs(b1[i] - b2[i]); in sadByte2Byte()
33 private static byte sadByte2ByteAlt(byte[] b1, byte[] b2) { in sadByte2ByteAlt() argument
34 int min_length = Math.min(b1.length, b2.length); in sadByte2ByteAlt()
38 byte p = b2[i]; in sadByte2ByteAlt()
44 private static byte sadByte2ByteAlt2(byte[] b1, byte[] b2) { in sadByte2ByteAlt2() argument
45 int min_length = Math.min(b1.length, b2.length); in sadByte2ByteAlt2()
49 byte p = b2[i]; in sadByte2ByteAlt2()
57 private static short sadByte2Short(byte[] b1, byte[] b2) { in sadByte2Short() argument
58 int min_length = Math.min(b1.length, b2.length); in sadByte2Short()
61 sad += Math.abs(b1[i] - b2[i]); in sadByte2Short()
66 private static short sadByte2ShortAlt(byte[] b1, byte[] b2) { in sadByte2ShortAlt() argument
67 int min_length = Math.min(b1.length, b2.length); in sadByte2ShortAlt()
71 byte p = b2[i]; in sadByte2ShortAlt()
77 private static short sadByte2ShortAlt2(byte[] b1, byte[] b2) { in sadByte2ShortAlt2() argument
78 int min_length = Math.min(b1.length, b2.length); in sadByte2ShortAlt2()
82 byte p = b2[i]; in sadByte2ShortAlt2()
121 private static int sadByte2Int(byte[] b1, byte[] b2) { in sadByte2Int() argument
122 int min_length = Math.min(b1.length, b2.length); in sadByte2Int()
125 sad += Math.abs(b1[i] - b2[i]); in sadByte2Int()
161 private static int sadByte2IntAlt(byte[] b1, byte[] b2) { in sadByte2IntAlt() argument
162 int min_length = Math.min(b1.length, b2.length); in sadByte2IntAlt()
166 byte p = b2[i]; in sadByte2IntAlt()
203 private static int sadByte2IntAlt2(byte[] b1, byte[] b2) { in sadByte2IntAlt2() argument
204 int min_length = Math.min(b1.length, b2.length); in sadByte2IntAlt2()
208 byte p = b2[i]; in sadByte2IntAlt2()
252 private static long sadByte2Long(byte[] b1, byte[] b2) { in sadByte2Long() argument
253 int min_length = Math.min(b1.length, b2.length); in sadByte2Long()
257 long y = b2[i]; in sadByte2Long()
298 private static long sadByte2LongAt1(byte[] b1, byte[] b2) { in sadByte2LongAt1() argument
299 int min_length = Math.min(b1.length, b2.length); in sadByte2LongAt1()
303 long y = b2[i]; in sadByte2LongAt1()
312 byte[] b2 = { 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main()
313 expectEquals(-1, sadByte2Byte(b1, b2)); in main()
314 expectEquals(-1, sadByte2Byte(b2, b1)); in main()
315 expectEquals(-1, sadByte2ByteAlt(b1, b2)); in main()
316 expectEquals(-1, sadByte2ByteAlt(b2, b1)); in main()
317 expectEquals(-1, sadByte2ByteAlt2(b1, b2)); in main()
318 expectEquals(-1, sadByte2ByteAlt2(b2, b1)); in main()
319 expectEquals(255, sadByte2Short(b1, b2)); in main()
320 expectEquals(255, sadByte2Short(b2, b1)); in main()
321 expectEquals(255, sadByte2ShortAlt(b1, b2)); in main()
322 expectEquals(255, sadByte2ShortAlt(b2, b1)); in main()
323 expectEquals(255, sadByte2ShortAlt2(b1, b2)); in main()
324 expectEquals(255, sadByte2ShortAlt2(b2, b1)); in main()
325 expectEquals(255, sadByte2Int(b1, b2)); in main()
326 expectEquals(255, sadByte2Int(b2, b1)); in main()
327 expectEquals(255, sadByte2IntAlt(b1, b2)); in main()
328 expectEquals(255, sadByte2IntAlt(b2, b1)); in main()
329 expectEquals(255, sadByte2IntAlt2(b1, b2)); in main()
330 expectEquals(255, sadByte2IntAlt2(b2, b1)); in main()
331 expectEquals(255, sadByte2Long(b1, b2)); in main()
332 expectEquals(255L, sadByte2Long(b2, b1)); in main()
333 expectEquals(256L, sadByte2LongAt1(b1, b2)); in main()
334 expectEquals(256L, sadByte2LongAt1(b2, b1)); in main()
342 b2 = new byte[m]; in main()
346 b2[k] = (byte) j; in main()
351 b2[k] = 2; in main()
352 expectEquals(8, sadByte2Byte(b1, b2)); in main()
353 expectEquals(8, sadByte2ByteAlt(b1, b2)); in main()
354 expectEquals(8, sadByte2ByteAlt2(b1, b2)); in main()
355 expectEquals(21768, sadByte2Short(b1, b2)); in main()
356 expectEquals(21768, sadByte2ShortAlt(b1, b2)); in main()
357 expectEquals(21768, sadByte2ShortAlt2(b1, b2)); in main()
358 expectEquals(5592328, sadByte2Int(b1, b2)); in main()
359 expectEquals(5592328, sadByte2IntAlt(b1, b2)); in main()
360 expectEquals(5592328, sadByte2IntAlt2(b1, b2)); in main()
361 expectEquals(5592328L, sadByte2Long(b1, b2)); in main()
362 expectEquals(5592329L, sadByte2LongAt1(b1, b2)); in main()