2014-08-04 14:41:57 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
|
|
|
|
|
#define MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
|
2014-08-04 14:41:57 +00:00
|
|
|
|
2015-11-16 08:07:01 -08:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "rtc_base/ignore_wundef.h"
|
2016-09-28 17:42:01 -07:00
|
|
|
|
|
|
|
|
RTC_PUSH_IGNORING_WUNDEF()
|
2014-08-04 14:41:57 +00:00
|
|
|
#include "opus.h"
|
2019-01-29 12:27:08 +01:00
|
|
|
#include "opus_multistream.h"
|
2016-09-28 17:42:01 -07:00
|
|
|
RTC_POP_IGNORING_WUNDEF()
|
2014-08-04 14:41:57 +00:00
|
|
|
|
|
|
|
|
struct WebRtcOpusEncInst {
|
2019-04-03 15:12:01 +02:00
|
|
|
OpusEncoder* encoder;
|
|
|
|
|
OpusMSEncoder* multistream_encoder;
|
Convert channel counts to size_t.
IIRC, this was originally requested by ajm during review of the other size_t conversions I did over the past year, and I agreed it made sense, but wanted to do it separately since those changes were already gargantuan.
BUG=chromium:81439
TEST=none
R=henrik.lundin@webrtc.org, henrika@webrtc.org, kjellander@webrtc.org, minyue@webrtc.org, perkj@webrtc.org, solenberg@webrtc.org, stefan@webrtc.org, tina.legrand@webrtc.org
Review URL: https://codereview.webrtc.org/1316523002 .
Cr-Commit-Position: refs/heads/master@{#11229}
2016-01-12 16:26:35 -08:00
|
|
|
size_t channels;
|
2014-12-11 16:09:35 +00:00
|
|
|
int in_dtx_mode;
|
2014-08-04 14:41:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct WebRtcOpusDecInst {
|
2019-04-03 15:12:01 +02:00
|
|
|
OpusDecoder* decoder;
|
|
|
|
|
OpusMSDecoder* multistream_decoder;
|
2014-08-04 14:41:57 +00:00
|
|
|
int prev_decoded_samples;
|
Convert channel counts to size_t.
IIRC, this was originally requested by ajm during review of the other size_t conversions I did over the past year, and I agreed it made sense, but wanted to do it separately since those changes were already gargantuan.
BUG=chromium:81439
TEST=none
R=henrik.lundin@webrtc.org, henrika@webrtc.org, kjellander@webrtc.org, minyue@webrtc.org, perkj@webrtc.org, solenberg@webrtc.org, stefan@webrtc.org, tina.legrand@webrtc.org
Review URL: https://codereview.webrtc.org/1316523002 .
Cr-Commit-Position: refs/heads/master@{#11229}
2016-01-12 16:26:35 -08:00
|
|
|
size_t channels;
|
2014-12-11 16:09:35 +00:00
|
|
|
int in_dtx_mode;
|
2014-08-04 14:41:57 +00:00
|
|
|
};
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
|