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