blob: 066fa2267f22f8c6d02966e52a56eaf46ddee136 [file] [log] [blame]
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +00001/*
2 * Copyright (c) 2014 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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
12#define MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000013
minyue9a7c8382015-11-16 08:07:01 -080014#include <stddef.h>
15
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020016#include "rtc_base/ignore_wundef.h"
kwiberg77eab702016-09-28 17:42:01 -070017
18RTC_PUSH_IGNORING_WUNDEF()
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000019#include "opus.h"
kwiberg77eab702016-09-28 17:42:01 -070020RTC_POP_IGNORING_WUNDEF()
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000021
22struct WebRtcOpusEncInst {
23 OpusEncoder* encoder;
Peter Kasting69558702016-01-12 16:26:35 -080024 size_t channels;
minyue@webrtc.org0ca768b2014-12-11 16:09:35 +000025 int in_dtx_mode;
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000026};
27
28struct WebRtcOpusDecInst {
minyue@webrtc.org33ccdfa2014-12-04 12:14:12 +000029 OpusDecoder* decoder;
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000030 int prev_decoded_samples;
Peter Kasting69558702016-01-12 16:26:35 -080031 size_t channels;
minyue@webrtc.org0ca768b2014-12-11 16:09:35 +000032 int in_dtx_mode;
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000033};
34
35
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020036#endif // MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_