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

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

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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/encode_test_driver.h ('k') | source/libvpx/test/error_resilience_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) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 25 matching lines...) Expand all
36 36
37 #if CONFIG_VP9_ENCODER 37 #if CONFIG_VP9_ENCODER
38 if (CodecInterface() == &vpx_codec_vp9_cx_algo) { 38 if (CodecInterface() == &vpx_codec_vp9_cx_algo) {
39 // Default to 1 tile column for VP9. 39 // Default to 1 tile column for VP9.
40 const int log2_tile_columns = 0; 40 const int log2_tile_columns = 0;
41 res = vpx_codec_control_(&encoder_, VP9E_SET_TILE_COLUMNS, 41 res = vpx_codec_control_(&encoder_, VP9E_SET_TILE_COLUMNS,
42 log2_tile_columns); 42 log2_tile_columns);
43 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); 43 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError();
44 } else 44 } else
45 #endif 45 #endif
46 #if CONFIG_VP10_ENCODER
47 if (CodecInterface() == &vpx_codec_vp10_cx_algo) {
48 // Default to 1 tile column for VP10.
49 const int log2_tile_columns = 0;
50 res = vpx_codec_control_(&encoder_, VP9E_SET_TILE_COLUMNS,
51 log2_tile_columns);
52 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError();
53 } else
54 #endif
46 { 55 {
47 #if CONFIG_VP8_ENCODER 56 #if CONFIG_VP8_ENCODER
48 ASSERT_EQ(&vpx_codec_vp8_cx_algo, CodecInterface()) 57 ASSERT_EQ(&vpx_codec_vp8_cx_algo, CodecInterface())
49 << "Unknown Codec Interface"; 58 << "Unknown Codec Interface";
50 #endif 59 #endif
51 } 60 }
52 } 61 }
53 } 62 }
54 63
55 void Encoder::EncodeFrame(VideoSource *video, const unsigned long frame_flags) { 64 void Encoder::EncodeFrame(VideoSource *video, const unsigned long frame_flags) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 if (decoder) 272 if (decoder)
264 delete decoder; 273 delete decoder;
265 delete encoder; 274 delete encoder;
266 275
267 if (!Continue()) 276 if (!Continue())
268 break; 277 break;
269 } 278 }
270 } 279 }
271 280
272 } // namespace libvpx_test 281 } // namespace libvpx_test
OLDNEW
« no previous file with comments | « source/libvpx/test/encode_test_driver.h ('k') | source/libvpx/test/error_resilience_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698