blob: f40e247a55d9c9df4fc670087cce7484849f980d [file] [log] [blame]
kwiberg65cb70d2017-03-03 06:16:28 -08001/*
2 * Copyright (c) 2017 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_NETEQ_NETEQ_DECODER_ENUM_H_
12#define MODULES_AUDIO_CODING_NETEQ_NETEQ_DECODER_ENUM_H_
kwiberg65cb70d2017-03-03 06:16:28 -080013
Danil Chapovalovb6021232018-06-19 13:26:36 +020014#include "absl/types/optional.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020015#include "api/audio_codecs/audio_format.h"
kwiberg65cb70d2017-03-03 06:16:28 -080016
17namespace webrtc {
18
Niels Möllerd375f1c2018-12-20 15:51:43 +010019// TODO(bugs.webrtc.org/10080): Delete, together with RegisterExternalDecoder.
kwiberg65cb70d2017-03-03 06:16:28 -080020enum class NetEqDecoder {
21 kDecoderPCMu,
22 kDecoderPCMa,
23 kDecoderPCMu_2ch,
24 kDecoderPCMa_2ch,
25 kDecoderILBC,
26 kDecoderISAC,
27 kDecoderISACswb,
28 kDecoderPCM16B,
29 kDecoderPCM16Bwb,
30 kDecoderPCM16Bswb32kHz,
31 kDecoderPCM16Bswb48kHz,
32 kDecoderPCM16B_2ch,
33 kDecoderPCM16Bwb_2ch,
34 kDecoderPCM16Bswb32kHz_2ch,
35 kDecoderPCM16Bswb48kHz_2ch,
36 kDecoderPCM16B_5ch,
37 kDecoderG722,
38 kDecoderG722_2ch,
39 kDecoderRED,
40 kDecoderAVT,
41 kDecoderAVT16kHz,
42 kDecoderAVT32kHz,
43 kDecoderAVT48kHz,
44 kDecoderCNGnb,
45 kDecoderCNGwb,
46 kDecoderCNGswb32kHz,
47 kDecoderCNGswb48kHz,
48 kDecoderArbitrary,
49 kDecoderOpus,
50 kDecoderOpus_2ch,
51};
52
Danil Chapovalovb6021232018-06-19 13:26:36 +020053absl::optional<SdpAudioFormat> NetEqDecoderToSdpAudioFormat(NetEqDecoder nd);
kwiberg65cb70d2017-03-03 06:16:28 -080054
55} // namespace webrtc
56
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020057#endif // MODULES_AUDIO_CODING_NETEQ_NETEQ_DECODER_ENUM_H_