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 "media/cast/test/fake_media_source.h" | 5 #include "media/cast/test/fake_media_source.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 | 70 |
71 } // namespace | 71 } // namespace |
72 | 72 |
73 namespace media { | 73 namespace media { |
74 namespace cast { | 74 namespace cast { |
75 | 75 |
76 FakeMediaSource::FakeMediaSource( | 76 FakeMediaSource::FakeMediaSource( |
77 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 77 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
78 base::TickClock* clock, | 78 base::TickClock* clock, |
79 const AudioSenderConfig& audio_config, | 79 const FrameSenderConfig& audio_config, |
80 const VideoSenderConfig& video_config, | 80 const FrameSenderConfig& video_config, |
81 bool keep_frames) | 81 bool keep_frames) |
82 : task_runner_(task_runner), | 82 : task_runner_(task_runner), |
83 output_audio_params_(AudioParameters::AUDIO_PCM_LINEAR, | 83 output_audio_params_(AudioParameters::AUDIO_PCM_LINEAR, |
84 media::GuessChannelLayout(audio_config.channels), | 84 media::GuessChannelLayout(audio_config.channels), |
85 audio_config.frequency, | 85 audio_config.frequency, |
86 32, | 86 32, |
87 audio_config.frequency / kAudioPacketsPerSecond), | 87 audio_config.frequency / kAudioPacketsPerSecond), |
88 video_config_(video_config), | 88 video_config_(video_config), |
89 keep_frames_(keep_frames), | 89 keep_frames_(keep_frames), |
90 variable_frame_size_mode_(false), | 90 variable_frame_size_mode_(false), |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 AVCodecContext* FakeMediaSource::av_audio_context() { | 623 AVCodecContext* FakeMediaSource::av_audio_context() { |
624 return av_audio_stream()->codec; | 624 return av_audio_stream()->codec; |
625 } | 625 } |
626 | 626 |
627 AVCodecContext* FakeMediaSource::av_video_context() { | 627 AVCodecContext* FakeMediaSource::av_video_context() { |
628 return av_video_stream()->codec; | 628 return av_video_stream()->codec; |
629 } | 629 } |
630 | 630 |
631 } // namespace cast | 631 } // namespace cast |
632 } // namespace media | 632 } // namespace media |
OLD | NEW |