#include "avcodec.h"
#include "get_bits.h"
#include "g722.h"
#include "libavutil/opt.h"
Go to the source code of this file.
Defines | |
| #define | OFFSET(x) offsetof(G722Context, x) |
| #define | AD AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Functions | |
| static av_cold int | g722_decode_init (AVCodecContext *avctx) |
| static int | g722_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
Variables | |
| static const AVOption | options [] |
| static const AVClass | g722_decoder_class |
| static const int16_t | low_inv_quant5 [32] |
| static const int16_t * | low_inv_quants [3] |
| AVCodec | ff_adpcm_g722_decoder |
This G.722 decoder is a bit-exact implementation of the ITU G.722 specification for all three specified bitrates - 64000bps, 56000bps and 48000bps. It passes the ITU tests.
Definition in file g722dec.c.
| #define AD AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
| #define OFFSET | ( | x | ) | offsetof(G722Context, x) |
| static int g722_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | got_frame_ptr, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
| static av_cold int g722_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Initial value:
{
.name = "g722",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_ADPCM_G722,
.priv_data_size = sizeof(G722Context),
.init = g722_decode_init,
.decode = g722_decode_frame,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("G.722 ADPCM"),
.priv_class = &g722_decoder_class,
}
const AVClass g722_decoder_class [static] |
Initial value:
{
.class_name = "g722 decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
const int16_t low_inv_quant5[32] [static] |
const int16_t* low_inv_quants[3] [static] |
1.5.8