Use extreme values for input in convovle tests
The intepolation filter functions can be better tested withe extreme values, especially given the optimization functions are prone to overflow signed 16 bit intermediate value when operation order is wrong. Change-Id: I712142b0bc1e5969c692c0486a57ffa37c9742b5
This commit is contained in:
parent
9410330893
commit
077144d206
@ -221,8 +221,12 @@ class ConvolveTest : public ::testing::TestWithParam<convolve_param_t> {
|
||||
}
|
||||
|
||||
::libvpx_test::ACMRandom prng;
|
||||
for (int i = 0; i < kInputBufferSize; ++i)
|
||||
input_[i] = prng.Rand8Extremes();
|
||||
for (int i = 0; i < kInputBufferSize; ++i) {
|
||||
if (i & 1)
|
||||
input_[i] = 255;
|
||||
else
|
||||
input_[i] = prng.Rand8Extremes();
|
||||
}
|
||||
}
|
||||
|
||||
void SetConstantInput(int value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user