| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void set_activity(AudioFrame::VADActivity activity); | 105 void set_activity(AudioFrame::VADActivity activity); |
| 106 AudioFrame::VADActivity activity() const; | 106 AudioFrame::VADActivity activity() const; |
| 107 | 107 |
| 108 // Use for int16 interleaved data. | 108 // Use for int16 interleaved data. |
| 109 void DeinterleaveFrom(AudioFrame* audioFrame); | 109 void DeinterleaveFrom(AudioFrame* audioFrame); |
| 110 // If |data_changed| is false, only the non-audio data members will be copied | 110 // If |data_changed| is false, only the non-audio data members will be copied |
| 111 // to |frame|. | 111 // to |frame|. |
| 112 void InterleaveTo(AudioFrame* frame, bool data_changed) const; | 112 void InterleaveTo(AudioFrame* frame, bool data_changed) const; |
| 113 | 113 |
| 114 // Use for float deinterleaved data. | 114 // Use for float deinterleaved data. |
| 115 void CopyFrom(const float* const* data, | 115 void CopyFrom(const float* const* data, const StreamConfig& stream_config); |
| 116 int num_frames, | 116 void CopyTo(const StreamConfig& stream_config, float* const* data); |
| 117 AudioProcessing::ChannelLayout layout); | |
| 118 void CopyTo(int num_frames, | |
| 119 AudioProcessing::ChannelLayout layout, | |
| 120 float* const* data); | |
| 121 void CopyLowPassToReference(); | 117 void CopyLowPassToReference(); |
| 122 | 118 |
| 123 // Splits the signal into different bands. | 119 // Splits the signal into different bands. |
| 124 void SplitIntoFrequencyBands(); | 120 void SplitIntoFrequencyBands(); |
| 125 // Recombine the different bands into one signal. | 121 // Recombine the different bands into one signal. |
| 126 void MergeFrequencyBands(); | 122 void MergeFrequencyBands(); |
| 127 | 123 |
| 128 private: | 124 private: |
| 129 // Called from DeinterleaveFrom() and CopyFrom(). | 125 // Called from DeinterleaveFrom() and CopyFrom(). |
| 130 void InitForNewData(); | 126 void InitForNewData(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 157 rtc::scoped_ptr<ChannelBuffer<int16_t> > low_pass_reference_channels_; | 153 rtc::scoped_ptr<ChannelBuffer<int16_t> > low_pass_reference_channels_; |
| 158 rtc::scoped_ptr<IFChannelBuffer> input_buffer_; | 154 rtc::scoped_ptr<IFChannelBuffer> input_buffer_; |
| 159 rtc::scoped_ptr<ChannelBuffer<float> > process_buffer_; | 155 rtc::scoped_ptr<ChannelBuffer<float> > process_buffer_; |
| 160 ScopedVector<PushSincResampler> input_resamplers_; | 156 ScopedVector<PushSincResampler> input_resamplers_; |
| 161 ScopedVector<PushSincResampler> output_resamplers_; | 157 ScopedVector<PushSincResampler> output_resamplers_; |
| 162 }; | 158 }; |
| 163 | 159 |
| 164 } // namespace webrtc | 160 } // namespace webrtc |
| 165 | 161 |
| 166 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_H_ | 162 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_H_ |
| OLD | NEW |