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_COMMON_AUDIO_CHANNEL_BUFFER_H_ | 11 #ifndef WEBRTC_COMMON_AUDIO_CHANNEL_BUFFER_H_ |
12 #define WEBRTC_COMMON_AUDIO_CHANNEL_BUFFER_H_ | 12 #define WEBRTC_COMMON_AUDIO_CHANNEL_BUFFER_H_ |
13 | 13 |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 | 17 |
| 18 #include "webrtc/base/checks.h" |
| 19 #include "webrtc/base/gtest_prod_util.h" |
18 #include "webrtc/common_audio/include/audio_util.h" | 20 #include "webrtc/common_audio/include/audio_util.h" |
19 #include "webrtc/rtc_base/checks.h" | |
20 #include "webrtc/rtc_base/gtest_prod_util.h" | |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 // Helper to encapsulate a contiguous data buffer, full or split into frequency | 24 // Helper to encapsulate a contiguous data buffer, full or split into frequency |
25 // bands, with access to a pointer arrays of the deinterleaved channels and | 25 // bands, with access to a pointer arrays of the deinterleaved channels and |
26 // bands. The buffer is zero initialized at creation. | 26 // bands. The buffer is zero initialized at creation. |
27 // | 27 // |
28 // The buffer structure is showed below for a 2 channel and 2 bands case: | 28 // The buffer structure is showed below for a 2 channel and 2 bands case: |
29 // | 29 // |
30 // |data_|: | 30 // |data_|: |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 mutable bool ivalid_; | 178 mutable bool ivalid_; |
179 mutable ChannelBuffer<int16_t> ibuf_; | 179 mutable ChannelBuffer<int16_t> ibuf_; |
180 mutable bool fvalid_; | 180 mutable bool fvalid_; |
181 mutable ChannelBuffer<float> fbuf_; | 181 mutable ChannelBuffer<float> fbuf_; |
182 }; | 182 }; |
183 | 183 |
184 } // namespace webrtc | 184 } // namespace webrtc |
185 | 185 |
186 #endif // WEBRTC_COMMON_AUDIO_CHANNEL_BUFFER_H_ | 186 #endif // WEBRTC_COMMON_AUDIO_CHANNEL_BUFFER_H_ |
OLD | NEW |