summaryrefslogtreecommitdiff
path: root/test/vp9_scale_test.cc
diff options
context:
space:
mode:
authorLinfeng Zhang <linfengz@google.com>2017-10-03 09:59:11 -0700
committerLinfeng Zhang <linfengz@google.com>2017-10-04 12:32:30 -0700
commitb809442521bc05cc838b45d0e4ccf1c8ba3e71d4 (patch)
treec00496261a69d2d83c30e349ff271a242d1b0b5e /test/vp9_scale_test.cc
parent9a71811d98825857e42042344d42822b4b1a7e79 (diff)
downloadlibvpx-b809442521bc05cc838b45d0e4ccf1c8ba3e71d4.tar
libvpx-b809442521bc05cc838b45d0e4ccf1c8ba3e71d4.tar.gz
libvpx-b809442521bc05cc838b45d0e4ccf1c8ba3e71d4.tar.bz2
libvpx-b809442521bc05cc838b45d0e4ccf1c8ba3e71d4.zip
Update vp9_scale_and_extend_frame_ssse3()
Change-Id: I22622faebfcc36f7a4d1f37e3800ae8ab87c8cd4
Diffstat (limited to 'test/vp9_scale_test.cc')
-rw-r--r--test/vp9_scale_test.cc20
1 files changed, 14 insertions, 6 deletions
diff --git a/test/vp9_scale_test.cc b/test/vp9_scale_test.cc
index f16cd48cd..5d7d38e89 100644
--- a/test/vp9_scale_test.cc
+++ b/test/vp9_scale_test.cc
@@ -48,17 +48,19 @@ class ScaleTest : public VpxScaleBase,
}
void RunTest() {
- static const int kNumSizesToTest = 4;
+ static const int kNumSizesToTest = 20;
static const int kNumScaleFactorsToTest = 4;
- static const int kWidthsToTest[] = { 16, 32, 48, 64 };
- static const int kHeightsToTest[] = { 16, 20, 24, 28 };
+ static const int kSizesToTest[] = {
+ 2, 4, 6, 8, 10, 12, 14, 16, 18, 20,
+ 22, 24, 26, 28, 30, 32, 34, 68, 128, 134
+ };
static const int kScaleFactors[] = { 1, 2, 3, 4 };
for (INTERP_FILTER filter_type = 0; filter_type < 4; ++filter_type) {
for (int phase_scaler = 0; phase_scaler < 16; ++phase_scaler) {
for (int h = 0; h < kNumSizesToTest; ++h) {
- const int src_height = kHeightsToTest[h];
+ const int src_height = kSizesToTest[h];
for (int w = 0; w < kNumSizesToTest; ++w) {
- const int src_width = kWidthsToTest[w];
+ const int src_width = kSizesToTest[w];
for (int sf_up_idx = 0; sf_up_idx < kNumScaleFactorsToTest;
++sf_up_idx) {
const int sf_up = kScaleFactors[sf_up_idx];
@@ -71,7 +73,13 @@ class ScaleTest : public VpxScaleBase,
continue;
}
// I420 frame width and height must be even.
- if (dst_width & 1 || dst_height & 1) {
+ if (!dst_width || !dst_height || dst_width & 1 ||
+ dst_height & 1) {
+ continue;
+ }
+ // vpx_convolve8_c() has restriction on the step which cannot
+ // exceed 64 (ratio 1 to 4).
+ if (src_width > 4 * dst_width || src_height > 4 * dst_height) {
continue;
}
ASSERT_NO_FATAL_FAILURE(ResetScaleImages(