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

Side by Side 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 unified diff | Download patch
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 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A); 1826 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
1827 } 1827 }
1828 1828
1829 // Verify that VP9 video with odd width/height can be played back. 1829 // Verify that VP9 video with odd width/height can be played back.
1830 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9_Odd_WebM) { 1830 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9_Odd_WebM) {
1831 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-odd-dimensions.webm")); 1831 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-odd-dimensions.webm"));
1832 Play(); 1832 Play();
1833 ASSERT_TRUE(WaitUntilOnEnded()); 1833 ASSERT_TRUE(WaitUntilOnEnded());
1834 } 1834 }
1835 1835
1836 // Verify that VP9 video with alpha channel can be played back.
1837 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_WebM) {
1838 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.
1839 Play();
1840 ASSERT_TRUE(WaitUntilOnEnded());
1841 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
1842 }
1843
1844 // Verify that VP9A video with odd width/height can be played back.
1845 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_Odd_WebM) {
1846 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9a-odd-dimensions.webm"));
1847 Play();
1848 ASSERT_TRUE(WaitUntilOnEnded());
1849 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A);
1850 }
1851
1836 #if !defined(DISABLE_TEXT_TRACK_TESTS) 1852 #if !defined(DISABLE_TEXT_TRACK_TESTS)
1837 // Verify that VP8 video with inband text track can be played back. 1853 // Verify that VP8 video with inband text track can be played back.
1838 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) { 1854 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) {
1839 EXPECT_CALL(*this, OnAddTextTrack(_, _)); 1855 EXPECT_CALL(*this, OnAddTextTrack(_, _));
1840 ASSERT_EQ(PIPELINE_OK, Start("bear-vp8-webvtt.webm")); 1856 ASSERT_EQ(PIPELINE_OK, Start("bear-vp8-webvtt.webm"));
1841 Play(); 1857 Play();
1842 ASSERT_TRUE(WaitUntilOnEnded()); 1858 ASSERT_TRUE(WaitUntilOnEnded());
1843 } 1859 }
1844 #endif // !defined(DISABLE_TEXT_TRACK_TESTS) 1860 #endif // !defined(DISABLE_TEXT_TRACK_TESTS)
1845 1861
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 1952
1937 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { 1953 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) {
1938 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); 1954 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm"));
1939 Play(); 1955 Play();
1940 ASSERT_TRUE(WaitUntilOnEnded()); 1956 ASSERT_TRUE(WaitUntilOnEnded());
1941 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), 1957 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000),
1942 demuxer_->GetStartTime()); 1958 demuxer_->GetStartTime());
1943 } 1959 }
1944 1960
1945 } // namespace media 1961 } // namespace media
OLDNEW
« 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