FFmpeg
|
#include "libavutil/opt.h"
#include "avcodec.h"
#include "put_bits.h"
#include "bytestream.h"
#include "adpcm.h"
#include "adpcm_data.h"
#include "encode.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | TrellisPath |
struct | TrellisNode |
struct | ADPCMEncodeContext |
Macros | |
#define | CASE_0(codec_id, ...) |
#define | CASE_1(codec_id, ...) |
#define | CASE_2(enabled, codec_id, ...) CASE_ ## enabled(codec_id, __VA_ARGS__) |
#define | CASE_3(config, codec_id, ...) CASE_2(config, codec_id, __VA_ARGS__) |
#define | CASE(codec, ...) CASE_3(CONFIG_ ## codec ## _ENCODER, AV_CODEC_ID_ ## codec, __VA_ARGS__) |
#define | FREEZE_INTERVAL 128 |
#define | STORE_NODE(NAME, STEP_INDEX) |
#define | LOOP_NODES(NAME, STEP_TABLE, STEP_INDEX) |
#define | ADPCM_ENCODER_0(id_, name_, sample_fmts_, capabilities_, long_name_) |
#define | ADPCM_ENCODER_1(id_, name_, sample_fmts_, capabilities_, long_name_) |
#define | ADPCM_ENCODER_2(enabled, codec_id, name, sample_fmts, capabilities, long_name) ADPCM_ENCODER_ ## enabled(codec_id, name, sample_fmts, capabilities, long_name) |
#define | ADPCM_ENCODER_3(config, codec_id, name, sample_fmts, capabilities, long_name) ADPCM_ENCODER_2(config, codec_id, name, sample_fmts, capabilities, long_name) |
#define | ADPCM_ENCODER(codec, name, sample_fmts, capabilities, long_name) |
Functions | |
static av_cold int | adpcm_encode_init (AVCodecContext *avctx) |
static av_cold int | adpcm_encode_close (AVCodecContext *avctx) |
static uint8_t | adpcm_ima_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
static uint8_t | adpcm_ima_alp_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
static uint8_t | adpcm_ima_qt_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
static uint8_t | adpcm_ms_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
static uint8_t | adpcm_yamaha_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
static void | adpcm_compress_trellis (AVCodecContext *avctx, const int16_t *samples, uint8_t *dst, ADPCMChannelStatus *c, int n, int stride) |
static int | adpcm_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
static enum AVSampleFormat | sample_fmts [] |
static enum AVSampleFormat | sample_fmts_p [] |
static const AVOption | options [] |
static const AVClass | adpcm_encoder_class |
ADPCM encoders See ADPCM decoder reference documents for codec information.
Definition in file adpcmenc.c.
#define CASE_0 | ( | codec_id, | |
... | |||
) |
Definition at line 41 of file adpcmenc.c.
#define CASE_1 | ( | codec_id, | |
... | |||
) |
Definition at line 42 of file adpcmenc.c.
Definition at line 46 of file adpcmenc.c.
Definition at line 48 of file adpcmenc.c.
#define CASE | ( | codec, | |
... | |||
) | CASE_3(CONFIG_ ## codec ## _ENCODER, AV_CODEC_ID_ ## codec, __VA_ARGS__) |
Definition at line 50 of file adpcmenc.c.
#define FREEZE_INTERVAL 128 |
Definition at line 77 of file adpcmenc.c.
#define STORE_NODE | ( | NAME, | |
STEP_INDEX | |||
) |
#define LOOP_NODES | ( | NAME, | |
STEP_TABLE, | |||
STEP_INDEX | |||
) |
#define ADPCM_ENCODER_0 | ( | id_, | |
name_, | |||
sample_fmts_, | |||
capabilities_, | |||
long_name_ | |||
) |
Definition at line 977 of file adpcmenc.c.
#define ADPCM_ENCODER_1 | ( | id_, | |
name_, | |||
sample_fmts_, | |||
capabilities_, | |||
long_name_ | |||
) |
Definition at line 978 of file adpcmenc.c.
#define ADPCM_ENCODER_2 | ( | enabled, | |
codec_id, | |||
name, | |||
sample_fmts, | |||
capabilities, | |||
long_name | |||
) | ADPCM_ENCODER_ ## enabled(codec_id, name, sample_fmts, capabilities, long_name) |
Definition at line 993 of file adpcmenc.c.
#define ADPCM_ENCODER_3 | ( | config, | |
codec_id, | |||
name, | |||
sample_fmts, | |||
capabilities, | |||
long_name | |||
) | ADPCM_ENCODER_2(config, codec_id, name, sample_fmts, capabilities, long_name) |
Definition at line 995 of file adpcmenc.c.
#define ADPCM_ENCODER | ( | codec, | |
name, | |||
sample_fmts, | |||
capabilities, | |||
long_name | |||
) |
Definition at line 997 of file adpcmenc.c.
|
static |
Definition at line 79 of file adpcmenc.c.
|
static |
Definition at line 220 of file adpcmenc.c.
|
inlinestatic |
Definition at line 232 of file adpcmenc.c.
|
inlinestatic |
Definition at line 245 of file adpcmenc.c.
|
inlinestatic |
Definition at line 264 of file adpcmenc.c.
|
inlinestatic |
Definition at line 301 of file adpcmenc.c.
|
inlinestatic |
Definition at line 330 of file adpcmenc.c.
|
static |
Definition at line 352 of file adpcmenc.c.
|
static |
Definition at line 586 of file adpcmenc.c.
|
static |
Definition at line 948 of file adpcmenc.c.
Referenced by aeval_query_formats(), asink_query_formats(), lavfi_read_header(), new_audio_stream(), print_codec(), and query_formats().
|
static |
Definition at line 952 of file adpcmenc.c.
|
static |
Definition at line 956 of file adpcmenc.c.
|
static |
Definition at line 970 of file adpcmenc.c.