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_CHANNEL_BUFFER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_CHANNEL_BUFFER_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_CHANNEL_BUFFER_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_CHANNEL_BUFFER_H_ |
13 | 13 |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/base/gtest_prod_util.h" |
17 #include "webrtc/base/scoped_ptr.h" | 18 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/common_audio/include/audio_util.h" | 19 #include "webrtc/common_audio/include/audio_util.h" |
19 #include "webrtc/test/testsupport/gtest_prod_util.h" | |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 // Helper to encapsulate a contiguous data buffer, full or split into frequency | 23 // Helper to encapsulate a contiguous data buffer, full or split into frequency |
24 // bands, with access to a pointer arrays of the deinterleaved channels and | 24 // bands, with access to a pointer arrays of the deinterleaved channels and |
25 // bands. The buffer is zero initialized at creation. | 25 // bands. The buffer is zero initialized at creation. |
26 // | 26 // |
27 // The buffer structure is showed below for a 2 channel and 2 bands case: | 27 // The buffer structure is showed below for a 2 channel and 2 bands case: |
28 // | 28 // |
29 // |data_|: | 29 // |data_|: |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 mutable bool ivalid_; | 161 mutable bool ivalid_; |
162 mutable ChannelBuffer<int16_t> ibuf_; | 162 mutable ChannelBuffer<int16_t> ibuf_; |
163 mutable bool fvalid_; | 163 mutable bool fvalid_; |
164 mutable ChannelBuffer<float> fbuf_; | 164 mutable ChannelBuffer<float> fbuf_; |
165 }; | 165 }; |
166 | 166 |
167 } // namespace webrtc | 167 } // namespace webrtc |
168 | 168 |
169 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_CHANNEL_BUFFER_H_ | 169 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_CHANNEL_BUFFER_H_ |
OLD | NEW |