• Home
  • Raw
  • Download

Lines Matching refs:src_a

36   align_buffer_page_end(src_a, kMaxTest);  in TEST_F()
48 src_a[i] = (fastrand() & 0xff); in TEST_F()
52 uint32 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
57 memcpy(src_a + kMaxTest / 2, src_b + kMaxTest / 2, kMaxTest / 2); in TEST_F()
58 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
63 memcpy(src_a + kMaxTest / 2, src_a, kMaxTest / 2); in TEST_F()
65 memcpy(src_a, src_b, kMaxTest / 2); in TEST_F()
66 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
71 memcpy(src_a, src_b, kMaxTest); in TEST_F()
72 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
77 memcpy(src_a, src_b, kMaxTest); in TEST_F()
78 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
83 memcpy(src_a, src_b, kMaxTest); in TEST_F()
85 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
90 memcpy(src_a, src_b, kMaxTest); in TEST_F()
92 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
97 memcpy(src_a, src_b, kMaxTest); in TEST_F()
99 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
104 memset(src_a, 0, kMaxTest); in TEST_F()
105 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
106 h2 = HashDjb2(src_a, kMaxTest / 2, 5381); in TEST_F()
110 memset(src_a, 0, kMaxTest); in TEST_F()
111 h1 = HashDjb2(src_a, kMaxTest, 0); in TEST_F()
112 h2 = HashDjb2(src_a, kMaxTest / 2, 0); in TEST_F()
115 free_aligned_buffer_page_end(src_a); in TEST_F()
121 align_buffer_page_end(src_a, kMaxTest); in TEST_F()
124 src_a[i] = i; in TEST_F()
126 uint32 h2 = ReferenceHashDjb2(src_a, kMaxTest, 5381); in TEST_F()
129 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F()
132 free_aligned_buffer_page_end(src_a); in TEST_F()
137 align_buffer_page_end(src_a, kMaxTest + 1); in TEST_F()
139 src_a[i + 1] = i; in TEST_F()
141 uint32 h2 = ReferenceHashDjb2(src_a + 1, kMaxTest, 5381); in TEST_F()
144 h1 = HashDjb2(src_a + 1, kMaxTest, 5381); in TEST_F()
147 free_aligned_buffer_page_end(src_a); in TEST_F()
153 align_buffer_page_end(src_a, kMaxTest); in TEST_F()
155 src_a[i] = 255; in TEST_F()
158 src_a[0] = 0; in TEST_F()
159 fourcc = ARGBDetect(src_a, benchmark_width_ * 4, benchmark_width_, in TEST_F()
162 src_a[0] = 255; in TEST_F()
163 src_a[3] = 0; in TEST_F()
164 fourcc = ARGBDetect(src_a, benchmark_width_ * 4, benchmark_width_, in TEST_F()
167 src_a[3] = 255; in TEST_F()
170 fourcc = ARGBDetect(src_a, benchmark_width_ * 4, benchmark_width_, in TEST_F()
175 free_aligned_buffer_page_end(src_a); in TEST_F()
181 align_buffer_page_end(src_a, kMaxTest); in TEST_F()
183 src_a[i] = 255; in TEST_F()
186 src_a[0 + 1] = 0; in TEST_F()
187 fourcc = ARGBDetect(src_a + 1, benchmark_width_ * 4, benchmark_width_, in TEST_F()
190 src_a[0 + 1] = 255; in TEST_F()
191 src_a[3 + 1] = 0; in TEST_F()
192 fourcc = ARGBDetect(src_a + 1, benchmark_width_ * 4, benchmark_width_, in TEST_F()
195 src_a[3 + 1] = 255; in TEST_F()
198 fourcc = ARGBDetect(src_a + 1, benchmark_width_ * 4, benchmark_width_, in TEST_F()
203 free_aligned_buffer_page_end(src_a); in TEST_F()
207 align_buffer_page_end(src_a, kMaxWidth); in TEST_F()
209 memset(src_a, 0, kMaxWidth); in TEST_F()
212 memcpy(src_a, "test0123test4567", 16); in TEST_F()
214 uint64 h1 = ComputeSumSquareError(src_a, src_b, 16); in TEST_F()
218 src_a[i] = i; in TEST_F()
221 memset(src_a, 0, kMaxWidth); in TEST_F()
228 h1 = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
233 free_aligned_buffer_page_end(src_a); in TEST_F()
239 align_buffer_page_end(src_a, kMaxWidth); in TEST_F()
241 memset(src_a, 0, kMaxWidth); in TEST_F()
245 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
249 memset(src_a, 1, kMaxWidth); in TEST_F()
250 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
254 memset(src_a, 190, kMaxWidth); in TEST_F()
256 err = ComputeSumSquareError(src_a, src_b, kMaxWidth); in TEST_F()
261 src_a[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()
273 free_aligned_buffer_page_end(src_a); in TEST_F()
278 align_buffer_page_end(src_a, benchmark_width_ * benchmark_height_); in TEST_F()
281 src_a[i] = i; in TEST_F()
289 CalcFramePsnr(src_a, benchmark_width_, src_b, benchmark_width_, in TEST_F()
297 free_aligned_buffer_page_end(src_a); in TEST_F()
302 align_buffer_page_end(src_a, benchmark_width_ * benchmark_height_ + 1); in TEST_F()
305 src_a[i + 1] = i; in TEST_F()
313 CalcFramePsnr(src_a + 1, benchmark_width_, src_b, 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_, src_b, benchmark_width_, in TEST_F()
422 free_aligned_buffer_page_end(src_a); in TEST_F()
432 align_buffer_page_end(src_a, kSrcPlaneSize); in TEST_F()
434 memset(src_a, 0, kSrcPlaneSize); in TEST_F()
442 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
450 memset(src_a, 255, kSrcPlaneSize); in TEST_F()
452 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
460 memset(src_a, 1, kSrcPlaneSize); in TEST_F()
462 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
472 src_a[i] = i; in TEST_F()
475 err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
486 src_a[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
494 c_err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
500 opt_err = CalcFrameSsim(src_a + kSrcStride * b + b, kSrcStride, in TEST_F()
508 free_aligned_buffer_page_end(src_a); in TEST_F()