FFmpeg
|
#include "config_components.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "put_bits.h"
#include "bytestream.h"
#include "adpcm.h"
#include "adpcm_data.h"
#include "codec_internal.h"
#include "encode.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 AVChannelLayout | ch_layouts [] |
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 43 of file adpcmenc.c.
#define CASE_1 | ( | codec_id, | |
... | |||
) |
Definition at line 44 of file adpcmenc.c.
Definition at line 48 of file adpcmenc.c.
Definition at line 50 of file adpcmenc.c.
#define CASE | ( | codec, | |
... | |||
) | CASE_3(CONFIG_ ## codec ## _ENCODER, AV_CODEC_ID_ ## codec, __VA_ARGS__) |
Definition at line 52 of file adpcmenc.c.
#define FREEZE_INTERVAL 128 |
Definition at line 79 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 982 of file adpcmenc.c.
#define ADPCM_ENCODER_1 | ( | id_, | |
name_, | |||
sample_fmts_, | |||
capabilities_, | |||
long_name_ | |||
) |
Definition at line 983 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 999 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 1001 of file adpcmenc.c.
#define ADPCM_ENCODER | ( | codec, | |
name, | |||
sample_fmts, | |||
capabilities, | |||
long_name | |||
) |
Definition at line 1003 of file adpcmenc.c.
|
static |
Definition at line 81 of file adpcmenc.c.
|
static |
Definition at line 218 of file adpcmenc.c.
|
inlinestatic |
Definition at line 230 of file adpcmenc.c.
|
inlinestatic |
Definition at line 243 of file adpcmenc.c.
|
inlinestatic |
Definition at line 262 of file adpcmenc.c.
|
inlinestatic |
Definition at line 299 of file adpcmenc.c.
|
inlinestatic |
Definition at line 328 of file adpcmenc.c.
|
static |
Definition at line 350 of file adpcmenc.c.
|
static |
Definition at line 584 of file adpcmenc.c.
|
static |
Definition at line 947 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 951 of file adpcmenc.c.
|
static |
Definition at line 955 of file adpcmenc.c.
Referenced by ff_make_channel_layout_list().
|
static |
Definition at line 961 of file adpcmenc.c.
|
static |
Definition at line 975 of file adpcmenc.c.