/external/libaom/libaom/test/ |
D | sum_squares_test.cc | 50 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 67 src_[ii * stride + jj] = rnd_(2) ? rnd_(limit) : -rnd_(limit); in GenRandomData() 75 const int val = rnd_(2) ? limit - 1 : -(limit - 1); in GenExtremeData() 86 ACMRandom rnd_; member in __anon5d230b380111::SumSquaresTest 92 const int width = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 93 const int height = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 94 int stride = 4 << rnd_(7); // Up to 256 stride in RunTest() 96 stride = 4 << rnd_(7); in RunTest() 121 int stride = 4 << rnd_(7); // Up to 256 stride in RunSpeedTest() 123 stride = 4 << rnd_(7); in RunSpeedTest() [all …]
|
D | corner_match_test.cc | 48 libaom_test::ACMRandom rnd_; member in test_libaom::AV1CornerMatch::AV1CornerMatchTest 53 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 74 input1[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 75 input2[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 80 int v = rnd_.Rand8(); in RunCheckOutput() 82 input2[i * w + j] = (v / 2) + (rnd_.Rand8() & 15); in RunCheckOutput() 87 int x1 = MATCH_SZ_BY2 + rnd_.PseudoUniform(w - 2 * MATCH_SZ_BY2); in RunCheckOutput() 88 int y1 = MATCH_SZ_BY2 + rnd_.PseudoUniform(h - 2 * MATCH_SZ_BY2); in RunCheckOutput() 89 int x2 = MATCH_SZ_BY2 + rnd_.PseudoUniform(w - 2 * MATCH_SZ_BY2); in RunCheckOutput() 90 int y2 = MATCH_SZ_BY2 + rnd_.PseudoUniform(h - 2 * MATCH_SZ_BY2); in RunCheckOutput()
|
D | comp_avg_pred_test.h | 94 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 109 pred8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 110 ref8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 123 const int offset_r = 3 + rnd_.PseudoUniform(h - in_h - 7); in RunCheckOutput() 124 const int offset_c = 3 + rnd_.PseudoUniform(w - in_w - 7); in RunCheckOutput() 154 pred8[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 155 ref8[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 191 libaom_test::ACMRandom rnd_; variable 198 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 213 pred8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() [all …]
|
D | coding_path_sync.cc | 30 explicit CompressedSource(int seed) : rnd_(seed), frame_count_(0) { in CompressedSource() 41 const int q = rnd_.PseudoUniform(max_q - min_q + 1) + min_q; in CompressedSource() 50 width_ = rnd_.PseudoUniform(kWidth - 8) + 8; in CompressedSource() 51 height_ = rnd_.PseudoUniform(kHeight - 8) + 8; in CompressedSource() 62 format_ = fmts[rnd_.PseudoUniform(NELEMENTS(fmts))]; in CompressedSource() 84 const int period = rnd_.Rand8() % 32 + 1; in ReadFrame() 85 const int phase = rnd_.Rand8() % period; in ReadFrame() 87 const int val_a = rnd_.Rand8(); in ReadFrame() 88 const int val_b = rnd_.Rand8(); in ReadFrame() 112 ACMRandom rnd_; member in __anond7f9651d0111::CompressedSource
|
D | av1_convolve_2d_test_util.cc | 36 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 52 for (int j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 54 output[i] = output2[i] = static_cast<uint8_t>(rnd_.Rand31()); in RunCheckOutput() 83 const int offset_r = 3 + rnd_.PseudoUniform(h - out_h - 7); in RunCheckOutput() 84 const int offset_c = 3 + rnd_.PseudoUniform(w - out_w - 7); in RunCheckOutput() 122 for (int j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 163 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 181 for (int j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 183 output1[i] = output2[i] = rnd_.Rand16(); in RunCheckOutput() 184 output8_1[i] = output8_2[i] = rnd_.Rand8(); in RunCheckOutput() [all …]
|
D | hiprec_convolve_test_util.cc | 85 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 112 generate_kernels(&rnd_, hkernel, vkernel, kernel_type); in RunCheckOutput() 115 for (m = 0; m < w; ++m) input[k * w + m] = rnd_.Rand8(); in RunCheckOutput() 117 int offset_r = 3 + rnd_.PseudoUniform(h - out_h - 7); in RunCheckOutput() 118 int offset_c = 3 + rnd_.PseudoUniform(w - out_w - 7); in RunCheckOutput() 157 generate_kernels(&rnd_, hkernel, vkernel); in RunSpeedTest() 160 for (j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 220 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 250 for (j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput() 256 generate_kernels(&rnd_, hkernel, vkernel, kernel_type); in RunCheckOutput() [all …]
|
D | variance_test.cc | 341 ACMRandom rnd_; member in __anondf1c79890111::SumOfSquaresTest 360 mem[j] = rnd_.Rand8() - rnd_.Rand8(); in RefTest() 416 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 464 ACMRandom rnd_; member in __anondf1c79890111::MainTestClass 510 src_[j] = rnd_.Rand8(); in RefTest() 511 ref_[j] = rnd_.Rand8(); in RefTest() 513 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest() 514 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest() 538 src_[src_ind] = rnd_.Rand8(); in RefStrideTest() 539 ref_[ref_ind] = rnd_.Rand8(); in RefStrideTest() [all …]
|
D | segment_binarization_sync.cc | 33 ACMRandom rnd_(seed); in GenerateSegment() local 36 const int last_segid = rnd_.PseudoUniform(MAX_SEGMENTS); in GenerateSegment() 38 segment.pred = rnd_.PseudoUniform(MAX_SEGMENTS); in GenerateSegment() 39 segment.id = rnd_.PseudoUniform(last_segid + 1); in GenerateSegment()
|
D | comp_mask_variance_test.cc | 71 libaom_test::ACMRandom rnd_; member in AV1CompMaskVariance::AV1CompMaskVarianceTest 82 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 90 pred_[i] = rnd_.Rand8(); in SetUp() 93 ref_buffer_[i] = rnd_.Rand8(); in SetUp() 314 libaom_test::ACMRandom rnd_; member in AV1CompMaskVariance::AV1HighbdCompMaskVarianceTest 325 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 354 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput() 357 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput() 385 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest() 388 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest() [all …]
|
D | av1_convolve_2d_test_util.h | 54 libaom_test::ACMRandom rnd_; variable 68 libaom_test::ACMRandom rnd_; variable 98 libaom_test::ACMRandom rnd_; variable 113 libaom_test::ACMRandom rnd_; variable
|
D | warp_filter_test_util.cc | 110 void AV1WarpFilterTest::SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 138 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunSpeedTest() 143 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand8(); in RunSpeedTest() 199 for (int i = 0; i < output_n; ++i) output[i] = output2[i] = rnd_.Rand8(); in RunCheckOutput() 204 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand8(); in RunCheckOutput() 209 const int use_no_round = rnd_.Rand8() & 1; in RunCheckOutput() 212 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunCheckOutput() 301 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 331 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunSpeedTest() 336 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand16() & mask; in RunSpeedTest() [all …]
|
D | reconinter_test.cc | 59 ACMRandom rnd_; member in __anonfcac34f90111::BuildCompDiffwtdMaskTest 83 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 89 libaom_test::ACMRandom rnd_; member in __anonfcac34f90111::BuildCompDiffwtdMaskD16Test 109 src0[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunCheckOutput() 110 src1[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunCheckOutput() 149 src0[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunSpeedTest() 150 src1[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunSpeedTest()
|
D | av1_round_shift_array_test.cc | 45 void SetUp() { rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); } in SetUp() 54 libaom_test::ACMRandom rnd_; member in AV1CompRoundShift::AV1CompRoundShiftTest 67 ref_buffer_[i] = pred_[i] = rnd_.Rand31() / 16; in RunCheckOutput() 84 ref_buffer_[i] = rnd_.Rand31(); in RunSpeedTest()
|
D | frame_error_test.cc | 45 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 53 libaom_test::ACMRandom rnd_; member in __anon4634b5940111::AV1FrameErrorTest 67 dst[i] = rnd_.Rand8(); in RandomValues() 68 ref[i] = rnd_.Rand8(); in RandomValues() 117 dst[i] = ref[i] = rnd_.Rand8(); in RunSpeedTest()
|
D | subtract_test.cc | 130 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 153 ACMRandom rnd_; member in __anon7ee207a80111::AV1HBDSubtractBlockTest 172 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask; in CheckResult() 173 CONVERT_TO_SHORTPTR(pred_)[j] = rnd_.Rand16() & mask; in CheckResult() 200 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask; in RunForSpeed() 201 CONVERT_TO_SHORTPTR(pred_)[j] = rnd_.Rand16() & mask; in RunForSpeed()
|
D | video_source.h | 211 : rnd_(seed), seed_(seed) {} in rnd_() function 217 rnd_.Reset(seed_); in Begin() 226 for (size_t i = 0; i < raw_sz_; ++i) img_->img_data[i] = rnd_.Rand8(); in FillFrame() 232 ACMRandom rnd_; variable
|
D | hash_test.cc | 45 libaom_test::ACMRandom rnd_; member in __anona6c49e040111::AV1Crc32cHashTest 55 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 63 buffer_[i] = rnd_.Rand8(); in SetUp()
|
D | temporal_filter_yuv_test.cc | 364 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 393 ACMRandom rnd_; member in __anon243168ec0111::TemporalFilterYUVTest 590 SetArray(y_src, width, height, y_stride, &rnd_, 0, max_val); in CompareTestWithParam() 591 SetArray(y_pre, width, height, y_stride, &rnd_, 0, max_val); in CompareTestWithParam() 592 SetArray(u_src, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 593 SetArray(u_pre, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 594 SetArray(v_src, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 595 SetArray(v_pre, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 671 SetArray(y_src, width, height, MAX_WIDTH, &rnd_, 0, 7 << (bd_ = 8)); in RunTestFilterWithParam() 672 SetArray(y_pre, width, height, MAX_WIDTH, &rnd_, 0, 7 << (bd_ = 8)); in RunTestFilterWithParam() [all …]
|
/external/libvpx/libvpx/test/ |
D | vp8_fdct4x4_test.cc | 79 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 84 ACMRandom rnd_; member in __anon595b76e00111::FdctTest 99 test_input_block[j] = rnd_.Rand8() - rnd_.Rand8(); in TEST_P() 128 test_input_block[j] = (rnd_.Rand8() >> 4) - (rnd_.Rand8() >> 4); in TEST_P() 164 test_input_block[j] = rnd_.Rand8() - rnd_.Rand8(); in TEST_P()
|
D | comp_avg_pred_test.cc | 49 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 54 ACMRandom rnd_; member in __anon3dbed2180111::AvgPredTest 83 ref.Set(&rnd_, &ACMRandom::Rand8); in TEST_P() 84 pred.Set(&rnd_, &ACMRandom::Rand8); in TEST_P() 115 ref.Set(&rnd_, &ACMRandom::Rand8); in TEST_P() 116 pred.Set(&rnd_, &ACMRandom::Rand8); in TEST_P() 149 ref.Set(&rnd_, &ACMRandom::Rand8); in TEST_P() 150 pred.Set(&rnd_, &ACMRandom::Rand8); in TEST_P()
|
D | minmax_test.cc | 33 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 38 ACMRandom rnd_; member in __anon9a13acac0111::MinMaxTest 88 a[j] = rnd_.Rand8(); in TEST_P() 89 b[j] = rnd_.Rand8(); in TEST_P() 102 a[i] = rnd_.Rand8(); in TEST_P() 103 b[i] = rnd_.Rand8(); in TEST_P()
|
D | avg_test.cc | 58 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 86 source_data_[i] = rnd_.Rand16() & ((1 << bit_depth_) - 1); in FillRandom() 95 ACMRandom rnd_; member in __anon5bbe4b800111::AverageTestBase 239 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 265 ACMRandom rnd_; member in __anon5bbe4b800111::SatdTest 276 const int16_t tmp = rnd_.Rand16Signed(); in FillRandom() 293 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 315 rnd_.Reset(0xb0b9); in FillRandom() 316 for (int i = 0; i < txfm_size_; ++i) coeff_[i] = rnd_.Rand16() >> 1; in FillRandom() 317 rnd_.Reset(0xb0c8); in FillRandom() [all …]
|
D | variance_test.cc | 220 ACMRandom rnd_; member in __anon1d74b6eb0111::SumOfSquaresTest 239 mem[j] = rnd_.Rand8() - rnd_.Rand8(); in RefTest() 295 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 347 ACMRandom rnd_; member in __anon1d74b6eb0111::MainTestClass 393 src_[j] = rnd_.Rand8(); in RefTest() 394 ref_[j] = rnd_.Rand8(); in RefTest() 397 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest() 398 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest() 423 src_[src_ind] = rnd_.Rand8(); in RefStrideTest() 424 ref_[ref_ind] = rnd_.Rand8(); in RefStrideTest() [all …]
|
D | video_source.h | 209 : rnd_(seed), seed_(seed) {} in rnd_() function 215 rnd_.Reset(seed_); in Begin() 224 for (size_t i = 0; i < raw_sz_; ++i) img_->img_data[i] = rnd_.Rand8(); in FillFrame() 231 ACMRandom rnd_; variable
|
D | yuv_temporal_filter_test.cc | 298 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 315 ACMRandom rnd_; member in __anona739e70e0111::YUVTemporalFilterTest 394 y_src.Set(&rnd_, 0, 7 << (bd_ - 8)); in CompareTestWithParam() 395 y_pre.Set(&rnd_, 0, 7 << (bd_ - 8)); in CompareTestWithParam() 396 u_src.Set(&rnd_, 0, 7 << (bd_ - 8)); in CompareTestWithParam() 397 u_pre.Set(&rnd_, 0, 7 << (bd_ - 8)); in CompareTestWithParam() 398 v_src.Set(&rnd_, 0, 7 << (bd_ - 8)); in CompareTestWithParam() 399 v_pre.Set(&rnd_, 0, 7 << (bd_ - 8)); in CompareTestWithParam() 494 y_src.Set(&rnd_, 0, 7 << (bd_ - 8)); in RunTestFilterWithParam() 495 y_pre.Set(&rnd_, 0, 7 << (bd_ - 8)); in RunTestFilterWithParam() [all …]
|