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 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 size_t shift_amount, | 72 size_t shift_amount, |
73 BlockerCallback* callback); | 73 BlockerCallback* callback); |
74 ~Blocker(); | 74 ~Blocker(); |
75 | 75 |
76 void ProcessChunk(const float* const* input, | 76 void ProcessChunk(const float* const* input, |
77 size_t chunk_size, | 77 size_t chunk_size, |
78 size_t num_input_channels, | 78 size_t num_input_channels, |
79 size_t num_output_channels, | 79 size_t num_output_channels, |
80 float* const* output); | 80 float* const* output); |
81 | 81 |
| 82 size_t initial_delay() const { return initial_delay_; } |
| 83 |
82 private: | 84 private: |
83 const size_t chunk_size_; | 85 const size_t chunk_size_; |
84 const size_t block_size_; | 86 const size_t block_size_; |
85 const size_t num_input_channels_; | 87 const size_t num_input_channels_; |
86 const size_t num_output_channels_; | 88 const size_t num_output_channels_; |
87 | 89 |
88 // The number of frames of delay to add at the beginning of the first chunk. | 90 // The number of frames of delay to add at the beginning of the first chunk. |
89 const size_t initial_delay_; | 91 const size_t initial_delay_; |
90 | 92 |
91 // The frame index into the input buffer where the first block should be read | 93 // The frame index into the input buffer where the first block should be read |
(...skipping 24 matching lines...) Expand all Loading... |
116 // The amount of frames between the start of contiguous blocks. For example, | 118 // The amount of frames between the start of contiguous blocks. For example, |
117 // |shift_amount_| = |block_size_| / 2 for a Hann window. | 119 // |shift_amount_| = |block_size_| / 2 for a Hann window. |
118 size_t shift_amount_; | 120 size_t shift_amount_; |
119 | 121 |
120 BlockerCallback* callback_; | 122 BlockerCallback* callback_; |
121 }; | 123 }; |
122 | 124 |
123 } // namespace webrtc | 125 } // namespace webrtc |
124 | 126 |
125 #endif // WEBRTC_INTERNAL_BEAMFORMER_BLOCKER_H_ | 127 #endif // WEBRTC_INTERNAL_BEAMFORMER_BLOCKER_H_ |
OLD | NEW |