| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // copy of window and does not attempt to delete it. | 64 // copy of window and does not attempt to delete it. |
| 65 class Blocker { | 65 class Blocker { |
| 66 public: | 66 public: |
| 67 Blocker(size_t chunk_size, | 67 Blocker(size_t chunk_size, |
| 68 size_t block_size, | 68 size_t block_size, |
| 69 size_t num_input_channels, | 69 size_t num_input_channels, |
| 70 size_t num_output_channels, | 70 size_t num_output_channels, |
| 71 const float* window, | 71 const float* window, |
| 72 size_t shift_amount, | 72 size_t shift_amount, |
| 73 BlockerCallback* callback); | 73 BlockerCallback* callback); |
| 74 ~Blocker(); |
| 74 | 75 |
| 75 void ProcessChunk(const float* const* input, | 76 void ProcessChunk(const float* const* input, |
| 76 size_t chunk_size, | 77 size_t chunk_size, |
| 77 size_t num_input_channels, | 78 size_t num_input_channels, |
| 78 size_t num_output_channels, | 79 size_t num_output_channels, |
| 79 float* const* output); | 80 float* const* output); |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 const size_t chunk_size_; | 83 const size_t chunk_size_; |
| 83 const size_t block_size_; | 84 const size_t block_size_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // The amount of frames between the start of contiguous blocks. For example, | 116 // The amount of frames between the start of contiguous blocks. For example, |
| 116 // |shift_amount_| = |block_size_| / 2 for a Hann window. | 117 // |shift_amount_| = |block_size_| / 2 for a Hann window. |
| 117 size_t shift_amount_; | 118 size_t shift_amount_; |
| 118 | 119 |
| 119 BlockerCallback* callback_; | 120 BlockerCallback* callback_; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace webrtc | 123 } // namespace webrtc |
| 123 | 124 |
| 124 #endif // WEBRTC_INTERNAL_BEAMFORMER_BLOCKER_H_ | 125 #endif // WEBRTC_INTERNAL_BEAMFORMER_BLOCKER_H_ |
| OLD | NEW |