Per Ã…hgren | 0cbb58e | 2019-10-29 22:59:44 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_ |
| 12 | #define MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_ |
| 13 | |
| 14 | #include <cstddef> |
| 15 | |
| 16 | namespace webrtc { |
| 17 | |
| 18 | constexpr size_t kFftSize = 256; |
| 19 | constexpr size_t kFftSizeBy2Plus1 = kFftSize / 2 + 1; |
| 20 | constexpr size_t kNsFrameSize = 160; |
| 21 | constexpr size_t kOverlapSize = kFftSize - kNsFrameSize; |
| 22 | |
| 23 | constexpr int kShortStartupPhaseBlocks = 50; |
| 24 | constexpr int kLongStartupPhaseBlocks = 200; |
| 25 | constexpr int kFeatureUpdateWindowSize = 500; |
| 26 | |
| 27 | constexpr float kLtrFeatureThr = 0.5f; |
| 28 | constexpr float kBinSizeLrt = 0.1f; |
| 29 | constexpr float kBinSizeSpecFlat = 0.05f; |
| 30 | constexpr float kBinSizeSpecDiff = 0.1f; |
| 31 | |
| 32 | } // namespace webrtc |
| 33 | |
| 34 | #endif // MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_ |