OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_SPLITTING_FILTER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_SPLITTING_FILTER_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_SPLITTING_FILTER_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_SPLITTING_FILTER_H_ |
13 | 13 |
14 #include <cstring> | 14 #include <cstring> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/modules/audio_processing/three_band_filter_bank.h" | 17 #include "webrtc/modules/audio_processing/three_band_filter_bank.h" |
18 #include "webrtc/system_wrappers/interface/scoped_vector.h" | 18 #include "webrtc/system_wrappers/include/scoped_vector.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 class IFChannelBuffer; | 22 class IFChannelBuffer; |
23 | 23 |
24 struct TwoBandsStates { | 24 struct TwoBandsStates { |
25 TwoBandsStates() { | 25 TwoBandsStates() { |
26 memset(analysis_state1, 0, sizeof(analysis_state1)); | 26 memset(analysis_state1, 0, sizeof(analysis_state1)); |
27 memset(analysis_state2, 0, sizeof(analysis_state2)); | 27 memset(analysis_state2, 0, sizeof(analysis_state2)); |
28 memset(synthesis_state1, 0, sizeof(synthesis_state1)); | 28 memset(synthesis_state1, 0, sizeof(synthesis_state1)); |
(...skipping 30 matching lines...) Expand all Loading... |
59 void InitBuffers(); | 59 void InitBuffers(); |
60 | 60 |
61 const size_t num_bands_; | 61 const size_t num_bands_; |
62 std::vector<TwoBandsStates> two_bands_states_; | 62 std::vector<TwoBandsStates> two_bands_states_; |
63 ScopedVector<ThreeBandFilterBank> three_band_filter_banks_; | 63 ScopedVector<ThreeBandFilterBank> three_band_filter_banks_; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace webrtc | 66 } // namespace webrtc |
67 | 67 |
68 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_SPLITTING_FILTER_H_ | 68 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_SPLITTING_FILTER_H_ |
OLD | NEW |