/external/libaom/libaom/test/ |
D | comp_avg_pred_test.h | 90 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 105 pred8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 106 ref8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 119 const int offset_r = 3 + rnd_.PseudoUniform(h - in_h - 7); in RunCheckOutput() 120 const int offset_c = 3 + rnd_.PseudoUniform(w - in_w - 7); in RunCheckOutput() 150 pred8[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 151 ref8[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 187 libaom_test::ACMRandom rnd_; variable 194 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 209 pred8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() [all …]
|
D | sum_squares_test.cc | 49 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 66 src_[ii * stride + jj] = rnd_(2) ? rnd_(limit) : -rnd_(limit); in GenRandomData() 74 const int val = rnd_(2) ? limit - 1 : -(limit - 1); in GenExtremeData() 85 ACMRandom rnd_; member in __anonb9a9cd310111::SumSquaresTest 91 const int width = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 92 const int height = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 93 int stride = 4 << rnd_(7); // Up to 256 stride in RunTest() 95 stride = 4 << rnd_(7); in RunTest() 120 int stride = 4 << rnd_(7); // Up to 256 stride in RunSpeedTest() 122 stride = 4 << rnd_(7); in RunSpeedTest() [all …]
|
D | corner_match_test.cc | 46 libaom_test::ACMRandom rnd_; member in test_libaom::AV1CornerMatch::AV1CornerMatchTest 51 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 72 input1[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 73 input2[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 78 int v = rnd_.Rand8(); in RunCheckOutput() 80 input2[i * w + j] = (v / 2) + (rnd_.Rand8() & 15); in RunCheckOutput() 85 int x1 = MATCH_SZ_BY2 + rnd_.PseudoUniform(w - 2 * MATCH_SZ_BY2); in RunCheckOutput() 86 int y1 = MATCH_SZ_BY2 + rnd_.PseudoUniform(h - 2 * MATCH_SZ_BY2); in RunCheckOutput() 87 int x2 = MATCH_SZ_BY2 + rnd_.PseudoUniform(w - 2 * MATCH_SZ_BY2); in RunCheckOutput() 88 int y2 = MATCH_SZ_BY2 + rnd_.PseudoUniform(h - 2 * MATCH_SZ_BY2); in RunCheckOutput()
|
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] = 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 | coding_path_sync.cc | 29 explicit CompressedSource(int seed) : rnd_(seed), frame_count_(0) { in CompressedSource() 40 const int q = rnd_.PseudoUniform(max_q - min_q + 1) + min_q; in CompressedSource() 49 width_ = rnd_.PseudoUniform(kWidth - 8) + 8; in CompressedSource() 50 height_ = rnd_.PseudoUniform(kHeight - 8) + 8; in CompressedSource() 61 format_ = fmts[rnd_.PseudoUniform(NELEMENTS(fmts))]; in CompressedSource() 83 const int period = rnd_.Rand8() % 32 + 1; in ReadFrame() 84 const int phase = rnd_.Rand8() % period; in ReadFrame() 86 const int val_a = rnd_.Rand8(); in ReadFrame() 87 const int val_b = rnd_.Rand8(); in ReadFrame() 111 ACMRandom rnd_; member in __anon348027160111::CompressedSource
|
D | hiprec_convolve_test_util.cc | 68 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 94 generate_kernels(&rnd_, hkernel, vkernel); in RunCheckOutput() 97 for (j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 101 int offset_r = 3 + rnd_.PseudoUniform(h - out_h - 7); in RunCheckOutput() 102 int offset_c = 3 + rnd_.PseudoUniform(w - out_w - 7); in RunCheckOutput() 140 generate_kernels(&rnd_, hkernel, vkernel); in RunSpeedTest() 143 for (j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 202 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 231 generate_kernels(&rnd_, hkernel, vkernel); in RunCheckOutput() 234 for (j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput() [all …]
|
D | variance_test.cc | 340 ACMRandom rnd_; member in __anon60dcd6220111::SumOfSquaresTest 359 mem[j] = rnd_.Rand8() - rnd_.Rand8(); in RefTest() 415 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 463 ACMRandom rnd_; member in __anon60dcd6220111::MainTestClass 509 src_[j] = rnd_.Rand8(); in RefTest() 510 ref_[j] = rnd_.Rand8(); in RefTest() 512 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask(); in RefTest() 513 CONVERT_TO_SHORTPTR(ref_)[j] = rnd_.Rand16() & mask(); in RefTest() 537 src_[src_ind] = rnd_.Rand8(); in RefStrideTest() 538 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 | 70 libaom_test::ACMRandom rnd_; member in AV1CompMaskVariance::AV1CompMaskVarianceTest 81 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 89 pred_[i] = rnd_.Rand8(); in SetUp() 92 ref_buffer_[i] = rnd_.Rand8(); in SetUp() 315 libaom_test::ACMRandom rnd_; member in AV1CompMaskVariance::AV1HighbdCompMaskVarianceTest 326 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 357 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() [all …]
|
D | warp_filter_test_util.cc | 107 void AV1WarpFilterTest::SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 136 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunSpeedTest() 141 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand8(); in RunSpeedTest() 198 for (int i = 0; i < output_n; ++i) output[i] = output2[i] = rnd_.Rand8(); in RunCheckOutput() 203 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand8(); in RunCheckOutput() 208 const int use_no_round = rnd_.Rand8() & 1; in RunCheckOutput() 211 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunCheckOutput() 299 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 329 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunSpeedTest() 334 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand16() & mask; in RunSpeedTest() [all …]
|
D | av1_convolve_2d_test_util.h | 53 libaom_test::ACMRandom rnd_; variable 67 libaom_test::ACMRandom rnd_; variable 96 libaom_test::ACMRandom rnd_; variable 111 libaom_test::ACMRandom rnd_; variable
|
D | reconinter_test.cc | 58 ACMRandom rnd_; member in __anoneff61bd20111::BuildCompDiffwtdMaskTest 82 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 88 libaom_test::ACMRandom rnd_; member in __anoneff61bd20111::BuildCompDiffwtdMaskD16Test 108 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()
|
D | subtract_test.cc | 127 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 150 ACMRandom rnd_; member in __anon00a264410111::AV1HBDSubtractBlockTest 169 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()
|
D | av1_round_shift_array_test.cc | 44 void SetUp() { rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); } in SetUp() 53 libaom_test::ACMRandom rnd_; member in AV1CompRoundShift::AV1CompRoundShiftTest 66 ref_buffer_[i] = pred_[i] = rnd_.Rand31() / 16; in RunCheckOutput() 83 ref_buffer_[i] = rnd_.Rand31(); in RunSpeedTest()
|
D | yuv_temporal_filter_test.cc | 365 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 394 ACMRandom rnd_; member in __anonf639b5e50111::YUVTemporalFilterTest 475 SetArray(y_src, width, height, y_stride, &rnd_, 0, max_val); in CompareTestWithParam() 476 SetArray(y_pre, width, height, y_stride, &rnd_, 0, max_val); in CompareTestWithParam() 477 SetArray(u_src, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 478 SetArray(u_pre, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 479 SetArray(v_src, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 480 SetArray(v_pre, uv_width, uv_height, uv_stride, &rnd_, 0, max_val); in CompareTestWithParam() 556 SetArray(y_src, width, height, MAX_WIDTH, &rnd_, 0, 7 << (bd_ = 8)); in RunTestFilterWithParam() 557 SetArray(y_pre, width, height, MAX_WIDTH, &rnd_, 0, 7 << (bd_ = 8)); in RunTestFilterWithParam() [all …]
|
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 | 44 libaom_test::ACMRandom rnd_; member in __anon5784961d0111::AV1Crc32cHashTest 54 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 62 buffer_[i] = rnd_.Rand8(); in SetUp()
|
/external/libvpx/libvpx/test/ |
D | temporal_filter_test.cc | 116 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 121 ACMRandom rnd_; member in __anond3ad12440111::TemporalFilterTest 149 a.Set(&rnd_, 0, 7); in TEST_P() 150 b.Set(&rnd_, 0, 7); in TEST_P() 152 accum_ref.Set(rnd_.Rand8()); in TEST_P() 154 count_ref.Set(rnd_.Rand8()); in TEST_P() 195 a.Set(&rnd_, 0, 7); in TEST_P() 196 b.Set(&rnd_, 0, 7); in TEST_P() 199 a.Set(&rnd_, std::numeric_limits<uint8_t>::max() - 7, in TEST_P() 201 b.Set(&rnd_, std::numeric_limits<uint8_t>::max() - 7, in TEST_P() [all …]
|
D | vp8_fdct4x4_test.cc | 79 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 84 ACMRandom rnd_; member in __anonb5e238d90111::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 __anond6fdf6510111::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 __anon7ab20f050111::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 __anon87e324790111::AverageTestBase 239 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 265 ACMRandom rnd_; member in __anon87e324790111::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 __anon9f3513840111::SumOfSquaresTest 239 mem[j] = rnd_.Rand8() - rnd_.Rand8(); in RefTest() 295 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 347 ACMRandom rnd_; member in __anon9f3513840111::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 | quantize_test.cc | 56 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetupCompressor() 94 vp8_comp_->mb.coeff[i] = rnd_.Rand8(); in FillCoeffRandom() 116 ACMRandom rnd_; member in __anon258ab2ec0111::QuantizeTestBase
|