Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 ::media::AudioDecoderConfig audio_config; | 75 ::media::AudioDecoderConfig audio_config; |
| 76 ::media::VideoDecoderConfig video_config; | 76 ::media::VideoDecoderConfig video_config; |
| 77 if (has_config) { | 77 if (has_config) { |
| 78 gfx::Size coded_size(640, 480); | 78 gfx::Size coded_size(640, 480); |
| 79 gfx::Rect visible_rect(640, 480); | 79 gfx::Rect visible_rect(640, 480); |
| 80 gfx::Size natural_size(640, 480); | 80 gfx::Size natural_size(640, 480); |
| 81 video_config = ::media::VideoDecoderConfig( | 81 video_config = ::media::VideoDecoderConfig( |
| 82 ::media::kCodecH264, ::media::VIDEO_CODEC_PROFILE_UNKNOWN, | 82 ::media::kCodecH264, ::media::VIDEO_CODEC_PROFILE_UNKNOWN, |
| 83 ::media::PIXEL_FORMAT_YV12, ::media::COLOR_SPACE_UNSPECIFIED, | 83 ::media::PIXEL_FORMAT_YV12, ::media::COLOR_SPACE_UNSPECIFIED, |
| 84 coded_size, visible_rect, natural_size, ::media::EmptyExtraData(), | 84 coded_size, visible_rect, natural_size, ::media::EmptyExtraData(), |
| 85 false); | 85 ::media::EncryptionScheme(false)); |
|
halliwell
2016/01/13 03:29:41
ditto
dougsteed
2016/02/09 22:58:53
Done.
| |
| 86 | 86 |
| 87 audio_config = ::media::AudioDecoderConfig( | 87 audio_config = ::media::AudioDecoderConfig( |
| 88 ::media::kCodecAAC, | 88 ::media::kCodecAAC, |
| 89 ::media::kSampleFormatS16, | 89 ::media::kSampleFormatS16, |
| 90 ::media::CHANNEL_LAYOUT_STEREO, | 90 ::media::CHANNEL_LAYOUT_STEREO, |
| 91 44100, | 91 44100, |
| 92 ::media::EmptyExtraData(), | 92 ::media::EmptyExtraData(), |
| 93 false); | 93 ::media::EncryptionScheme(false)); |
|
halliwell
2016/01/13 03:29:41
ditto
dougsteed
2016/02/09 22:58:53
Done.
| |
| 94 } | 94 } |
| 95 | 95 |
| 96 read_cb.Run(buffer, audio_config, video_config); | 96 read_cb.Run(buffer, audio_config, video_config); |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace media | 99 } // namespace media |
| 100 } // namespace chromecast | 100 } // namespace chromecast |
| OLD | NEW |