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

Side by Side Diff: chromecast/media/cma/pipeline/audio_video_pipeline_impl_unittest.cc

Issue 1221903003: Change the video color space default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ::media::kCodecMP3, 91 ::media::kCodecMP3,
92 ::media::kSampleFormatS16, 92 ::media::kSampleFormatS16,
93 ::media::CHANNEL_LAYOUT_STEREO, 93 ::media::CHANNEL_LAYOUT_STEREO,
94 44100, 94 44100,
95 NULL, 0, false); 95 NULL, 0, false);
96 std::vector<::media::VideoDecoderConfig> video_configs; 96 std::vector<::media::VideoDecoderConfig> video_configs;
97 video_configs.push_back(::media::VideoDecoderConfig( 97 video_configs.push_back(::media::VideoDecoderConfig(
98 ::media::kCodecH264, 98 ::media::kCodecH264,
99 ::media::H264PROFILE_MAIN, 99 ::media::H264PROFILE_MAIN,
100 ::media::VideoFrame::I420, 100 ::media::VideoFrame::I420,
101 ::media::VideoFrame::COLOR_SPACE_UNSPECIFIED,
101 gfx::Size(640, 480), 102 gfx::Size(640, 480),
102 gfx::Rect(0, 0, 640, 480), 103 gfx::Rect(0, 0, 640, 480),
103 gfx::Size(640, 480), 104 gfx::Size(640, 480),
104 NULL, 0, false)); 105 NULL, 0, false));
105 106
106 // Frame generation on the producer side. 107 // Frame generation on the producer side.
107 std::vector<FrameGeneratorForTest::FrameSpec> frame_specs; 108 std::vector<FrameGeneratorForTest::FrameSpec> frame_specs;
108 frame_specs.resize(100); 109 frame_specs.resize(100);
109 for (size_t k = 0; k < frame_specs.size() - 1; k++) { 110 for (size_t k = 0; k < frame_specs.size() - 1; k++) {
110 frame_specs[k].has_config = (k == 0); 111 frame_specs[k].has_config = (k == 0);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 FROM_HERE, 206 FROM_HERE,
206 base::Bind(&AudioVideoPipelineImplTest::Initialize, 207 base::Bind(&AudioVideoPipelineImplTest::Initialize,
207 base::Unretained(this), 208 base::Unretained(this),
208 base::Closure(), 209 base::Closure(),
209 ::media::PIPELINE_OK, is_audio)); 210 ::media::PIPELINE_OK, is_audio));
210 message_loop->Run(); 211 message_loop->Run();
211 }; 212 };
212 213
213 } // namespace media 214 } // namespace media
214 } // namespace chromecast 215 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698