Home
last modified time | relevance | path

Searched refs:Rand16 (Results 1 – 25 of 47) sorted by relevance

12

/external/libaom/libaom/test/
Dtransform_test_base.h74 src16[j] = rnd.Rand16() & mask_; in RunAccuracyCheck()
75 dst16[j] = rnd.Rand16() & mask_; in RunAccuracyCheck()
137 input_block[in_idx] = (rnd.Rand16() & mask_) - (rnd.Rand16() & mask_); in RunCoeffCheck()
142 rnd.Rand16() & mask_; in RunCoeffCheck()
189 input_block[in_idx] = (rnd.Rand16() & mask_) - (rnd.Rand16() & mask_); in RunInvCoeffCheck()
190 output_ref_block[out_idx] = rnd.Rand16() & mask_; in RunInvCoeffCheck()
283 src16[j] = rnd.Rand16() & mask_; in RunInvAccuracyCheck()
284 dst16[j] = rnd.Rand16() & mask_; in RunInvAccuracyCheck()
Dav1_highbd_iht_test.cc122 input_[j] = (rnd.Rand16() & mask) - (rnd.Rand16() & mask); in RunBitexactCheck()
123 output_ref_[j] = rnd.Rand16() & mask; in RunBitexactCheck()
223 input[r * cols + c] = (rnd.Rand16() & mask) - (rnd.Rand16() & mask); in RunAV1InvTxfm2dTest()
224 output[r * stride + c] = rnd.Rand16() & mask; in RunAV1InvTxfm2dTest()
Dcomp_mask_variance_test.cc357 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput()
360 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput()
389 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest()
392 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest()
469 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput()
472 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput()
524 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest()
527 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest()
Dwiener_test.cc150 const int h_start = ((rng_.Rand16() % (MAX_WIENER_BLOCK / 2)) & (~7)); in RunWienerTest()
152 run_times != 1 ? 256 : ((rng_.Rand16() % MAX_WIENER_BLOCK) & (~7)) + 8; in RunWienerTest()
153 const int v_start = ((rng_.Rand16() % (MAX_WIENER_BLOCK / 2)) & (~7)); in RunWienerTest()
155 run_times != 1 ? 256 : ((rng_.Rand16() % MAX_WIENER_BLOCK) & (~7)) + 8; in RunWienerTest()
428 const int h_start = ((rng_.Rand16() % (MAX_WIENER_BLOCK / 2)) & (~7)); in RunWienerTest()
430 run_times != 1 ? 256 : ((rng_.Rand16() % MAX_WIENER_BLOCK) & (~7)) + 8; in RunWienerTest()
431 const int v_start = ((rng_.Rand16() % (MAX_WIENER_BLOCK / 2)) & (~7)); in RunWienerTest()
433 run_times != 1 ? 256 : ((rng_.Rand16() % MAX_WIENER_BLOCK) & (~7)) + 8; in RunWienerTest()
439 dgd_buf[i] = rng_.Rand16() % (1 << bit_depth); in RunWienerTest()
440 src_buf[i] = rng_.Rand16() % (1 << bit_depth); in RunWienerTest()
Dpickrst_test.cc79 int h_end = run_times != 1 ? 128 : (rng_.Rand16() % MAX_DATA_BLOCK) + 1; in RunPixelProjErrorTest()
80 int v_end = run_times != 1 ? 128 : (rng_.Rand16() % MAX_DATA_BLOCK) + 1; in RunPixelProjErrorTest()
244 int h_end = run_times != 1 ? 128 : (rng_.Rand16() % MAX_DATA_BLOCK) + 1; in RunPixelProjErrorTest()
245 int v_end = run_times != 1 ? 128 : (rng_.Rand16() % MAX_DATA_BLOCK) + 1; in RunPixelProjErrorTest()
256 dgd_[i] = rng_.Rand16() % (1 << 12); in RunPixelProjErrorTest()
257 src_[i] = rng_.Rand16() % (1 << 12); in RunPixelProjErrorTest()
Dsubtract_test.cc169 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask; in CheckResult()
170 CONVERT_TO_SHORTPTR(pred_)[j] = rnd_.Rand16() & mask; in CheckResult()
197 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask; in RunForSpeed()
198 CONVERT_TO_SHORTPTR(pred_)[j] = rnd_.Rand16() & mask; in RunForSpeed()
Dav1_inv_txfm1d_test.cc66 dst[i] = minVal + rnd->Rand16() % (1 << bits); in random_matrix()
140 input[ni] = rnd.Rand16() % input_base - rnd.Rand16() % input_base; in TEST()
Dav1_quantize_test.cc82 zbin_ptr[j] = rnd.Rand16(); in RunQuantizeTest()
83 quant_shift_ptr[j] = rnd.Rand16(); in RunQuantizeTest()
158 zbin_ptr[j] = rnd.Rand16(); in RunEobTest()
159 quant_shift_ptr[j] = rnd.Rand16(); in RunEobTest()
Dreconinter_test.cc108 src0[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunCheckOutput()
109 src1[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunCheckOutput()
148 src0[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunSpeedTest()
149 src1[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunSpeedTest()
Dcomp_avg_pred_test.h338 pred8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput()
339 ref8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput()
387 pred8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunSpeedTest()
388 ref8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunSpeedTest()
448 pred8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput()
449 ref8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput()
513 pred8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunSpeedTest()
514 ref8[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunSpeedTest()
Dvariance_test.cc512 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest()
513 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest()
540 CONVERT_TO_SHORTPTR(src_)[src_ind] = rnd_.Rand16() & mask(); in RefStrideTest()
541 CONVERT_TO_SHORTPTR(ref_)[ref_ind] = rnd_.Rand16() & mask(); in RefStrideTest()
583 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in SpeedTest()
584 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in SpeedTest()
737 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest()
740 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest()
800 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in SpeedTest()
803 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in SpeedTest()
[all …]
Dav1_convolve_2d_test_util.cc183 output1[i] = output2[i] = rnd_.Rand16(); in RunCheckOutput()
318 output[i] = rnd_.Rand16(); in RunSpeedTest()
387 input[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunSpeedTest()
446 input[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput()
526 input[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunSpeedTest()
527 for (int i = 0; i < MAX_SB_SQUARE; ++i) output[i] = rnd_.Rand16(); in RunSpeedTest()
583 input[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput()
585 output1[i] = output2[i] = rnd_.Rand16(); in RunCheckOutput()
586 output16_1[i] = output16_2[i] = rnd_.Rand16(); in RunCheckOutput()
Dav1_fwd_txfm1d_test.cc82 input[ni] = rnd.Rand16() % input_base - rnd.Rand16() % input_base; in TEST()
Dblend_a64_mask_test.cc315 src0_[i] = rng_.Rand16() & kSrcMaxBitsMask; in TEST_P()
316 src1_[i] = rng_.Rand16() & kSrcMaxBitsMask; in TEST_P()
540 src0_[i] = rng_.Rand16() & src_max_bits_mask_; in TEST_P()
541 src1_[i] = rng_.Rand16() & src_max_bits_mask_; in TEST_P()
579 src0_[i] = rng_.Rand16(); in TEST_P()
580 src1_[i] = rng_.Rand16(); in TEST_P()
Dhorver_correlation_test.cc59 data_buf_[i] = (rng_.Rand16() % (1 << 12)) - (1 << 11); in RunHorverTest()
78 data_buf_[i] = rng_.Rand16() % (1 << 12); in RunHorverSpeedTest()
Dlpf_test.cc67 tmp_s[j] = rnd->Rand16(); in InitInput()
73 tmp_s[j] = rnd->Rand16(); in InitInput()
92 tmp_s[j] = rnd->Rand16(); in InitInput()
235 s[j] = rnd.Rand16() & mask_; \
277 s[j] = rnd.Rand16() & mask_; \
378 s[j] = rnd.Rand16() & mask_; \
432 s[j] = rnd.Rand16() & mask_; \
Dav1_fwd_txfm2d_test.cc70 input_[ni] = rnd.Rand16() % input_base; in RunFwdAccuracyCheck()
266 input[r * input_stride + c] = rnd.Rand16() % (1 << bd); in AV1FwdTxfm2dMatchTest()
316 input[r * input_stride + c] = rnd.Rand16() % (1 << bd); in AV1FwdTxfm2dSpeedTest()
455 input[r * input_stride + c] = rnd.Rand16() % (1 << bd); in AV1HighbdFwdTxfm2dMatchTest()
509 input[r * input_stride + c] = rnd.Rand16() % (1 << bd); in AV1HighbdFwdTxfm2dSpeedTest()
Dselfguided_filter_test.cc70 input[i * stride + j] = rnd.Rand16() & 0xFF; in RunSpeedTest()
157 input[j * stride + k] = rnd.Rand16() & 0xFF; in RunCorrectnessTest()
251 input[i * stride + j] = rnd.Rand16() & mask; in RunSpeedTest()
343 input[j * stride + k] = rnd.Rand16() & mask; in RunCorrectnessTest()
Dav1_horz_only_frame_superres_test.cc99 for (int i = 0; i < num_pixels; ++i) data[i] = rnd->Rand16() & mask; in FillEdge()
115 for (int c = 0; c < w; ++c) row_data[kHPad + c] = rnd->Rand16() & mask; in PrepBuffers()
192 int x0 = rnd.Rand16() % (RS_SCALE_SUBPEL_MASK + 1); in CorrectnessTest()
Dmasked_sad_test.cc160 src_ptr[j] = rnd.Rand16() & 0xfff; in runHighbdMaskedSADTest()
161 ref_ptr[j] = rnd.Rand16() & 0xfff; in runHighbdMaskedSADTest()
162 second_pred_ptr[j] = rnd.Rand16() & 0xfff; in runHighbdMaskedSADTest()
/external/libvpx/libvpx/test/
Ddct32x32_test.cc136 src16[j] = rnd.Rand16() & mask_; in TEST_P()
137 dst16[j] = rnd.Rand16() & mask_; in TEST_P()
188 input_block[j] = (rnd.Rand16() & mask_) - (rnd.Rand16() & mask_); in TEST_P()
285 src16[j] = rnd.Rand16() & mask_; in TEST_P()
286 dst16[j] = rnd.Rand16() & mask_; in TEST_P()
Dfdct8x8_test.cc155 test_input_block[j] = ((rnd.Rand16() >> (16 - bit_depth_)) & mask_) - in RunSignBiasCheck()
156 ((rnd.Rand16() >> (16 - bit_depth_)) & mask_); in RunSignBiasCheck()
187 ((rnd.Rand16() & mask_) >> 4) - ((rnd.Rand16() & mask_) >> 4); in RunSignBiasCheck()
236 src16[j] = rnd.Rand16() & mask_; in RunRoundTripErrorCheck()
237 dst16[j] = rnd.Rand16() & mask_; in RunRoundTripErrorCheck()
Ddct16x16_test.cc342 src16[j] = rnd.Rand16() & mask_; in RunAccuracyCheck()
343 dst16[j] = rnd.Rand16() & mask_; in RunAccuracyCheck()
390 input_block[j] = (rnd.Rand16() & mask_) - (rnd.Rand16() & mask_); in RunCoeffCheck()
517 src16[j] = rnd.Rand16() & mask_; in RunInvAccuracyCheck()
518 dst16[j] = rnd.Rand16() & mask_; in RunInvAccuracyCheck()
Dlpf_test.cc70 tmp_s[j] = rnd->Rand16(); in InitInput()
76 tmp_s[j] = rnd->Rand16(); in InitInput()
95 tmp_s[j] = rnd->Rand16(); in InitInput()
251 s[j] = rnd.Rand16() & mask_; in TEST_P()
376 s[j] = rnd.Rand16() & mask_; in TEST_P()
Dvariance_test.cc397 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest()
398 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest()
427 CONVERT_TO_SHORTPTR(src_)[src_ind] = rnd_.Rand16() & mask(); in RefStrideTest()
428 CONVERT_TO_SHORTPTR(ref_)[ref_ind] = rnd_.Rand16() & mask(); in RefStrideTest()
629 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest()
632 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest()
699 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest()
700 CONVERT_TO_SHORTPTR(sec_)[j] = rnd_.Rand16() & mask(); in RefTest()
703 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest()

12