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

Side by Side Diff: media/base/audio_converter.h

Issue 1535193003: Add missing macros includes in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « media/base/audio_bus.h ('k') | media/base/audio_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // AudioConverter is a complete mixing, resampling, buffering, and channel 5 // AudioConverter is a complete mixing, resampling, buffering, and channel
6 // mixing solution for converting data from one set of AudioParameters to 6 // mixing solution for converting data from one set of AudioParameters to
7 // another. 7 // another.
8 // 8 //
9 // For efficiency, pieces are only invoked when necessary; i.e., 9 // For efficiency, pieces are only invoked when necessary; i.e.,
10 // - The resampler is only used if sample rates differ. 10 // - The resampler is only used if sample rates differ.
11 // - The FIFO is only used if buffer sizes differ. 11 // - The FIFO is only used if buffer sizes differ.
12 // - The channel mixer is only used if channel layouts differ. 12 // - The channel mixer is only used if channel layouts differ.
13 // 13 //
14 // Additionally, since resampling is the most expensive operation, input mixing 14 // Additionally, since resampling is the most expensive operation, input mixing
15 // and channel down mixing are done prior to resampling. Likewise, channel up 15 // and channel down mixing are done prior to resampling. Likewise, channel up
16 // mixing is performed after resampling. 16 // mixing is performed after resampling.
17 17
18 #ifndef MEDIA_BASE_AUDIO_CONVERTER_H_ 18 #ifndef MEDIA_BASE_AUDIO_CONVERTER_H_
19 #define MEDIA_BASE_AUDIO_CONVERTER_H_ 19 #define MEDIA_BASE_AUDIO_CONVERTER_H_
20 20
21 #include <list> 21 #include <list>
22 22
23 #include "base/callback.h" 23 #include "base/callback.h"
24 #include "base/macros.h"
24 #include "base/memory/scoped_ptr.h" 25 #include "base/memory/scoped_ptr.h"
25 #include "base/time/time.h" 26 #include "base/time/time.h"
26 #include "media/audio/audio_parameters.h" 27 #include "media/audio/audio_parameters.h"
27 #include "media/base/media_export.h" 28 #include "media/base/media_export.h"
28 29
29 namespace media { 30 namespace media {
30 31
31 class AudioBus; 32 class AudioBus;
32 class AudioPullFifo; 33 class AudioPullFifo;
33 class ChannelMixer; 34 class ChannelMixer;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // value from the input AudioParameters class. Preserved to recreate internal 142 // value from the input AudioParameters class. Preserved to recreate internal
142 // AudioBus structures on demand in response to varying frame size requests. 143 // AudioBus structures on demand in response to varying frame size requests.
143 const int input_channel_count_; 144 const int input_channel_count_;
144 145
145 DISALLOW_COPY_AND_ASSIGN(AudioConverter); 146 DISALLOW_COPY_AND_ASSIGN(AudioConverter);
146 }; 147 };
147 148
148 } // namespace media 149 } // namespace media
149 150
150 #endif // MEDIA_BASE_AUDIO_CONVERTER_H_ 151 #endif // MEDIA_BASE_AUDIO_CONVERTER_H_
OLDNEW
« no previous file with comments | « media/base/audio_bus.h ('k') | media/base/audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698