OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // if possible, performs the time-stretching. | 58 // if possible, performs the time-stretching. |
59 ReturnCodes CheckCriteriaAndStretch(const int16_t* input, | 59 ReturnCodes CheckCriteriaAndStretch(const int16_t* input, |
60 size_t input_length, | 60 size_t input_length, |
61 size_t peak_index, | 61 size_t peak_index, |
62 int16_t best_correlation, | 62 int16_t best_correlation, |
63 bool active_speech, | 63 bool active_speech, |
64 bool fast_mode, | 64 bool fast_mode, |
65 AudioMultiVector* output) const override; | 65 AudioMultiVector* output) const override; |
66 | 66 |
67 private: | 67 private: |
68 DISALLOW_COPY_AND_ASSIGN(Accelerate); | 68 RTC_DISALLOW_COPY_AND_ASSIGN(Accelerate); |
69 }; | 69 }; |
70 | 70 |
71 struct AccelerateFactory { | 71 struct AccelerateFactory { |
72 AccelerateFactory() {} | 72 AccelerateFactory() {} |
73 virtual ~AccelerateFactory() {} | 73 virtual ~AccelerateFactory() {} |
74 | 74 |
75 virtual Accelerate* Create(int sample_rate_hz, | 75 virtual Accelerate* Create(int sample_rate_hz, |
76 size_t num_channels, | 76 size_t num_channels, |
77 const BackgroundNoise& background_noise) const; | 77 const BackgroundNoise& background_noise) const; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace webrtc | 80 } // namespace webrtc |
81 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ | 81 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ |
OLD | NEW |