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_CODECS_OPUS_OPUS_INST_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_ |
13 | 13 |
14 #include <stddef.h> | 14 #include <stddef.h> |
15 | 15 |
16 #include "webrtc/rtc_base/ignore_wundef.h" | 16 #include "webrtc/base/ignore_wundef.h" |
17 | 17 |
18 RTC_PUSH_IGNORING_WUNDEF() | 18 RTC_PUSH_IGNORING_WUNDEF() |
19 #include "opus.h" | 19 #include "opus.h" |
20 RTC_POP_IGNORING_WUNDEF() | 20 RTC_POP_IGNORING_WUNDEF() |
21 | 21 |
22 struct WebRtcOpusEncInst { | 22 struct WebRtcOpusEncInst { |
23 OpusEncoder* encoder; | 23 OpusEncoder* encoder; |
24 size_t channels; | 24 size_t channels; |
25 int in_dtx_mode; | 25 int in_dtx_mode; |
26 }; | 26 }; |
27 | 27 |
28 struct WebRtcOpusDecInst { | 28 struct WebRtcOpusDecInst { |
29 OpusDecoder* decoder; | 29 OpusDecoder* decoder; |
30 int prev_decoded_samples; | 30 int prev_decoded_samples; |
31 size_t channels; | 31 size_t channels; |
32 int in_dtx_mode; | 32 int in_dtx_mode; |
33 }; | 33 }; |
34 | 34 |
35 | 35 |
36 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_ | 36 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_ |
OLD | NEW |