| OLD | NEW |
| 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 #ifndef MEDIA_BASE_CHANNEL_MIXER_H_ | 5 #ifndef MEDIA_BASE_CHANNEL_MIXER_H_ |
| 6 #define MEDIA_BASE_CHANNEL_MIXER_H_ | 6 #define MEDIA_BASE_CHANNEL_MIXER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
| 11 #include "media/base/channel_layout.h" | 11 #include "media/base/channel_layout.h" |
| 12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 class AudioBus; | 16 class AudioBus; |
| 17 class AudioParameters; | 17 class AudioParameters; |
| 18 | 18 |
| 19 // ChannelMixer is for converting audio between channel layouts. The conversion | 19 // ChannelMixer is for converting audio between channel layouts. The conversion |
| 20 // matrix is built upon construction and used during each Transform() call. The | 20 // matrix is built upon construction and used during each Transform() call. The |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 // Optimization case for when we can simply remap the input channels to output | 41 // Optimization case for when we can simply remap the input channels to output |
| 42 // channels and don't need to do a multiply-accumulate loop over |matrix_|. | 42 // channels and don't need to do a multiply-accumulate loop over |matrix_|. |
| 43 bool remapping_; | 43 bool remapping_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(ChannelMixer); | 45 DISALLOW_COPY_AND_ASSIGN(ChannelMixer); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace media | 48 } // namespace media |
| 49 | 49 |
| 50 #endif // MEDIA_BASE_CHANNEL_MIXER_H_ | 50 #endif // MEDIA_BASE_CHANNEL_MIXER_H_ |
| OLD | NEW |