FFmpeg
|
#include "config_components.h"
#include "libavutil/mem.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 44 of file adpcmenc.c.
#define CASE_1 | ( | codec_id, | |
... | |||
) |
Definition at line 45 of file adpcmenc.c.
Definition at line 49 of file adpcmenc.c.
Definition at line 51 of file adpcmenc.c.
#define CASE | ( | codec, | |
... | |||
) | CASE_3(CONFIG_ ## codec ## _ENCODER, AV_CODEC_ID_ ## codec, __VA_ARGS__) |
Definition at line 53 of file adpcmenc.c.
#define FREEZE_INTERVAL 128 |
Definition at line 80 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 983 of file adpcmenc.c.
#define ADPCM_ENCODER_1 | ( | id_, | |
name_, | |||
sample_fmts_, | |||
capabilities_, | |||
long_name_ | |||
) |
Definition at line 984 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 1001 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 1003 of file adpcmenc.c.
#define ADPCM_ENCODER | ( | codec, | |
name, | |||
sample_fmts, | |||
capabilities, | |||
long_name | |||
) |
Definition at line 1005 of file adpcmenc.c.
|
static |
Definition at line 82 of file adpcmenc.c.
|
static |
Definition at line 219 of file adpcmenc.c.
|
inlinestatic |
Definition at line 231 of file adpcmenc.c.
|
inlinestatic |
Definition at line 244 of file adpcmenc.c.
|
inlinestatic |
Definition at line 263 of file adpcmenc.c.
|
inlinestatic |
Definition at line 300 of file adpcmenc.c.
|
inlinestatic |
Definition at line 329 of file adpcmenc.c.
|
static |
Definition at line 351 of file adpcmenc.c.
|
static |
Definition at line 585 of file adpcmenc.c.
|
static |
Definition at line 948 of file adpcmenc.c.
Referenced by aeval_query_formats(), common_init(), encode_preinit_audio(), lavfi_read_header(), open_output_file(), and query_formats().
|
static |
Definition at line 952 of file adpcmenc.c.
|
static |
Definition at line 956 of file adpcmenc.c.
Referenced by encode_preinit_audio(), and ff_make_channel_layout_list().
|
static |
Definition at line 962 of file adpcmenc.c.
|
static |
Definition at line 976 of file adpcmenc.c.