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

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

Issue 1169543007: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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/partial_idct_test.cc ('k') | source/libvpx/test/test.mk » ('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) 2013 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 TEST_F(SvcTest, OnePassEncodeOneFrame) { 446 TEST_F(SvcTest, OnePassEncodeOneFrame) {
447 codec_enc_.g_pass = VPX_RC_ONE_PASS; 447 codec_enc_.g_pass = VPX_RC_ONE_PASS;
448 vpx_fixed_buf output = {0}; 448 vpx_fixed_buf output = {0};
449 Pass2EncodeNFrames(NULL, 1, 2, &output); 449 Pass2EncodeNFrames(NULL, 1, 2, &output);
450 DecodeNFrames(&output, 1); 450 DecodeNFrames(&output, 1);
451 FreeBitstreamBuffers(&output, 1); 451 FreeBitstreamBuffers(&output, 1);
452 } 452 }
453 453
454 TEST_F(SvcTest, OnePassEncodeThreeFrames) { 454 TEST_F(SvcTest, OnePassEncodeThreeFrames) {
455 codec_enc_.g_pass = VPX_RC_ONE_PASS; 455 codec_enc_.g_pass = VPX_RC_ONE_PASS;
456 codec_enc_.g_lag_in_frames = 0;
456 vpx_fixed_buf outputs[3]; 457 vpx_fixed_buf outputs[3];
457 memset(&outputs[0], 0, sizeof(outputs)); 458 memset(&outputs[0], 0, sizeof(outputs));
458 Pass2EncodeNFrames(NULL, 3, 2, &outputs[0]); 459 Pass2EncodeNFrames(NULL, 3, 2, &outputs[0]);
459 DecodeNFrames(&outputs[0], 3); 460 DecodeNFrames(&outputs[0], 3);
460 FreeBitstreamBuffers(&outputs[0], 3); 461 FreeBitstreamBuffers(&outputs[0], 3);
461 } 462 }
462 463
463 TEST_F(SvcTest, TwoPassEncode10Frames) { 464 TEST_F(SvcTest, TwoPassEncode10Frames) {
464 // First pass encode 465 // First pass encode
465 std::string stats_buf; 466 std::string stats_buf;
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 vpx_svc_set_options(&svc_, "auto-alt-refs=1 scale-factors=1/1 " 788 vpx_svc_set_options(&svc_, "auto-alt-refs=1 scale-factors=1/1 "
788 "multi-frame-contexts=1"); 789 "multi-frame-contexts=1");
789 vpx_fixed_buf outputs[10]; 790 vpx_fixed_buf outputs[10];
790 memset(&outputs[0], 0, sizeof(outputs)); 791 memset(&outputs[0], 0, sizeof(outputs));
791 Pass2EncodeNFrames(&stats_buf, 10, 1, &outputs[0]); 792 Pass2EncodeNFrames(&stats_buf, 10, 1, &outputs[0]);
792 DecodeNFrames(&outputs[0], 10); 793 DecodeNFrames(&outputs[0], 10);
793 FreeBitstreamBuffers(&outputs[0], 10); 794 FreeBitstreamBuffers(&outputs[0], 10);
794 } 795 }
795 796
796 } // namespace 797 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/partial_idct_test.cc ('k') | source/libvpx/test/test.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698