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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 public: | 65 public: |
66 Blocker(int chunk_size, | 66 Blocker(int chunk_size, |
67 int block_size, | 67 int block_size, |
68 int num_input_channels, | 68 int num_input_channels, |
69 int num_output_channels, | 69 int num_output_channels, |
70 const float* window, | 70 const float* window, |
71 int shift_amount, | 71 int shift_amount, |
72 BlockerCallback* callback); | 72 BlockerCallback* callback); |
73 | 73 |
74 void ProcessChunk(const float* const* input, | 74 void ProcessChunk(const float* const* input, |
75 int num_frames, | 75 int chunk_size, |
76 int num_input_channels, | 76 int num_input_channels, |
77 int num_output_channels, | 77 int num_output_channels, |
78 float* const* output); | 78 float* const* output); |
79 | 79 |
80 private: | 80 private: |
81 const int chunk_size_; | 81 const int chunk_size_; |
82 const int block_size_; | 82 const int block_size_; |
83 const int num_input_channels_; | 83 const int num_input_channels_; |
84 const int num_output_channels_; | 84 const int num_output_channels_; |
85 | 85 |
(...skipping 28 matching lines...) Expand all Loading... |
114 // The amount of frames between the start of contiguous blocks. For example, | 114 // The amount of frames between the start of contiguous blocks. For example, |
115 // |shift_amount_| = |block_size_| / 2 for a Hann window. | 115 // |shift_amount_| = |block_size_| / 2 for a Hann window. |
116 int shift_amount_; | 116 int shift_amount_; |
117 | 117 |
118 BlockerCallback* callback_; | 118 BlockerCallback* callback_; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace webrtc | 121 } // namespace webrtc |
122 | 122 |
123 #endif // WEBRTC_INTERNAL_BEAMFORMER_BLOCKER_H_ | 123 #endif // WEBRTC_INTERNAL_BEAMFORMER_BLOCKER_H_ |
OLD | NEW |