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 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_ |
13 | 13 |
| 14 #include "webrtc/base/ignore_wundef.h" |
| 15 |
14 extern "C" { | 16 extern "C" { |
| 17 RTC_PUSH_IGNORING_WUNDEF() |
15 #include "celt.h" | 18 #include "celt.h" |
| 19 RTC_POP_IGNORING_WUNDEF() |
16 #include "analysis.h" | 20 #include "analysis.h" |
17 #include "opus_private.h" | 21 #include "opus_private.h" |
18 } | 22 } |
19 | 23 |
20 #include "webrtc/typedefs.h" | 24 #include "webrtc/typedefs.h" |
21 | 25 |
22 namespace webrtc { | 26 namespace webrtc { |
23 | 27 |
24 // This class provides a speech/music classification and is a wrapper over the | 28 // This class provides a speech/music classification and is a wrapper over the |
25 // Opus classifier. It currently only supports 48 kHz mono or stereo with a | 29 // Opus classifier. It currently only supports 48 kHz mono or stereo with a |
(...skipping 19 matching lines...) Expand all Loading... |
45 AnalysisInfo analysis_info_; | 49 AnalysisInfo analysis_info_; |
46 bool is_music_; | 50 bool is_music_; |
47 float music_probability_; | 51 float music_probability_; |
48 const CELTMode* celt_mode_; | 52 const CELTMode* celt_mode_; |
49 TonalityAnalysisState analysis_state_; | 53 TonalityAnalysisState analysis_state_; |
50 }; | 54 }; |
51 | 55 |
52 } // namespace webrtc | 56 } // namespace webrtc |
53 | 57 |
54 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_ | 58 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_ |
OLD | NEW |