#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 |
| struct | AVG726Context |
Functions | |
| static Float11 * | i2f (int16_t 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_iterate (G726Context *c, int16_t I) |
| static int | g726_reset (G726Context *c, int bit_rate) |
| static int16_t | g726_decode (G726Context *c, int16_t i) |
| static int | g726_init (AVCodecContext *avctx) |
| static 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 int | iquant_tbl16 [] |
| static const int | W_tbl16 [] |
| static const int | F_tbl16 [] |
| static const int | quant_tbl24 [] |
| 24kbit/s 3bits per sample | |
| static const int | iquant_tbl24 [] |
| static const int | W_tbl24 [] |
| static const int | F_tbl24 [] |
| static const int | quant_tbl32 [] |
| 32kbit/s 4bits per sample | |
| static const int | iquant_tbl32 [] |
| static const int | W_tbl32 [] |
| static const int | F_tbl32 [] |
| static const int | quant_tbl40 [] |
| 40kbit/s 5bits per sample | |
| static const int | iquant_tbl40 [] |
| static const int | W_tbl40 [] |
| static const int | F_tbl40 [] |
| static const G726Tables | G726Tables_pool [] |
| AVCodec | adpcm_g726_decoder |
| static int g726_close | ( | AVCodecContext * | avctx | ) | [static] |
| static int16_t g726_decode | ( | G726Context * | c, | |
| int16_t | i | |||
| ) | [static] |
| static int g726_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
| static int g726_init | ( | AVCodecContext * | avctx | ) | [static] |
| static int16_t g726_iterate | ( | G726Context * | c, | |
| int16_t | I | |||
| ) | [inline, static] |
| static int g726_reset | ( | G726Context * | c, | |
| int | bit_rate | |||
| ) | [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_iterate().
Definition at line 50 of file g726.c.
Referenced by encode_block(), encode_frame(), g726_iterate(), 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(AVG726Context),
g726_init,
NULL,
g726_close,
g726_decode_frame,
}
const int F_tbl24[] [static] |
const int F_tbl32[] [static] |
const int F_tbl40[] [static] |
const G726Tables G726Tables_pool[] [static] |
Initial value:
{{ 2, quant_tbl16, iquant_tbl16, W_tbl16, F_tbl16 },
{ 3, quant_tbl24, iquant_tbl24, W_tbl24, F_tbl24 },
{ 4, quant_tbl32, iquant_tbl32, W_tbl32, F_tbl32 },
{ 5, quant_tbl40, iquant_tbl40, W_tbl40, F_tbl40 }}
const int iquant_tbl16[] [static] |
const int iquant_tbl24[] [static] |
const int iquant_tbl32[] [static] |
const int iquant_tbl40[] [static] |
const int quant_tbl16[] [static] |
const int quant_tbl24[] [static] |
const int quant_tbl32[] [static] |
const int quant_tbl40[] [static] |
const int W_tbl16[] [static] |
const int W_tbl24[] [static] |
const int W_tbl32[] [static] |
const int W_tbl40[] [static] |
1.5.6