• Home
  • Raw
  • Download

Lines Matching refs:src_a

36   align_buffer_page_end(src_a, kMaxTest);  in TEST_F()
47 src_a[i] = (fastrand() & 0xff); in TEST_F()
51 uint32 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
56 memcpy(src_a + kMaxTest / 2, src_b + kMaxTest / 2, kMaxTest / 2); in TEST_F()
57 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
62 memcpy(src_a + kMaxTest / 2, src_a, kMaxTest / 2); in TEST_F()
64 memcpy(src_a, src_b, kMaxTest / 2); in TEST_F()
65 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
70 memcpy(src_a, src_b, kMaxTest); in TEST_F()
71 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
76 memcpy(src_a, src_b, kMaxTest); in TEST_F()
77 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
82 memcpy(src_a, src_b, kMaxTest); in TEST_F()
84 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
89 memcpy(src_a, src_b, kMaxTest); in TEST_F()
91 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
96 memcpy(src_a, src_b, kMaxTest); in TEST_F()
98 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
103 memset(src_a, 0, kMaxTest); in TEST_F()
104 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
105 h2 = HashDjb2(src_a, kMaxTest / 2, 5381); in TEST_F()
109 memset(src_a, 0, kMaxTest); in TEST_F()
110 h1 = HashDjb2(src_a, kMaxTest, 0); in TEST_F()
111 h2 = HashDjb2(src_a, kMaxTest / 2, 0); in TEST_F()
114 free_aligned_buffer_page_end(src_a); in TEST_F()
120 align_buffer_page_end(src_a, kMaxTest); in TEST_F()
123 src_a[i] = i; in TEST_F()
125 uint32 h2 = ReferenceHashDjb2(src_a, kMaxTest, 5381); in TEST_F()
128 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
131 free_aligned_buffer_page_end(src_a); in TEST_F()
136 align_buffer_page_end(src_a, kMaxTest + 1); in TEST_F()
138 src_a[i + 1] = i; in TEST_F()
140 uint32 h2 = ReferenceHashDjb2(src_a + 1, kMaxTest, 5381); in TEST_F()
143 h1 = HashDjb2(src_a + 1, kMaxTest, 5381); in TEST_F()
146 free_aligned_buffer_page_end(src_a); in TEST_F()
152 align_buffer_page_end(src_a, kMaxTest); in TEST_F()
154 src_a[i] = 255; in TEST_F()
157 src_a[0] = 0; in TEST_F()
158 fourcc = ARGBDetect(src_a, benchmark_width_ * 4, in TEST_F()
161 src_a[0] = 255; in TEST_F()
162 src_a[3] = 0; in TEST_F()
163 fourcc = ARGBDetect(src_a, benchmark_width_ * 4, in TEST_F()
166 src_a[3] = 255; in TEST_F()
169 fourcc = ARGBDetect(src_a, benchmark_width_ * 4, in TEST_F()
174 free_aligned_buffer_page_end(src_a); in TEST_F()
180 align_buffer_page_end(src_a, kMaxTest); in TEST_F()
182 src_a[i] = 255; in TEST_F()
185 src_a[0 + 1] = 0; in TEST_F()
186 fourcc = ARGBDetect(src_a + 1, benchmark_width_ * 4, in TEST_F()
189 src_a[0 + 1] = 255; in TEST_F()
190 src_a[3 + 1] = 0; in TEST_F()
191 fourcc = ARGBDetect(src_a + 1, benchmark_width_ * 4, in TEST_F()
194 src_a[3 + 1] = 255; in TEST_F()
197 fourcc = ARGBDetect(src_a + 1, benchmark_width_ * 4, in TEST_F()
202 free_aligned_buffer_page_end(src_a); in TEST_F()
206 align_buffer_page_end(src_a, kMaxWidth); in TEST_F()
208 memset(src_a, 0, kMaxWidth); in TEST_F()
211 memcpy(src_a, "test0123test4567", 16); in TEST_F()
213 uint64 h1 = ComputeSumSquareError(src_a, src_b, 16); in TEST_F()
217 src_a[i] = i; in TEST_F()
220 memset(src_a, 0, kMaxWidth); in TEST_F()
226 h1 = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
231 free_aligned_buffer_page_end(src_a); in TEST_F()
237 align_buffer_page_end(src_a, kMaxWidth); in TEST_F()
239 memset(src_a, 0, kMaxWidth); in TEST_F()
243 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
247 memset(src_a, 1, kMaxWidth); in TEST_F()
248 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
252 memset(src_a, 190, kMaxWidth); in TEST_F()
254 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
259 src_a[i] = (fastrand() & 0xff); in TEST_F()
264 uint64 c_err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
267 uint64 opt_err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
271 free_aligned_buffer_page_end(src_a); in TEST_F()
276 align_buffer_page_end(src_a, benchmark_width_ * benchmark_height_); in TEST_F()
279 src_a[i] = i; in TEST_F()
287 CalcFramePsnr(src_a, benchmark_width_, in TEST_F()
296 free_aligned_buffer_page_end(src_a); in TEST_F()
301 align_buffer_page_end(src_a, benchmark_width_ * benchmark_height_ + 1); in TEST_F()
304 src_a[i + 1] = i; in TEST_F()
312 CalcFramePsnr(src_a + 1, benchmark_width_, in TEST_F()
321 free_aligned_buffer_page_end(src_a); in TEST_F()
331 align_buffer_page_end(src_a, kSrcPlaneSize); in TEST_F()
333 memset(src_a, 0, kSrcPlaneSize); in TEST_F()
337 err = CalcFramePsnr(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
343 memset(src_a, 255, kSrcPlaneSize); in TEST_F()
345 err = CalcFramePsnr(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
351 memset(src_a, 1, kSrcPlaneSize); in TEST_F()
353 err = CalcFramePsnr(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
361 src_a[i] = i; in TEST_F()
364 err = CalcFramePsnr(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
373 memset(src_a, 0, kSrcPlaneSize); in TEST_F()
378 src_a[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
386 c_err = CalcFramePsnr(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
392 opt_err = CalcFramePsnr(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
398 free_aligned_buffer_page_end(src_a); in TEST_F()
403 align_buffer_page_end(src_a, benchmark_width_ * benchmark_height_); in TEST_F()
406 src_a[i] = i; in TEST_F()
414 CalcFrameSsim(src_a, benchmark_width_, in TEST_F()
423 free_aligned_buffer_page_end(src_a); in TEST_F()
433 align_buffer_page_end(src_a, kSrcPlaneSize); in TEST_F()
435 memset(src_a, 0, kSrcPlaneSize); in TEST_F()
443 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
451 memset(src_a, 255, kSrcPlaneSize); in TEST_F()
453 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
461 memset(src_a, 1, kSrcPlaneSize); in TEST_F()
463 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
473 src_a[i] = i; in TEST_F()
476 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
487 src_a[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
495 c_err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
501 opt_err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
509 free_aligned_buffer_page_end(src_a); in TEST_F()