Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: source/libvpx/test/vp9_encoder_parms_get_to_decoder.cc

Issue 958693004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/test/vp9_avg_test.cc ('k') | source/libvpx/test/vp9_frame_parallel_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 EXPECT_EQ(VPX_CODEC_OK, res_dec) << decoder->DecodeError(); 156 EXPECT_EQ(VPX_CODEC_OK, res_dec) << decoder->DecodeError();
157 return VPX_CODEC_OK == res_dec; 157 return VPX_CODEC_OK == res_dec;
158 } 158 }
159 159
160 EncodePerfTestVideo test_video_; 160 EncodePerfTestVideo test_video_;
161 161
162 private: 162 private:
163 EncodeParameters encode_parms; 163 EncodeParameters encode_parms;
164 }; 164 };
165 165
166 TEST_P(Vp9EncoderParmsGetToDecoder, BitstreamParms) { 166 // TODO(hkuang): This test conflicts with frame parallel decode. So disable it
167 // for now until fix.
168 TEST_P(Vp9EncoderParmsGetToDecoder, DISABLED_BitstreamParms) {
167 init_flags_ = VPX_CODEC_USE_PSNR; 169 init_flags_ = VPX_CODEC_USE_PSNR;
168 170
169 libvpx_test::VideoSource *video; 171 libvpx_test::VideoSource *video;
170 if (is_extension_y4m(test_video_.name)) { 172 if (is_extension_y4m(test_video_.name)) {
171 video = new libvpx_test::Y4mVideoSource(test_video_.name, 173 video = new libvpx_test::Y4mVideoSource(test_video_.name,
172 0, test_video_.frames); 174 0, test_video_.frames);
173 } else { 175 } else {
174 video = new libvpx_test::YUVVideoSource(test_video_.name, 176 video = new libvpx_test::YUVVideoSource(test_video_.name,
175 VPX_IMG_FMT_I420, 177 VPX_IMG_FMT_I420,
176 test_video_.width, 178 test_video_.width,
177 test_video_.height, 179 test_video_.height,
178 kFramerate, 1, 0, 180 kFramerate, 1, 0,
179 test_video_.frames); 181 test_video_.frames);
180 } 182 }
181 183
182 ASSERT_NO_FATAL_FAILURE(RunLoop(video)); 184 ASSERT_NO_FATAL_FAILURE(RunLoop(video));
183 delete(video); 185 delete(video);
184 } 186 }
185 187
186 VP9_INSTANTIATE_TEST_CASE( 188 VP9_INSTANTIATE_TEST_CASE(
187 Vp9EncoderParmsGetToDecoder, 189 Vp9EncoderParmsGetToDecoder,
188 ::testing::ValuesIn(kVP9EncodeParameterSet), 190 ::testing::ValuesIn(kVP9EncodeParameterSet),
189 ::testing::ValuesIn(kVP9EncodePerfTestVectors)); 191 ::testing::ValuesIn(kVP9EncodePerfTestVectors));
190 192
191 } // namespace 193 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/vp9_avg_test.cc ('k') | source/libvpx/test/vp9_frame_parallel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698