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

Side by Side Diff: chromecast/media/cma/test/mock_frame_provider.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 "chromecast/media/cma/test/mock_frame_provider.h" 5 #include "chromecast/media/cma/test/mock_frame_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 ::media::AudioDecoderConfig audio_config; 74 ::media::AudioDecoderConfig audio_config;
75 ::media::VideoDecoderConfig video_config; 75 ::media::VideoDecoderConfig video_config;
76 if (has_config) { 76 if (has_config) {
77 gfx::Size coded_size(640, 480); 77 gfx::Size coded_size(640, 480);
78 gfx::Rect visible_rect(640, 480); 78 gfx::Rect visible_rect(640, 480);
79 gfx::Size natural_size(640, 480); 79 gfx::Size natural_size(640, 480);
80 video_config = ::media::VideoDecoderConfig( 80 video_config = ::media::VideoDecoderConfig(
81 ::media::kCodecH264, 81 ::media::kCodecH264,
82 ::media::VIDEO_CODEC_PROFILE_UNKNOWN, 82 ::media::VIDEO_CODEC_PROFILE_UNKNOWN,
83 ::media::VideoFrame::YV12, 83 ::media::VideoFrame::YV12,
84 ::media::VideoFrame::COLOR_SPACE_UNSPECIFIED,
84 coded_size, 85 coded_size,
85 visible_rect, 86 visible_rect,
86 natural_size, 87 natural_size,
87 NULL, 0, 88 NULL, 0,
88 false); 89 false);
89 90
90 audio_config = ::media::AudioDecoderConfig( 91 audio_config = ::media::AudioDecoderConfig(
91 ::media::kCodecAAC, 92 ::media::kCodecAAC,
92 ::media::kSampleFormatS16, 93 ::media::kSampleFormatS16,
93 ::media::CHANNEL_LAYOUT_STEREO, 94 ::media::CHANNEL_LAYOUT_STEREO,
94 44100, 95 44100,
95 NULL, 0, 96 NULL, 0,
96 false); 97 false);
97 } 98 }
98 99
99 read_cb.Run(buffer, audio_config, video_config); 100 read_cb.Run(buffer, audio_config, video_config);
100 } 101 }
101 102
102 } // namespace media 103 } // namespace media
103 } // namespace chromecast 104 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/cma/test/demuxer_stream_for_test.cc ('k') | content/browser/media/media_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698