FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "encode.h"
#include "g722.h"
#include "libavutil/common.h"
Go to the source code of this file.
Macros | |
#define | FREEZE_INTERVAL 128 |
#define | MAX_FRAME_SIZE 32768 |
#define | MIN_TRELLIS 0 |
#define | MAX_TRELLIS 16 |
#define | STORE_NODE(index, UPDATE, VALUE) |
Functions | |
static av_cold int | g722_encode_close (AVCodecContext *avctx) |
static av_cold int | g722_encode_init (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 void | g722_encode_trellis (G722Context *c, int trellis, uint8_t *dst, int nb_samples, const int16_t *samples) |
static av_always_inline void | encode_byte (G722Context *c, uint8_t *dst, const int16_t *samples) |
static void | g722_encode_no_trellis (G722Context *c, uint8_t *dst, int nb_samples, const int16_t *samples) |
static int | g722_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
static const int16_t | low_quant [33] |
const FFCodec | ff_adpcm_g722_encoder |
G.722 ADPCM audio encoder
Definition in file g722enc.c.
#define STORE_NODE | ( | index, | |
UPDATE, | |||
VALUE | |||
) |
|
static |
|
static |
|
inlinestatic |
Definition at line 128 of file g722enc.c.
Referenced by g722_encode_trellis().
Definition at line 153 of file g722enc.c.
Referenced by g722_encode_trellis().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 121 of file g722enc.c.
Referenced by encode_low().
const FFCodec ff_adpcm_g722_encoder |