From: James Zern Date: Thu, 10 Sep 2015 06:19:39 +0000 (-0700) Subject: vp9_encoder_parms_get_to_decoder: delete dead code X-Git-Tag: v1.5.0~154^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21952bab12c7a74c544a38e32e58c98a6240f281;p=libvpx vp9_encoder_parms_get_to_decoder: delete dead code the only input is y4m, there's no need to test for yuv. Change-Id: Ie5b55ea4af44ad79a55304ef5636a8ad7ed30bb8 --- diff --git a/test/vp9_encoder_parms_get_to_decoder.cc b/test/vp9_encoder_parms_get_to_decoder.cc index d97544ac9..d561c7fb5 100644 --- a/test/vp9_encoder_parms_get_to_decoder.cc +++ b/test/vp9_encoder_parms_get_to_decoder.cc @@ -14,7 +14,6 @@ #include "test/encode_test_driver.h" #include "test/util.h" #include "test/y4m_video_source.h" -#include "test/yuv_video_source.h" #include "vp9/decoder/vp9_decoder.h" #include "vp9/vp9_dx_iface.c" @@ -25,7 +24,6 @@ static vpx_codec_alg_priv_t *get_alg_priv(vpx_codec_ctx_t *ctx) { namespace { -const unsigned int kFramerate = 50; const int kCpuUsed = 2; struct EncodePerfTestVideo { @@ -58,14 +56,6 @@ const EncodeParameters kVP9EncodeParameterSet[] = { // TODO(JBB): Test profiles (requires more work). }; -int is_extension_y4m(const char *filename) { - const char *dot = strrchr(filename, '.'); - if (!dot || dot == filename) - return 0; - else - return !strcmp(dot, ".y4m"); -} - class VpxEncoderParmsGetToDecoder : public ::libvpx_test::EncoderTest, public ::libvpx_test::CodecTestWith2Params