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

Unified Diff: media/test/pipeline_integration_test.cc

Issue 1561703002: media/vpx: Add support for VP9 alpha channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: media/test/pipeline_integration_test.cc
diff --git a/media/test/pipeline_integration_test.cc b/media/test/pipeline_integration_test.cc
index 0644c361dc7a2d938f99a8247f2faa8443cb96c4..3f82ff5ddaf78281d6614c4502aa7faafcd80ca5 100644
--- a/media/test/pipeline_integration_test.cc
+++ b/media/test/pipeline_integration_test.cc
@@ -1833,6 +1833,22 @@ TEST_F(PipelineIntegrationTest, BasicPlayback_VP9_Odd_WebM) {
ASSERT_TRUE(WaitUntilOnEnded());
}
+// Verify that VP9 video with alpha channel can be played back.
+TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_WebM) {
+ ASSERT_EQ(PIPELINE_OK, Start("bear-vp9a.webm"));
DaleCurtis 2016/01/05 21:22:21 Can you create these as kClockless type tests? We
vignesh 2016/01/06 00:07:49 I have marked these two as kClockless. Would you l
DaleCurtis 2016/01/06 00:16:48 Sure, if they all still pass.
+ Play();
+ ASSERT_TRUE(WaitUntilOnEnded());
+ EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
+}
+
+// Verify that VP9A video with odd width/height can be played back.
+TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_Odd_WebM) {
+ ASSERT_EQ(PIPELINE_OK, Start("bear-vp9a-odd-dimensions.webm"));
+ Play();
+ ASSERT_TRUE(WaitUntilOnEnded());
+ EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
+}
+
#if !defined(DISABLE_TEXT_TRACK_TESTS)
// Verify that VP8 video with inband text track can be played back.
TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) {
« media/filters/vpx_video_decoder.cc ('K') | « media/test/data/bear-vp9a-odd-dimensions.webm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698