summaryrefslogtreecommitdiffstats
path: root/media/test/pipeline_integration_test.cc
diff options
context:
space:
mode:
authorwatk <watk@chromium.org>2015-03-04 12:01:35 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-04 20:02:18 +0000
commita1d1bd0dd33973d7cf0110a1e3bbefafe54037ba (patch)
treee2482562ecbae10a8f4159bc67d35d0ef616bd36 /media/test/pipeline_integration_test.cc
parente23fcf6558f0e96331f02a1e36bcf7699135038f (diff)
downloadchromium_src-a1d1bd0dd33973d7cf0110a1e3bbefafe54037ba.zip
chromium_src-a1d1bd0dd33973d7cf0110a1e3bbefafe54037ba.tar.gz
chromium_src-a1d1bd0dd33973d7cf0110a1e3bbefafe54037ba.tar.bz2
Support VP9 video in the BT709 color space.
Previously vp9 video was assumed to be in BT601. Now the vp9 color space flag is used to support BT709 as well. BUG=447716 TEST=media_unittests --gtest_filter='PipelineIntegrationTest*' Review URL: https://codereview.chromium.org/978483002 Cr-Commit-Position: refs/heads/master@{#319110}
Diffstat (limited to 'media/test/pipeline_integration_test.cc')
-rw-r--r--media/test/pipeline_integration_test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/media/test/pipeline_integration_test.cc b/media/test/pipeline_integration_test.cc
index 55bba58..bf502df 100644
--- a/media/test/pipeline_integration_test.cc
+++ b/media/test/pipeline_integration_test.cc
@@ -1651,6 +1651,15 @@ TEST_F(PipelineIntegrationTest, P444_VP9_WebM) {
EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, VideoFrame::YV24);
}
+// Verify that frames of VP9 video in the BT.709 color space have the YV12HD
+// format.
+TEST_F(PipelineIntegrationTest, BT709_VP9_WebM) {
+ ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-bt709.webm"));
+ Play();
+ ASSERT_TRUE(WaitUntilOnEnded());
+ EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, VideoFrame::YV12HD);
+}
+
// Verify that videos with an odd frame size playback successfully.
TEST_F(PipelineIntegrationTest, BasicPlayback_OddVideoSize) {
ASSERT_EQ(PIPELINE_OK, Start("butterfly-853x480.webm"));