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

Side by Side Diff: media/cast/test/fake_media_source.h

Issue 941633004: Moved renderer implementation from media/filters/ to media/renderers/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 // A fake media source that generates video and audio frames to a cast 5 // A fake media source that generates video and audio frames to a cast
6 // sender. 6 // sender.
7 // This class can transcode a WebM file using FFmpeg. It can also 7 // This class can transcode a WebM file using FFmpeg. It can also
8 // generate an animation and audio of fixed frequency. 8 // generate an animation and audio of fixed frequency.
9 9
10 #ifndef MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_ 10 #ifndef MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_
11 #define MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_ 11 #define MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_
12 12
13 #include <queue> 13 #include <queue>
14 14
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/files/memory_mapped_file.h" 16 #include "base/files/memory_mapped_file.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/time/tick_clock.h" 20 #include "base/time/tick_clock.h"
21 #include "media/audio/audio_parameters.h" 21 #include "media/audio/audio_parameters.h"
22 #include "media/base/audio_converter.h" 22 #include "media/base/audio_converter.h"
23 #include "media/cast/cast_config.h" 23 #include "media/cast/cast_config.h"
24 #include "media/filters/audio_renderer_algorithm.h"
25 #include "media/filters/ffmpeg_demuxer.h" 24 #include "media/filters/ffmpeg_demuxer.h"
25 #include "media/renderers/audio_renderer_algorithm.h"
26 26
27 struct AVCodecContext; 27 struct AVCodecContext;
28 struct AVFormatContext; 28 struct AVFormatContext;
29 29
30 namespace media { 30 namespace media {
31 31
32 class AudioBus; 32 class AudioBus;
33 class AudioConverter; 33 class AudioConverter;
34 class AudioFifo; 34 class AudioFifo;
35 class AudioTimestampHelper; 35 class AudioTimestampHelper;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // NOTE: Weak pointers must be invalidated before all other member variables. 165 // NOTE: Weak pointers must be invalidated before all other member variables.
166 base::WeakPtrFactory<FakeMediaSource> weak_factory_; 166 base::WeakPtrFactory<FakeMediaSource> weak_factory_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(FakeMediaSource); 168 DISALLOW_COPY_AND_ASSIGN(FakeMediaSource);
169 }; 169 };
170 170
171 } // namespace cast 171 } // namespace cast
172 } // namespace media 172 } // namespace media
173 173
174 #endif // MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_ 174 #endif // MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698