FFmpeg
|
G.722 ADPCM audio decoder. More...
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "get_bits.h"
#include "g722.h"
#include "internal.h"
Include dependency graph for g722dec.c:
Go to the source code of this file.
Macros | |
#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 |
Detailed Description
G.722 ADPCM audio 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.
- Note
- For the 56000bps and 48000bps bitrates, the lowest 1 or 2 bits respectively of each byte are ignored.
Definition in file g722dec.c.
Macro Definition Documentation
#define AD AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
#define OFFSET | ( | x | ) | offsetof(G722Context, x) |
Function Documentation
|
static |
|
static |
Variable Documentation
AVCodec ff_adpcm_g722_decoder |
Initial value:
= {
.name = "g722",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_ADPCM_G722,
.priv_data_size = sizeof(G722Context),
.init = g722_decode_init,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("G.722 ADPCM"),
.priv_class = &g722_decoder_class,
}
Definition: libavcodec/avcodec.h:360
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: avutil.h:144
struct G722Context G722Context
static int g722_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: g722dec.c:84
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
|
static |
Initial value:
= {
.class_name = "g722 decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
|
static |
|
static |
Generated on Fri Dec 20 2024 06:56:12 for FFmpeg by 1.8.11