ADPCM encoders First version by Francois Revol (revol) Fringe ADPCM codecs (e.g., DK3, DK4, Westwood) by Mike Melanson ( @fre e.frmelan) son@ pcisy s.ne tMore...
#include "avcodec.h"
#include "get_bits.h"
#include "put_bits.h"
#include "bytestream.h"
#include "adpcm.h"
#include "adpcm_data.h"
Go to the source code of this file.
Data Structures | |
struct | TrellisPath |
struct | TrellisNode |
struct | ADPCMEncodeContext |
Macros | |
#define | FREEZE_INTERVAL 128 |
#define | STORE_NODE(NAME, STEP_INDEX) |
#define | LOOP_NODES(NAME, STEP_TABLE, STEP_INDEX) |
#define | ADPCM_ENCODER(id_, name_, long_name_) |
Typedefs | |
typedef struct TrellisPath | TrellisPath |
typedef struct TrellisNode | TrellisNode |
typedef struct ADPCMEncodeContext | ADPCMEncodeContext |
Functions | |
static av_cold int | adpcm_encode_init (AVCodecContext *avctx) |
static av_cold int | adpcm_encode_close (AVCodecContext *avctx) |
static unsigned char | adpcm_ima_compress_sample (ADPCMChannelStatus *c, short sample) |
static unsigned char | adpcm_ima_qt_compress_sample (ADPCMChannelStatus *c, short sample) |
static unsigned char | adpcm_ms_compress_sample (ADPCMChannelStatus *c, short sample) |
static unsigned char | adpcm_yamaha_compress_sample (ADPCMChannelStatus *c, short sample) |
static void | adpcm_compress_trellis (AVCodecContext *avctx, const short *samples, uint8_t *dst, ADPCMChannelStatus *c, int n) |
static int | adpcm_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) |
ADPCM_ENCODER (CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt,"ADPCM IMA QuickTime") | |
ADPCM_ENCODER (CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav,"ADPCM IMA WAV") | |
ADPCM_ENCODER (CODEC_ID_ADPCM_MS, adpcm_ms,"ADPCM Microsoft") | |
ADPCM_ENCODER (CODEC_ID_ADPCM_SWF, adpcm_swf,"ADPCM Shockwave Flash") | |
ADPCM_ENCODER (CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha,"ADPCM Yamaha") |
ADPCM encoders First version by Francois Revol (revol) Fringe ADPCM codecs (e.g., DK3, DK4, Westwood) by Mike Melanson ( @fre e.frmelan) son@ pcisy s.ne t
See ADPCM decoder reference documents for codec information.
Definition in file adpcmenc.c.
#define ADPCM_ENCODER | ( | id_, | |
name_, | |||
long_name_ | |||
) |
Definition at line 683 of file adpcmenc.c.
#define FREEZE_INTERVAL 128 |
Definition at line 59 of file adpcmenc.c.
Referenced by adpcm_compress_trellis(), and adpcm_encode_init().
#define LOOP_NODES | ( | NAME, | |
STEP_TABLE, | |||
STEP_INDEX | |||
) |
Referenced by adpcm_compress_trellis().
#define STORE_NODE | ( | NAME, | |
STEP_INDEX | |||
) |
Referenced by adpcm_compress_trellis(), and g722_encode_trellis().
typedef struct ADPCMEncodeContext ADPCMEncodeContext |
typedef struct TrellisNode TrellisNode |
typedef struct TrellisPath TrellisPath |
|
static |
Definition at line 261 of file adpcmenc.c.
|
static |
Definition at line 150 of file adpcmenc.c.
|
static |
Definition at line 451 of file adpcmenc.c.
|
static |
Definition at line 61 of file adpcmenc.c.
ADPCM_ENCODER | ( | CODEC_ID_ADPCM_IMA_QT | , |
adpcm_ima_qt | , | ||
"ADPCM IMA QuickTime" | |||
) |
ADPCM_ENCODER | ( | CODEC_ID_ADPCM_IMA_WAV | , |
adpcm_ima_wav | , | ||
"ADPCM IMA WAV" | |||
) |
ADPCM_ENCODER | ( | CODEC_ID_ADPCM_MS | , |
adpcm_ms | , | ||
"ADPCM Microsoft" | |||
) |
ADPCM_ENCODER | ( | CODEC_ID_ADPCM_SWF | , |
adpcm_swf | , | ||
"ADPCM Shockwave Flash" | |||
) |
ADPCM_ENCODER | ( | CODEC_ID_ADPCM_YAMAHA | , |
adpcm_yamaha | , | ||
"ADPCM Yamaha" | |||
) |
|
inlinestatic |
Definition at line 163 of file adpcmenc.c.
|
inlinestatic |
Definition at line 176 of file adpcmenc.c.
|
inlinestatic |
Definition at line 210 of file adpcmenc.c.
|
inlinestatic |
Definition at line 239 of file adpcmenc.c.