/external/libaom/test/ |
D | sum_squares_test.cc | 49 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 63 src_[ii * stride + jj] = rnd_(2) ? rnd_(limit) : -rnd_(limit); in GenRandomData() 71 const int val = rnd_(2) ? limit - 1 : -(limit - 1); in GenExtremeData() 82 ACMRandom rnd_; member in __anon72159e330111::SumSquaresTest 89 const int width = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 90 const int height = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 91 int stride = 4 << rnd_(7); // Up to 256 stride in RunTest() 93 stride = 4 << rnd_(7); in RunTest() 118 int stride = 4 << rnd_(7); // Up to 256 stride in RunSpeedTest() 120 stride = 4 << rnd_(7); in RunSpeedTest() [all …]
|
D | sse_sum_test.cc | 47 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 61 src_[ii * stride + jj] = rnd_(2) ? rnd_(limit) : -rnd_(limit); in GenRandomData() 69 const int val = rnd_(2) ? limit - 1 : -(limit - 1); in GenExtremeData() 80 ACMRandom rnd_; member in __anon6f205aba0111::SumSSETest 87 const int width = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 88 const int height = 4 * (rnd_(31) + 1); // Up to 128x128 in RunTest() 89 int stride = 4 << rnd_(7); // Up to 256 stride in RunTest() 91 stride = 4 << rnd_(7); in RunTest() 117 int stride = 4 << rnd_(7); // Up to 256 stride in RunSpeedTest() 119 stride = 4 << rnd_(7); in RunSpeedTest()
|
D | comp_avg_pred_test.h | 94 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 108 pred8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 109 ref8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 122 const int offset_r = 3 + rnd_.PseudoUniform(h - in_h - 7); in RunCheckOutput() 123 const int offset_c = 3 + rnd_.PseudoUniform(w - in_w - 7); in RunCheckOutput() 153 pred8[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 154 ref8[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 190 libaom_test::ACMRandom rnd_; variable 197 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 211 pred8[i * w + j] = rnd_.Rand8(); in RunCheckOutput() [all …]
|
D | corner_match_test.cc | 49 libaom_test::ACMRandom rnd_; member in test_libaom::AV1CornerMatch::AV1CornerMatchTest 55 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 78 input1[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 79 input2[i * w + j] = rnd_.Rand8(); in RunCheckOutput() 84 int v = rnd_.Rand8(); in RunCheckOutput() 86 input2[i * w + j] = (v / 2) + (rnd_.Rand8() & 15); in RunCheckOutput() 91 int x1 = MATCH_SZ_BY2 + rnd_.PseudoUniform(w - 2 * MATCH_SZ_BY2); in RunCheckOutput() 92 int y1 = MATCH_SZ_BY2 + rnd_.PseudoUniform(h - 2 * MATCH_SZ_BY2); in RunCheckOutput() 93 int x2 = MATCH_SZ_BY2 + rnd_.PseudoUniform(w - 2 * MATCH_SZ_BY2); in RunCheckOutput() 94 int y2 = MATCH_SZ_BY2 + rnd_.PseudoUniform(h - 2 * MATCH_SZ_BY2); in RunCheckOutput()
|
D | coding_path_sync.cc | 30 explicit CompressedSource(int seed) : rnd_(seed), frame_count_(0) { in CompressedSource() 45 const int q = rnd_.PseudoUniform(max_q - min_q + 1) + min_q; in CompressedSource() 54 width_ = rnd_.PseudoUniform(kWidth - 8) + 8; in CompressedSource() 55 height_ = rnd_.PseudoUniform(kHeight - 8) + 8; in CompressedSource() 66 format_ = fmts[rnd_.PseudoUniform(NELEMENTS(fmts))]; in CompressedSource() 88 const int period = rnd_.Rand8() % 32 + 1; in ReadFrame() 89 const int phase = rnd_.Rand8() % period; in ReadFrame() 91 const int val_a = rnd_.Rand8(); in ReadFrame() 92 const int val_b = rnd_.Rand8(); in ReadFrame() 116 ACMRandom rnd_; member in __anonecebf8180111::CompressedSource
|
D | variance_test.cc | 355 ACMRandom rnd_; member in __anon954876640111::SumOfSquaresTest 374 mem[j] = rnd_.Rand8() - rnd_.Rand8(); in RefTest() 430 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 451 ACMRandom rnd_; member in __anon954876640111::MseWxHTestClass 476 dst_[k] = rnd_.Rand8(); in SpeedTest() 477 src_[k] = rnd_.Rand8(); in SpeedTest() 509 dst_[k] = rnd_.Rand8(); in RefMatchTestMse() 510 src_[k] = rnd_.Rand8(); in RefMatchTestMse() 530 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 547 const uint32_t value = rnd_.Rand8(); in RandBool() [all …]
|
D | hiprec_convolve_test_util.cc | 88 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 118 generate_kernels(&rnd_, hkernel, vkernel, kernel_type); in RunCheckOutput() 121 for (m = 0; m < w; ++m) input[k * w + m] = rnd_.Rand8(); in RunCheckOutput() 123 int offset_r = 3 + rnd_.PseudoUniform(h - out_h - 7); in RunCheckOutput() 124 int offset_c = 3 + rnd_.PseudoUniform(w - out_w - 7); in RunCheckOutput() 163 generate_kernels(&rnd_, hkernel, vkernel); in RunSpeedTest() 166 for (j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand8(); in RunSpeedTest() 222 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 253 for (j = 0; j < w; ++j) input[i * w + j] = rnd_.Rand16() & ((1 << bd) - 1); in RunCheckOutput() 259 generate_kernels(&rnd_, hkernel, vkernel, kernel_type); in RunCheckOutput() [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 | av1_k_means_test.cc | 70 libaom_test::ACMRandom rnd_; member in AV1Kmeans::AV1KmeansTest1 81 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 83 data_[i] = (int)rnd_.Rand8() << 4; in SetUp() 86 centroids_[i] = (int)rnd_.Rand8() << 4; in SetUp() 180 libaom_test::ACMRandom rnd_; member in AV1Kmeans::AV1KmeansTest2 191 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 193 data_[i] = (int)rnd_.Rand8(); in SetUp() 196 centroids_[i] = (int)rnd_.Rand8(); in SetUp()
|
D | comp_mask_variance_test.cc | 73 libaom_test::ACMRandom rnd_; member in AV1CompMaskVariance::AV1CompMaskVarianceTest 85 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 97 pred_[i] = rnd_.Rand8(); in SetUp() 100 ref_buffer_[i] = rnd_.Rand8(); in SetUp() 320 libaom_test::ACMRandom rnd_; member in AV1CompMaskVariance::AV1HighbdCompMaskVarianceTest 332 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 364 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput() 367 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunCheckOutput() 395 pred_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest() 398 ref_buffer_[i] = rnd_.Rand16() & ((1 << bd_) - 1); in RunSpeedTest() [all …]
|
D | reconinter_test.cc | 58 ACMRandom rnd_; member in __anonedcad4940111::BuildCompDiffwtdMaskTest 82 void SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 88 libaom_test::ACMRandom rnd_; member in __anonedcad4940111::BuildCompDiffwtdMaskD16Test 110 src0[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunCheckOutput() 111 src1[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunCheckOutput() 151 src0[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunSpeedTest() 152 src1[i] = rnd_.Rand16() & ((1 << in_precision) - 1); in RunSpeedTest()
|
D | warp_filter_test_util.cc | 113 void AV1WarpFilterTest::SetUp() { rnd_.Reset(ACMRandom::DeterministicSeed()); } in SetUp() 145 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunSpeedTest() 150 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand8(); in RunSpeedTest() 210 for (int i = 0; i < output_n; ++i) output[i] = output2[i] = rnd_.Rand8(); in RunCheckOutput() 215 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand8(); in RunCheckOutput() 220 const int use_no_round = rnd_.Rand8() & 1; in RunCheckOutput() 223 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunCheckOutput() 307 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 341 generate_warped_model(&rnd_, mat, &alpha, &beta, &gamma, &delta, in RunSpeedTest() 346 for (int c = 0; c < w; ++c) input[r * stride + c] = rnd_.Rand16() & mask; in RunSpeedTest() [all …]
|
D | frame_error_test.cc | 44 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 52 libaom_test::ACMRandom rnd_; member in __anon5b27488f0111::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 | 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 67 ref_buffer_[i] = pred_[i] = rnd_.Rand31() / 16; in RunCheckOutput() 84 ref_buffer_[i] = rnd_.Rand31(); in RunSpeedTest()
|
D | subtract_test.cc | 61 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 103 ACMRandom rnd_; member in __anon350e04830111::AV1SubtractBlockTestBase 121 CONVERT_TO_SHORTPTR(src_)[i] = rnd_.Rand16() & mask; in FillInputs() 122 CONVERT_TO_SHORTPTR(pred_)[i] = rnd_.Rand16() & mask; in FillInputs() 129 src_[i] = rnd_.Rand8(); in FillInputs() 130 pred_[i] = rnd_.Rand8(); in FillInputs()
|
D | video_source.h | 233 : rnd_(seed), seed_(seed) {} in rnd_() function 238 rnd_.Reset(seed_); in Begin() 248 for (size_t i = 0; i < raw_sz_; ++i) img_->img_data[i] = rnd_.Rand8(); in FillFrame() 254 ACMRandom rnd_; variable
|
D | hash_test.cc | 45 libaom_test::ACMRandom rnd_; member in __anon94f6655f0111::AV1Crc32cHashTest 55 rnd_.Reset(libaom_test::ACMRandom::DeterministicSeed()); in SetUp() 63 buffer_[i] = rnd_.Rand8(); in SetUp()
|
/external/libvpx/test/ |
D | vp8_fdct4x4_test.cc | 79 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 84 ACMRandom rnd_; member in __anon5e0fec5a0111::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 | minmax_test.cc | 33 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 38 ACMRandom rnd_; member in __anoncf704de60111::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 | comp_avg_pred_test.cc | 54 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 63 ACMRandom rnd_; member in __anon41668e120111::AvgPredTest 93 ref.TopLeftPixel()[w + h * width] = rnd_.Rand16() & bitdepth_mask; in TestSizeCombinations() 98 pred.TopLeftPixel()[w + h * width] = rnd_.Rand16() & bitdepth_mask; in TestSizeCombinations() 135 ref.TopLeftPixel()[w + h * width] = rnd_.Rand16() & bitdepth_mask; in TestCompareReferenceRandom() 140 pred.TopLeftPixel()[w + h * width] = rnd_.Rand16() & bitdepth_mask; in TestCompareReferenceRandom() 177 ref.TopLeftPixel()[w + h * width] = rnd_.Rand16() & bitdepth_mask; in TestSpeed() 182 pred.TopLeftPixel()[w + h * width] = rnd_.Rand16() & bitdepth_mask; in TestSpeed()
|
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 __anonb9b9e6fa0111::AverageTestBase 244 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 270 ACMRandom rnd_; member in __anonb9b9e6fa0111::SatdTest 281 const int16_t tmp = rnd_.Rand16Signed(); in FillRandom() 298 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 320 rnd_.Reset(0xb0b9); in FillRandom() 321 for (int i = 0; i < txfm_size_; ++i) coeff_[i] = rnd_.Rand16() >> 1; in FillRandom() 322 rnd_.Reset(0xb0c8); in FillRandom() [all …]
|
D | vp9_subtract_test.cc | 186 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 212 ACMRandom rnd_; member in vp9::VPXHBDSubtractBlockTest 230 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask; in CheckResult() 231 CONVERT_TO_SHORTPTR(pred_)[j] = rnd_.Rand16() & mask; in CheckResult() 259 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask; in RunForSpeed() 260 CONVERT_TO_SHORTPTR(pred_)[j] = rnd_.Rand16() & mask; in RunForSpeed() 273 CONVERT_TO_SHORTPTR(src_)[j] = rnd_.Rand16() & mask; in RunForSpeed() 274 CONVERT_TO_SHORTPTR(pred_)[j] = rnd_.Rand16() & mask; in RunForSpeed()
|
D | variance_test.cc | 220 ACMRandom rnd_; member in __anon1c7e8ea50111::SumOfSquaresTest 239 mem[j] = rnd_.Rand8() - rnd_.Rand8(); in RefTest() 295 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 347 ACMRandom rnd_; member in __anon1c7e8ea50111::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 | yuv_temporal_filter_test.cc | 298 rnd_.Reset(ACMRandom::DeterministicSeed()); in SetUp() 315 ACMRandom rnd_; member in __anon82e136880111::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 …]
|
D | video_source.h | 234 : rnd_(seed), seed_(seed) {} in rnd_() function 240 rnd_.Reset(seed_); in Begin() 249 for (size_t i = 0; i < raw_sz_; ++i) img_->img_data[i] = rnd_.Rand8(); in FillFrame() 256 ACMRandom rnd_; variable
|