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

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

Issue 2096813002: media/vpx: Add support for VP9 alpha channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test files for real Created 4 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 | « media/test/data/bear-vp9a-odd-dimensions.webm ('k') | no next file » | 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A); 2191 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
2192 } 2192 }
2193 2193
2194 // Verify that VP9 video with odd width/height can be played back. 2194 // Verify that VP9 video with odd width/height can be played back.
2195 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9_Odd_WebM) { 2195 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9_Odd_WebM) {
2196 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-odd-dimensions.webm")); 2196 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-odd-dimensions.webm"));
2197 Play(); 2197 Play();
2198 ASSERT_TRUE(WaitUntilOnEnded()); 2198 ASSERT_TRUE(WaitUntilOnEnded());
2199 } 2199 }
2200 2200
2201 // Verify that VP9 video with alpha channel can be played back.
2202 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_WebM) {
2203 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9a.webm"));
2204 Play();
2205 ASSERT_TRUE(WaitUntilOnEnded());
2206 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
2207 }
2208
2209 // Verify that VP9A video with odd width/height can be played back.
2210 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_Odd_WebM) {
2211 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9a-odd-dimensions.webm"));
2212 Play();
2213 ASSERT_TRUE(WaitUntilOnEnded());
2214 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
2215 }
2216
2201 // Verify that VP8 video with inband text track can be played back. 2217 // Verify that VP8 video with inband text track can be played back.
2202 TEST_F(PipelineIntegrationTest, MAYBE_TEXT(BasicPlayback_VP8_WebVTT_WebM)) { 2218 TEST_F(PipelineIntegrationTest, MAYBE_TEXT(BasicPlayback_VP8_WebVTT_WebM)) {
2203 EXPECT_CALL(*this, OnAddTextTrack(_, _)); 2219 EXPECT_CALL(*this, OnAddTextTrack(_, _));
2204 ASSERT_EQ(PIPELINE_OK, Start("bear-vp8-webvtt.webm")); 2220 ASSERT_EQ(PIPELINE_OK, Start("bear-vp8-webvtt.webm"));
2205 Play(); 2221 Play();
2206 ASSERT_TRUE(WaitUntilOnEnded()); 2222 ASSERT_TRUE(WaitUntilOnEnded());
2207 } 2223 }
2208 2224
2209 // Verify that VP9 video with 4:4:4 subsampling can be played back. 2225 // Verify that VP9 video with 4:4:4 subsampling can be played back.
2210 TEST_F(PipelineIntegrationTest, P444_VP9_WebM) { 2226 TEST_F(PipelineIntegrationTest, P444_VP9_WebM) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 2319
2304 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { 2320 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) {
2305 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); 2321 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm"));
2306 Play(); 2322 Play();
2307 ASSERT_TRUE(WaitUntilOnEnded()); 2323 ASSERT_TRUE(WaitUntilOnEnded());
2308 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), 2324 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000),
2309 demuxer_->GetStartTime()); 2325 demuxer_->GetStartTime());
2310 } 2326 }
2311 2327
2312 } // namespace media 2328 } // namespace media
OLDNEW
« no previous file with comments | « 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