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

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: Disable the JPEG blackwhite test 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ::media::AudioDecoderConfig audio_config; 65 ::media::AudioDecoderConfig audio_config;
66 ::media::VideoDecoderConfig video_config; 66 ::media::VideoDecoderConfig video_config;
67 if (has_config) { 67 if (has_config) {
68 gfx::Size coded_size(640, 480); 68 gfx::Size coded_size(640, 480);
69 gfx::Rect visible_rect(640, 480); 69 gfx::Rect visible_rect(640, 480);
70 gfx::Size natural_size(640, 480); 70 gfx::Size natural_size(640, 480);
71 video_config = ::media::VideoDecoderConfig( 71 video_config = ::media::VideoDecoderConfig(
72 ::media::kCodecH264, 72 ::media::kCodecH264,
73 ::media::VIDEO_CODEC_PROFILE_UNKNOWN, 73 ::media::VIDEO_CODEC_PROFILE_UNKNOWN,
74 ::media::VideoFrame::YV12, 74 ::media::VideoFrame::YV12,
75 ::media::VideoFrame::COLOR_SPACE_UNSPECIFIED,
75 coded_size, 76 coded_size,
76 visible_rect, 77 visible_rect,
77 natural_size, 78 natural_size,
78 NULL, 0, 79 NULL, 0,
79 false); 80 false);
80 81
81 audio_config = ::media::AudioDecoderConfig( 82 audio_config = ::media::AudioDecoderConfig(
82 ::media::kCodecAAC, 83 ::media::kCodecAAC,
83 ::media::kSampleFormatS16, 84 ::media::kSampleFormatS16,
84 ::media::CHANNEL_LAYOUT_STEREO, 85 ::media::CHANNEL_LAYOUT_STEREO,
85 44100, 86 44100,
86 NULL, 0, 87 NULL, 0,
87 false); 88 false);
88 } 89 }
89 90
90 read_cb.Run(buffer, audio_config, video_config); 91 read_cb.Run(buffer, audio_config, video_config);
91 } 92 }
92 93
93 } // namespace media 94 } // namespace media
94 } // namespace chromecast 95 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698