Lines Matching refs:src_b
37 align_buffer_page_end(src_b, kMaxTest); in TEST_F()
49 src_b[i] = (fastrand() & 0xff); in TEST_F()
53 uint32 h2 = HashDjb2(src_b, kMaxTest, 5381); in TEST_F()
57 memcpy(src_a + kMaxTest / 2, src_b + kMaxTest / 2, kMaxTest / 2); in TEST_F()
59 h2 = HashDjb2(src_b, kMaxTest, 5381); in TEST_F()
64 memcpy(src_b + kMaxTest / 2, src_b, kMaxTest / 2); in TEST_F()
65 memcpy(src_a, src_b, kMaxTest / 2); in TEST_F()
67 h2 = HashDjb2(src_b, kMaxTest, 5381); in TEST_F()
71 memcpy(src_a, src_b, kMaxTest); in TEST_F()
73 h2 = HashDjb2(src_b, kMaxTest, 5381); in TEST_F()
77 memcpy(src_a, src_b, kMaxTest); in TEST_F()
79 h2 = HashDjb2(src_b, kMaxTest, 1234); in TEST_F()
83 memcpy(src_a, src_b, kMaxTest); in TEST_F()
84 ++src_b[kMaxTest / 2]; in TEST_F()
86 h2 = HashDjb2(src_b, kMaxTest, 5381); in TEST_F()
90 memcpy(src_a, src_b, kMaxTest); in TEST_F()
91 ++src_b[0]; in TEST_F()
93 h2 = HashDjb2(src_b, kMaxTest, 5381); in TEST_F()
97 memcpy(src_a, src_b, kMaxTest); in TEST_F()
98 ++src_b[kMaxTest - 1]; in TEST_F()
100 h2 = HashDjb2(src_b, kMaxTest, 5381); in TEST_F()
116 free_aligned_buffer_page_end(src_b); in TEST_F()
208 align_buffer_page_end(src_b, kMaxWidth); in TEST_F()
210 memset(src_b, 0, kMaxWidth); in TEST_F()
213 memcpy(src_b, "tick0123tock4567", 16); in TEST_F()
214 uint64 h1 = ComputeSumSquareError(src_a, src_b, 16); in TEST_F()
219 src_b[i] = i; in TEST_F()
222 memset(src_b, 0, kMaxWidth); in TEST_F()
228 h1 = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
234 free_aligned_buffer_page_end(src_b); in TEST_F()
240 align_buffer_page_end(src_b, kMaxWidth); in TEST_F()
242 memset(src_b, 0, kMaxWidth); in TEST_F()
245 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
250 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
255 memset(src_b, 193, kMaxWidth); in TEST_F()
256 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
262 src_b[i] = (fastrand() & 0xff); in TEST_F()
266 uint64 c_err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
269 uint64 opt_err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
274 free_aligned_buffer_page_end(src_b); in TEST_F()
279 align_buffer_page_end(src_b, benchmark_width_ * benchmark_height_); in TEST_F()
282 src_b[i] = i; in TEST_F()
289 CalcFramePsnr(src_a, benchmark_width_, src_b, benchmark_width_, in TEST_F()
298 free_aligned_buffer_page_end(src_b); in TEST_F()
303 align_buffer_page_end(src_b, benchmark_width_ * benchmark_height_); in TEST_F()
306 src_b[i] = i; in TEST_F()
313 CalcFramePsnr(src_a + 1, benchmark_width_, src_b, benchmark_width_, in TEST_F()
322 free_aligned_buffer_page_end(src_b); in TEST_F()
332 align_buffer_page_end(src_b, kSrcPlaneSize); in TEST_F()
334 memset(src_b, 0, kSrcPlaneSize); in TEST_F()
338 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
346 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
354 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
365 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
374 memset(src_b, 0, kSrcPlaneSize); in TEST_F()
379 src_b[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
387 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
393 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
399 free_aligned_buffer_page_end(src_b); in TEST_F()
404 align_buffer_page_end(src_b, benchmark_width_ * benchmark_height_); in TEST_F()
407 src_b[i] = i; in TEST_F()
414 CalcFrameSsim(src_a, benchmark_width_, src_b, benchmark_width_, in TEST_F()
423 free_aligned_buffer_page_end(src_b); in TEST_F()
433 align_buffer_page_end(src_b, kSrcPlaneSize); in TEST_F()
435 memset(src_b, 0, kSrcPlaneSize); in TEST_F()
443 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
453 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
463 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
476 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
487 src_b[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
495 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
501 src_b + kSrcStride * b + b, kSrcStride, kSrcWidth, in TEST_F()
509 free_aligned_buffer_page_end(src_b); in TEST_F()