From 6e3cf6ec1d0bad58071d774ef2c4191560293cbc Mon Sep 17 00:00:00 2001 From: Alex Converse <aconverse@google.com> Date: Fri, 21 Feb 2014 10:31:36 -0800 Subject: [PATCH] Stop gating non420 features with a configure flag. Change-Id: I8cc38fdef6a2a0968af8dfe15e7c2b3c46c531ea --- test/datarate_test.cc | 2 -- test/test_vectors.cc | 2 -- test/test_vectors.h | 4 ---- test/vp9_lossless_test.cc | 2 -- vp9/common/vp9_loopfilter.c | 10 ---------- vp9/vp9_dx_iface.c | 4 ---- vpxenc.c | 2 -- 7 files changed, 26 deletions(-) diff --git a/test/datarate_test.cc b/test/datarate_test.cc index 5ae76d761c..39c9a5a673 100644 --- a/test/datarate_test.cc +++ b/test/datarate_test.cc @@ -381,7 +381,6 @@ TEST_P(DatarateTestVP9, BasicRateTargeting) { } } -#if CONFIG_NON420 // Check basic rate targeting, TEST_P(DatarateTestVP9, BasicRateTargeting444) { ::libvpx_test::Y4mVideoSource video("rush_hour_444.y4m", 0, 140); @@ -410,7 +409,6 @@ TEST_P(DatarateTestVP9, BasicRateTargeting444) { << cfg_.rc_target_bitrate << " "<< effective_datarate_; } } -#endif // Check that (1) the first dropped frame gets earlier and earlier // as the drop frame threshold is increased, and (2) that the total number of diff --git a/test/test_vectors.cc b/test/test_vectors.cc index 934281387c..aba8a3c17e 100644 --- a/test/test_vectors.cc +++ b/test/test_vectors.cc @@ -161,9 +161,7 @@ const char *kVP9TestVectors[kNumVp9TestVectors] = { "vp90-2-11-size-351x287.webm", "vp90-2-11-size-351x288.webm", "vp90-2-11-size-352x287.webm", "vp90-2-12-droppable_1.ivf", "vp90-2-12-droppable_2.ivf", "vp90-2-12-droppable_3.ivf", -#if CONFIG_NON420 "vp91-2-04-yv444.webm" -#endif }; #endif // CONFIG_VP9_DECODER diff --git a/test/test_vectors.h b/test/test_vectors.h index 307f7327b7..d5ecc96d61 100644 --- a/test/test_vectors.h +++ b/test/test_vectors.h @@ -21,11 +21,7 @@ extern const char *kVP8TestVectors[kNumVp8TestVectors]; #endif #if CONFIG_VP9_DECODER -#if CONFIG_NON420 const int kNumVp9TestVectors = 223; -#else -const int kNumVp9TestVectors = 222; -#endif extern const char *kVP9TestVectors[kNumVp9TestVectors]; #endif // CONFIG_VP9_DECODER diff --git a/test/vp9_lossless_test.cc b/test/vp9_lossless_test.cc index 2282687dce..ad7ba44a83 100644 --- a/test/vp9_lossless_test.cc +++ b/test/vp9_lossless_test.cc @@ -73,7 +73,6 @@ TEST_P(LossLessTest, TestLossLessEncoding) { EXPECT_GE(psnr_lossless, kMaxPsnr); } -#if CONFIG_NON420 TEST_P(LossLessTest, TestLossLessEncoding444) { libvpx_test::Y4mVideoSource video("rush_hour_444.y4m", 0, 10); @@ -90,7 +89,6 @@ TEST_P(LossLessTest, TestLossLessEncoding444) { const double psnr_lossless = GetMinPsnr(); EXPECT_GE(psnr_lossless, kMaxPsnr); } -#endif VP9_INSTANTIATE_TEST_CASE(LossLessTest, ALL_TEST_MODES); } // namespace diff --git a/vp9/common/vp9_loopfilter.c b/vp9/common/vp9_loopfilter.c index 04f8934c4b..fe2056d14e 100644 --- a/vp9/common/vp9_loopfilter.c +++ b/vp9/common/vp9_loopfilter.c @@ -868,7 +868,6 @@ void vp9_setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col, assert(!(lfm->int_4x4_uv & lfm->above_uv[TX_16X16])); } -#if CONFIG_NON420 static uint8_t build_lfi(const loop_filter_info_n *lfi_n, const MB_MODE_INFO *mbmi) { const int seg = mbmi->segment_id; @@ -1046,7 +1045,6 @@ static void filter_block_plane_non420(VP9_COMMON *cm, dst->buf += 8 * dst->stride; } } -#endif void vp9_filter_block_plane(VP9_COMMON *const cm, struct macroblockd_plane *const plane, @@ -1206,10 +1204,8 @@ void vp9_loop_filter_rows(const YV12_BUFFER_CONFIG *frame_buffer, const int num_planes = y_only ? 1 : MAX_MB_PLANE; int mi_row, mi_col; LOOP_FILTER_MASK lfm; -#if CONFIG_NON420 int use_420 = y_only || (xd->plane[1].subsampling_y == 1 && xd->plane[1].subsampling_x == 1); -#endif for (mi_row = start; mi_row < stop; mi_row += MI_BLOCK_SIZE) { MODE_INFO **mi_8x8 = cm->mi_grid_visible + mi_row * cm->mode_info_stride; @@ -1220,22 +1216,16 @@ void vp9_loop_filter_rows(const YV12_BUFFER_CONFIG *frame_buffer, setup_dst_planes(xd, frame_buffer, mi_row, mi_col); // TODO(JBB): Make setup_mask work for non 420. -#if CONFIG_NON420 if (use_420) -#endif vp9_setup_mask(cm, mi_row, mi_col, mi_8x8 + mi_col, cm->mode_info_stride, &lfm); for (plane = 0; plane < num_planes; ++plane) { -#if CONFIG_NON420 if (use_420) -#endif vp9_filter_block_plane(cm, &xd->plane[plane], mi_row, &lfm); -#if CONFIG_NON420 else filter_block_plane_non420(cm, &xd->plane[plane], mi_8x8 + mi_col, mi_row, mi_col); -#endif } } } diff --git a/vp9/vp9_dx_iface.c b/vp9/vp9_dx_iface.c index 76cbebf196..b85e17237c 100644 --- a/vp9/vp9_dx_iface.c +++ b/vp9/vp9_dx_iface.c @@ -159,11 +159,7 @@ static vpx_codec_err_t vp9_peek_si(const uint8_t *data, unsigned int data_sz, if (frame_marker != VP9_FRAME_MARKER) return VPX_CODEC_UNSUP_BITSTREAM; -#if CONFIG_NON420 if (version > 1) return VPX_CODEC_UNSUP_BITSTREAM; -#else - if (version != 0) return VPX_CODEC_UNSUP_BITSTREAM; -#endif if (vp9_rb_read_bit(&rb)) { // show an existing frame return VPX_CODEC_OK; diff --git a/vpxenc.c b/vpxenc.c index d3734fe45e..8cd5a103ae 100644 --- a/vpxenc.c +++ b/vpxenc.c @@ -1553,11 +1553,9 @@ int main(int argc, const char **argv_) { if (!input.filename) usage_exit(); -#if CONFIG_NON420 /* Decide if other chroma subsamplings than 4:2:0 are supported */ if (global.codec->fourcc == VP9_FOURCC) input.only_i420 = 0; -#endif for (pass = global.pass ? global.pass - 1 : 0; pass < global.passes; pass++) { int frames_in = 0, seen_frames = 0; -- GitLab