Expand description
The codec
module provides the traits and support structures necessary to implement audio codec
decoders.
Structs§
- Codec
Descriptor - A
CodecDescriptor
stores a description of a single logical codec. Common information such as theCodecType
, a short name, and a long name are provided. TheCodecDescriptor
also provides an instantiation function. When the instantiation function is called, aDecoder
for the codec is returned. - Codec
Parameters - Codec parameters stored in a container format’s headers and metadata may be passed to a codec
using the
CodecParameters
structure. - Codec
Registry - A
CodecRegistry
allows the registration of codecs, and provides a method to instantiate aDecoder
given aCodecParameters
object. - Codec
Type - A
CodecType
is a unique identifier used to identify a specific codec. - Decoder
Options DecoderOptions
is a common set of options that all decoders use.- Finalize
Result FinalizeResult
contains optional information that can only be found, calculated, or determined after decoding is complete.
Enums§
- Verification
Check - A method and expected value to perform verification on the decoded audio.
Constants§
- CODEC_
TYPE_ AAC - Advanced Audio Coding (AAC)
- CODEC_
TYPE_ AC4 - Dolby AC-4 (ETSI TS 103 190)
- CODEC_
TYPE_ ADPCM_ G722 - G.722 ADPCM
- CODEC_
TYPE_ ADPCM_ G726 - G.726 ADPCM
- CODEC_
TYPE_ ADPCM_ G726LE - G.726 ADPCM little-endian
- CODEC_
TYPE_ ADPCM_ IMA_ QT - ADPCM IMA QuickTime
- CODEC_
TYPE_ ADPCM_ IMA_ WAV - ADPCM IMA WAV
- CODEC_
TYPE_ ADPCM_ MS - Microsoft ADPCM
- CODEC_
TYPE_ ALAC - Apple Lossless Audio Codec (ALAC)
- CODEC_
TYPE_ ATRA C1 - Adaptive Transform Acoustic Coding (ATRAC1)
- CODEC_
TYPE_ ATRA C3 - Adaptive Transform Acoustic Coding 3 (ATRAC3)
- CODEC_
TYPE_ ATRA C9 - Adaptive Transform Acoustic Coding 9 (ATRAC9)
- CODEC_
TYPE_ ATRA C3PLUS - Adaptive Transform Acoustic Coding 3+ (ATRAC3+)
- CODEC_
TYPE_ DCA - DTS Coherent Acoustics (DCA/DTS)
- CODEC_
TYPE_ EAC3 - AC-3, E-AC-3, Dolby Digital (ATSC A/52)
- CODEC_
TYPE_ FLAC - Free Lossless Audio Codec (FLAC)
- CODEC_
TYPE_ MONKEYS_ AUDIO - Monkey’s Audio (APE)
- CODEC_
TYPE_ MP1 - MPEG Layer 1 (MP1)
- CODEC_
TYPE_ MP2 - MPEG Layer 2 (MP2)
- CODEC_
TYPE_ MP3 - MPEG Layer 3 (MP3)
- CODEC_
TYPE_ MUSEPACK - Musepack
- CODEC_
TYPE_ NULL - Null codec
- CODEC_
TYPE_ OPUS - Opus
- CODEC_
TYPE_ PCM_ ALAW - PCM A-law (G.711)
- CODEC_
TYPE_ PCM_ F32BE - PCM 32-bit big-endian floating point interleaved
- CODEC_
TYPE_ PCM_ F32BE_ PLANAR - PCM 32-bit big-endian floating point planar
- CODEC_
TYPE_ PCM_ F32LE - PCM 32-bit little-endian floating point interleaved
- CODEC_
TYPE_ PCM_ F32LE_ PLANAR - PCM 32-bit little-endian floating point planar
- CODEC_
TYPE_ PCM_ F64BE - PCM 64-bit big-endian floating point interleaved
- CODEC_
TYPE_ PCM_ F64BE_ PLANAR - PCM 64-bit big-endian floating point planar
- CODEC_
TYPE_ PCM_ F64LE - PCM 64-bit little-endian floating point interleaved
- CODEC_
TYPE_ PCM_ F64LE_ PLANAR - PCM 64-bit little-endian floating point planar
- CODEC_
TYPE_ PCM_ MULAW - PCM Mu-law (G.711)
- CODEC_
TYPE_ PCM_ S8 - PCM signed 8-bit interleaved
- CODEC_
TYPE_ PCM_ S8_ PLANAR - PCM signed 8-bit planar
- CODEC_
TYPE_ PCM_ S16BE - PCM signed 16-bit big-endian interleaved
- CODEC_
TYPE_ PCM_ S16BE_ PLANAR - PCM signed 16-bit big-endian planar
- CODEC_
TYPE_ PCM_ S16LE - PCM signed 16-bit little-endian interleaved
- CODEC_
TYPE_ PCM_ S16LE_ PLANAR - PCM signed 16-bit little-endian planar
- CODEC_
TYPE_ PCM_ S24BE - PCM signed 24-bit big-endian interleaved
- CODEC_
TYPE_ PCM_ S24BE_ PLANAR - PCM signed 24-bit big-endian planar
- CODEC_
TYPE_ PCM_ S24LE - PCM signed 24-bit little-endian interleaved
- CODEC_
TYPE_ PCM_ S24LE_ PLANAR - PCM signed 24-bit little-endian planar
- CODEC_
TYPE_ PCM_ S32BE - PCM signed 32-bit big-endian interleaved
- CODEC_
TYPE_ PCM_ S32BE_ PLANAR - PCM signed 32-bit big-endian planar
- CODEC_
TYPE_ PCM_ S32LE - PCM signed 32-bit little-endian interleaved
- CODEC_
TYPE_ PCM_ S32LE_ PLANAR - PCM signed 32-bit little-endian planar
- CODEC_
TYPE_ PCM_ U8 - PCM unsigned 8-bit interleaved
- CODEC_
TYPE_ PCM_ U8_ PLANAR - PCM unsigned 8-bit planar
- CODEC_
TYPE_ PCM_ U16BE - PCM unsigned 16-bit big-endian interleaved
- CODEC_
TYPE_ PCM_ U16BE_ PLANAR - PCM unsigned 16-bit big-endian planar
- CODEC_
TYPE_ PCM_ U16LE - PCM unsigned 16-bit little-endian interleaved
- CODEC_
TYPE_ PCM_ U16LE_ PLANAR - PCM unsigned 16-bit little-endian planar
- CODEC_
TYPE_ PCM_ U24BE - PCM unsigned 24-bit big-endian interleaved
- CODEC_
TYPE_ PCM_ U24BE_ PLANAR - PCM unsigned 24-bit big-endian planar
- CODEC_
TYPE_ PCM_ U24LE - PCM unsigned 24-bit little-endian interleaved
- CODEC_
TYPE_ PCM_ U24LE_ PLANAR - PCM unsigned 24-bit little-endian planar
- CODEC_
TYPE_ PCM_ U32BE - PCM unsigned 32-bit big-endian interleaved
- CODEC_
TYPE_ PCM_ U32BE_ PLANAR - PCM unsigned 32-bit big-endian planar
- CODEC_
TYPE_ PCM_ U32LE - PCM unsigned 32-bit little-endian interleaved
- CODEC_
TYPE_ PCM_ U32LE_ PLANAR - PCM unsigned 32-bit little-endian planar
- CODEC_
TYPE_ SPEEX - Speex
- CODEC_
TYPE_ TTA - True Audio (TTA)
- CODEC_
TYPE_ VORBIS - Vorbis
- CODEC_
TYPE_ WAVPACK - WavPack
- CODEC_
TYPE_ WMA - Windows Media Audio
Traits§
- Decoder
- A
Decoder
implements a codec’s decode algorithm. It consumesPacket
s and producesAudioBuffer
s.
Functions§
- decl_
codec_ type - Declares a new
CodecType
given a character code. A character code is an ASCII string containing a maximum of 5 alphanumeric characters.