Lines Matching refs:rnd

60 void InitInput(Pixel_t *s, Pixel_t *ref_s, ACMRandom *rnd, const uint8_t limit,  in InitInput()  argument
65 const uint8_t val = rnd->Rand8(); in InitInput()
67 tmp_s[j] = rnd->Rand16(); in InitInput()
73 tmp_s[j] = rnd->Rand16(); in InitInput()
85 const uint8_t val = rnd->Rand8(); in InitInput()
92 tmp_s[j] = rnd->Rand16(); in InitInput()
115 uint8_t GetOuterThresh(ACMRandom *rnd) { in GetOuterThresh() argument
116 return static_cast<uint8_t>(rnd->PseudoUniform(3 * MAX_LOOP_FILTER + 5)); in GetOuterThresh()
119 uint8_t GetInnerThresh(ACMRandom *rnd) { in GetInnerThresh() argument
120 return static_cast<uint8_t>(rnd->PseudoUniform(MAX_LOOP_FILTER + 1)); in GetInnerThresh()
123 uint8_t GetHevThresh(ACMRandom *rnd) { in GetHevThresh() argument
124 return static_cast<uint8_t>(rnd->PseudoUniform(MAX_LOOP_FILTER + 1) >> 4); in GetHevThresh()
170 ACMRandom rnd(ACMRandom::DeterministicSeed()); \
179 uint8_t tmp = GetOuterThresh(&rnd); \
183 tmp = GetInnerThresh(&rnd); \
187 tmp = GetHevThresh(&rnd); \
191 InitInput<a, b>(s, ref_s, &rnd, *limit, mask_, p, i); \
213 ACMRandom rnd(ACMRandom::DeterministicSeed()); \
221 uint8_t tmp = GetOuterThresh(&rnd); \
225 tmp = GetInnerThresh(&rnd); \
229 tmp = GetHevThresh(&rnd); \
235 s[j] = rnd.Rand16() & mask_; \
259 ACMRandom rnd(ACMRandom::DeterministicSeed()); \
263 uint8_t tmp = GetOuterThresh(&rnd); \
267 tmp = GetInnerThresh(&rnd); \
271 tmp = GetHevThresh(&rnd); \
277 s[j] = rnd.Rand16() & mask_; \
287 ACMRandom rnd(ACMRandom::DeterministicSeed()); \
295 uint8_t tmp = GetOuterThresh(&rnd); \
299 tmp = GetInnerThresh(&rnd); \
303 tmp = GetHevThresh(&rnd); \
307 tmp = GetOuterThresh(&rnd); \
311 tmp = GetInnerThresh(&rnd); \
315 tmp = GetHevThresh(&rnd); \
321 InitInput<a, b>(s, ref_s, &rnd, limit, mask_, p, i); \
344 ACMRandom rnd(ACMRandom::DeterministicSeed()); \
352 uint8_t tmp = GetOuterThresh(&rnd); \
356 tmp = GetInnerThresh(&rnd); \
360 tmp = GetHevThresh(&rnd); \
364 tmp = GetOuterThresh(&rnd); \
368 tmp = GetInnerThresh(&rnd); \
372 tmp = GetHevThresh(&rnd); \
378 s[j] = rnd.Rand16() & mask_; \
403 ACMRandom rnd(ACMRandom::DeterministicSeed()); \
406 uint8_t tmp = GetOuterThresh(&rnd); \
410 tmp = GetInnerThresh(&rnd); \
414 tmp = GetHevThresh(&rnd); \
418 tmp = GetOuterThresh(&rnd); \
422 tmp = GetInnerThresh(&rnd); \
426 tmp = GetHevThresh(&rnd); \
432 s[j] = rnd.Rand16() & mask_; \