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

Side by Side Diff: media/filters/pipeline_integration_test.cc

Issue 92073002: media: Handling YV12 odd height/width in vpx_video_decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, addressing comments Created 7 years 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 | « no previous file | media/filters/vpx_video_decoder.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/filters/pipeline_integration_test_base.h" 5 #include "media/filters/pipeline_integration_test_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 // Verify that VP8 video with alpha channel can be played back. 1090 // Verify that VP8 video with alpha channel can be played back.
1091 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_WebM) { 1091 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_WebM) {
1092 EXPECT_CALL(*this, OnSetOpaque(false)).Times(AnyNumber()); 1092 EXPECT_CALL(*this, OnSetOpaque(false)).Times(AnyNumber());
1093 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a.webm"), 1093 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a.webm"),
1094 PIPELINE_OK)); 1094 PIPELINE_OK));
1095 Play(); 1095 Play();
1096 ASSERT_TRUE(WaitUntilOnEnded()); 1096 ASSERT_TRUE(WaitUntilOnEnded());
1097 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A); 1097 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A);
1098 } 1098 }
1099 1099
1100 // Verify that VP8A video with odd width/height can be played back.
1101 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_Odd_WebM) {
1102 EXPECT_CALL(*this, OnSetOpaque(false)).Times(AnyNumber());
1103 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a-odd-dimensions.webm"),
1104 PIPELINE_OK));
1105 Play();
1106 ASSERT_TRUE(WaitUntilOnEnded());
1107 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A);
1108 }
1109
1100 // Verify that VP8 video with inband text track can be played back. 1110 // Verify that VP8 video with inband text track can be played back.
1101 TEST_F(PipelineIntegrationTest, 1111 TEST_F(PipelineIntegrationTest,
1102 BasicPlayback_VP8_WebVTT_WebM) { 1112 BasicPlayback_VP8_WebVTT_WebM) {
1103 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"), 1113 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"),
1104 PIPELINE_OK)); 1114 PIPELINE_OK));
1105 Play(); 1115 Play();
1106 ASSERT_TRUE(WaitUntilOnEnded()); 1116 ASSERT_TRUE(WaitUntilOnEnded());
1107 } 1117 }
1108 1118
1109 } // namespace media 1119 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/filters/vpx_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698