#include <limits.h>
#include "avcodec.h"
#include "bitstream.h"
Go to the source code of this file.
Data Structures | |
struct | Float11 |
G.726 11bit float. More... | |
struct | G726Tables |
struct | G726Context |
Functions | |
static Float11 * | i2f (int i, Float11 *f) |
static int16_t | mult (Float11 *f1, Float11 *f2) |
static int | sgn (int value) |
static uint8_t | quant (G726Context *c, int d) |
Para 4.2.2 page 18: Adaptive quantizer. | |
static int16_t | inverse_quant (G726Context *c, int i) |
Para 4.2.3 page 22: Inverse adaptive quantizer. | |
static int16_t | g726_decode (G726Context *c, int I) |
static av_cold int | g726_reset (G726Context *c, int index) |
static av_cold int | g726_init (AVCodecContext *avctx) |
static av_cold int | g726_close (AVCodecContext *avctx) |
static int | g726_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
Variables | |
static const int | quant_tbl16 [] |
16kbit/s 2bits per sample | |
static const int16_t | iquant_tbl16 [] |
static const int16_t | W_tbl16 [] |
static const uint8_t | F_tbl16 [] |
static const int | quant_tbl24 [] |
24kbit/s 3bits per sample | |
static const int16_t | iquant_tbl24 [] |
static const int16_t | W_tbl24 [] |
static const uint8_t | F_tbl24 [] |
static const int | quant_tbl32 [] |
32kbit/s 4bits per sample | |
static const int16_t | iquant_tbl32 [] |
static const int16_t | W_tbl32 [] |
static const uint8_t | F_tbl32 [] |
static const int | quant_tbl40 [] |
40kbit/s 5bits per sample | |
static const int16_t | iquant_tbl40 [] |
static const int16_t | W_tbl40 [] |
static const uint8_t | F_tbl40 [] |
static const G726Tables | G726Tables_pool [] |
AVCodec | adpcm_g726_decoder |
static av_cold int g726_close | ( | AVCodecContext * | avctx | ) | [static] |
static int16_t g726_decode | ( | G726Context * | c, | |
int | I | |||
) | [static] |
static int g726_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static av_cold int g726_init | ( | AVCodecContext * | avctx | ) | [static] |
static av_cold int g726_reset | ( | G726Context * | c, | |
int | index | |||
) | [static] |
static int16_t inverse_quant | ( | G726Context * | c, | |
int | i | |||
) | [inline, static] |
Para 4.2.3 page 22: Inverse adaptive quantizer.
Definition at line 176 of file g726.c.
Referenced by g726_decode().
Definition at line 50 of file g726.c.
Referenced by encode_block(), encode_frame(), g726_decode(), and wma_decode_block().
static uint8_t quant | ( | G726Context * | c, | |
int | d | |||
) | [inline, static] |
static int sgn | ( | int | value | ) | [inline, static] |
Initial value:
{ "g726", CODEC_TYPE_AUDIO, CODEC_ID_ADPCM_G726, sizeof(G726Context), g726_init, NULL, g726_close, g726_decode_frame, .long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"), }
const uint8_t F_tbl16[] [static] |
const uint8_t F_tbl24[] [static] |
const uint8_t F_tbl32[] [static] |
const uint8_t F_tbl40[] [static] |
const G726Tables G726Tables_pool[] [static] |
Initial value:
{{ quant_tbl16, iquant_tbl16, W_tbl16, F_tbl16 }, { quant_tbl24, iquant_tbl24, W_tbl24, F_tbl24 }, { quant_tbl32, iquant_tbl32, W_tbl32, F_tbl32 }, { quant_tbl40, iquant_tbl40, W_tbl40, F_tbl40 }}
const int16_t iquant_tbl16[] [static] |
const int16_t iquant_tbl24[] [static] |
const int16_t iquant_tbl32[] [static] |
const int16_t iquant_tbl40[] [static] |
const int quant_tbl16[] [static] |
const int quant_tbl24[] [static] |
const int quant_tbl32[] [static] |
const int quant_tbl40[] [static] |
const int16_t W_tbl16[] [static] |
const int16_t W_tbl24[] [static] |
const int16_t W_tbl32[] [static] |
const int16_t W_tbl40[] [static] |