kwiberg | 65cb70d | 2017-03-03 14:16:28 | [diff] [blame] | 1 | /* |
| 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 Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 11 | #ifndef MODULES_AUDIO_CODING_NETEQ_NETEQ_DECODER_ENUM_H_ |
| 12 | #define MODULES_AUDIO_CODING_NETEQ_NETEQ_DECODER_ENUM_H_ |
kwiberg | 65cb70d | 2017-03-03 14:16:28 | [diff] [blame] | 13 | |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 14 | #include "api/audio_codecs/audio_format.h" |
| 15 | #include "api/optional.h" |
kwiberg | 65cb70d | 2017-03-03 14:16:28 | [diff] [blame] | 16 | |
| 17 | namespace webrtc { |
| 18 | |
| 19 | enum class NetEqDecoder { |
| 20 | kDecoderPCMu, |
| 21 | kDecoderPCMa, |
| 22 | kDecoderPCMu_2ch, |
| 23 | kDecoderPCMa_2ch, |
| 24 | kDecoderILBC, |
| 25 | kDecoderISAC, |
| 26 | kDecoderISACswb, |
| 27 | kDecoderPCM16B, |
| 28 | kDecoderPCM16Bwb, |
| 29 | kDecoderPCM16Bswb32kHz, |
| 30 | kDecoderPCM16Bswb48kHz, |
| 31 | kDecoderPCM16B_2ch, |
| 32 | kDecoderPCM16Bwb_2ch, |
| 33 | kDecoderPCM16Bswb32kHz_2ch, |
| 34 | kDecoderPCM16Bswb48kHz_2ch, |
| 35 | kDecoderPCM16B_5ch, |
| 36 | kDecoderG722, |
| 37 | kDecoderG722_2ch, |
| 38 | kDecoderRED, |
| 39 | kDecoderAVT, |
| 40 | kDecoderAVT16kHz, |
| 41 | kDecoderAVT32kHz, |
| 42 | kDecoderAVT48kHz, |
| 43 | kDecoderCNGnb, |
| 44 | kDecoderCNGwb, |
| 45 | kDecoderCNGswb32kHz, |
| 46 | kDecoderCNGswb48kHz, |
| 47 | kDecoderArbitrary, |
| 48 | kDecoderOpus, |
| 49 | kDecoderOpus_2ch, |
| 50 | }; |
| 51 | |
| 52 | rtc::Optional<SdpAudioFormat> NetEqDecoderToSdpAudioFormat(NetEqDecoder nd); |
| 53 | |
| 54 | } // namespace webrtc |
| 55 | |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 56 | #endif // MODULES_AUDIO_CODING_NETEQ_NETEQ_DECODER_ENUM_H_ |