Lines Matching defs:b2

24   private static byte sadByte2Byte(byte[] b1, byte[] b2) {
25 int min_length = Math.min(b1.length, b2.length);
28 sad += Math.abs(b1[i] - b2[i]);
33 private static byte sadByte2ByteAlt(byte[] b1, byte[] b2) {
34 int min_length = Math.min(b1.length, b2.length);
38 byte p = b2[i];
44 private static byte sadByte2ByteAlt2(byte[] b1, byte[] b2) {
45 int min_length = Math.min(b1.length, b2.length);
49 byte p = b2[i];
57 private static short sadByte2Short(byte[] b1, byte[] b2) {
58 int min_length = Math.min(b1.length, b2.length);
61 sad += Math.abs(b1[i] - b2[i]);
66 private static short sadByte2ShortAlt(byte[] b1, byte[] b2) {
67 int min_length = Math.min(b1.length, b2.length);
71 byte p = b2[i];
77 private static short sadByte2ShortAlt2(byte[] b1, byte[] b2) {
78 int min_length = Math.min(b1.length, b2.length);
82 byte p = b2[i];
112 private static int sadByte2Int(byte[] b1, byte[] b2) {
113 int min_length = Math.min(b1.length, b2.length);
116 sad += Math.abs(b1[i] - b2[i]);
143 private static int sadByte2IntAlt(byte[] b1, byte[] b2) {
144 int min_length = Math.min(b1.length, b2.length);
148 byte p = b2[i];
176 private static int sadByte2IntAlt2(byte[] b1, byte[] b2) {
177 int min_length = Math.min(b1.length, b2.length);
181 byte p = b2[i];
215 private static long sadByte2Long(byte[] b1, byte[] b2) {
216 int min_length = Math.min(b1.length, b2.length);
220 long y = b2[i];
252 private static long sadByte2LongAt1(byte[] b1, byte[] b2) {
253 int min_length = Math.min(b1.length, b2.length);
257 long y = b2[i];
266 byte[] b2 = { 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
267 expectEquals(-1, sadByte2Byte(b1, b2));
268 expectEquals(-1, sadByte2Byte(b2, b1));
269 expectEquals(-1, sadByte2ByteAlt(b1, b2));
270 expectEquals(-1, sadByte2ByteAlt(b2, b1));
271 expectEquals(-1, sadByte2ByteAlt2(b1, b2));
272 expectEquals(-1, sadByte2ByteAlt2(b2, b1));
273 expectEquals(255, sadByte2Short(b1, b2));
274 expectEquals(255, sadByte2Short(b2, b1));
275 expectEquals(255, sadByte2ShortAlt(b1, b2));
276 expectEquals(255, sadByte2ShortAlt(b2, b1));
277 expectEquals(255, sadByte2ShortAlt2(b1, b2));
278 expectEquals(255, sadByte2ShortAlt2(b2, b1));
279 expectEquals(255, sadByte2Int(b1, b2));
280 expectEquals(255, sadByte2Int(b2, b1));
281 expectEquals(255, sadByte2IntAlt(b1, b2));
282 expectEquals(255, sadByte2IntAlt(b2, b1));
283 expectEquals(255, sadByte2IntAlt2(b1, b2));
284 expectEquals(255, sadByte2IntAlt2(b2, b1));
285 expectEquals(255, sadByte2Long(b1, b2));
286 expectEquals(255L, sadByte2Long(b2, b1));
287 expectEquals(256L, sadByte2LongAt1(b1, b2));
288 expectEquals(256L, sadByte2LongAt1(b2, b1));
296 b2 = new byte[m];
300 b2[k] = (byte) j;
305 b2[k] = 2;
306 expectEquals(8, sadByte2Byte(b1, b2));
307 expectEquals(8, sadByte2ByteAlt(b1, b2));
308 expectEquals(8, sadByte2ByteAlt2(b1, b2));
309 expectEquals(21768, sadByte2Short(b1, b2));
310 expectEquals(21768, sadByte2ShortAlt(b1, b2));
311 expectEquals(21768, sadByte2ShortAlt2(b1, b2));
312 expectEquals(5592328, sadByte2Int(b1, b2));
313 expectEquals(5592328, sadByte2IntAlt(b1, b2));
314 expectEquals(5592328, sadByte2IntAlt2(b1, b2));
315 expectEquals(5592328L, sadByte2Long(b1, b2));
316 expectEquals(5592329L, sadByte2LongAt1(b1, b2));