#include "avcodec.h"
#include "g722.h"
Go to the source code of this file.
Defines | |
#define | FREEZE_INTERVAL 128 |
#define | STORE_NODE(index, UPDATE, VALUE) |
Functions | |
static av_cold int | g722_encode_init (AVCodecContext *avctx) |
static av_cold int | g722_encode_close (AVCodecContext *avctx) |
static void | filter_samples (G722Context *c, const int16_t *samples, int *xlow, int *xhigh) |
static int | encode_high (const struct G722Band *state, int xhigh) |
static int | encode_low (const struct G722Band *state, int xlow) |
static int | g722_encode_trellis (AVCodecContext *avctx, uint8_t *dst, int buf_size, void *data) |
static int | g722_encode_frame (AVCodecContext *avctx, uint8_t *dst, int buf_size, void *data) |
Variables | |
static const int16_t | low_quant [33] |
AVCodec | ff_adpcm_g722_encoder |
Definition in file g722enc.c.
#define STORE_NODE | ( | index, | |||
UPDATE, | |||||
VALUE | ) |
static int encode_high | ( | const struct G722Band * | state, | |
int | xhigh | |||
) | [inline, static] |
static int encode_low | ( | const struct G722Band * | state, | |
int | xlow | |||
) | [inline, static] |
static void filter_samples | ( | G722Context * | c, | |
const int16_t * | samples, | |||
int * | xlow, | |||
int * | xhigh | |||
) | [inline, static] |
Definition at line 81 of file g722enc.c.
Referenced by avfilter_filter_samples(), and g722_encode_trellis().
static av_cold int g722_encode_close | ( | AVCodecContext * | avctx | ) | [static] |
static int g722_encode_frame | ( | AVCodecContext * | avctx, | |
uint8_t * | dst, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
static av_cold int g722_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
static int g722_encode_trellis | ( | AVCodecContext * | avctx, | |
uint8_t * | dst, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
Initial value:
{ .name = "g722", .type = AVMEDIA_TYPE_AUDIO, .id = CODEC_ID_ADPCM_G722, .priv_data_size = sizeof(G722Context), .init = g722_encode_init, .close = g722_encode_close, .encode = g722_encode_frame, .long_name = NULL_IF_CONFIG_SMALL("G.722 ADPCM"), .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, }
Initial value:
{ 35, 72, 110, 150, 190, 233, 276, 323, 370, 422, 473, 530, 587, 650, 714, 786, 858, 940, 1023, 1121, 1219, 1339, 1458, 1612, 1765, 1980, 2195, 2557, 2919 }
Definition at line 74 of file g722enc.c.
Referenced by encode_low().