FFmpeg
|
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
#include "put_bits.h"
#include "bytestream.h"
#include "wavpackenc.h"
#include "wavpack.h"
Go to the source code of this file.
Data Structures | |
struct | WavPackExtraInfo |
struct | WavPackWords |
struct | WavPackEncodeContext |
Macros | |
#define | BITSTREAM_WRITER_LE |
#define | UPDATE_WEIGHT(weight, delta, source, result) |
#define | APPLY_WEIGHT_F(weight, sample) |
#define | APPLY_WEIGHT_I(weight, sample) (((weight) * (sample) + 512) >> 10) |
#define | APPLY_WEIGHT(weight, sample) |
#define | CLEAR(destin) memset(&destin, 0, sizeof(destin)); |
#define | SHIFT_LSB 13 |
#define | SHIFT_MASK (0x1FU << SHIFT_LSB) |
#define | MAG_LSB 18 |
#define | MAG_MASK (0x1FU << MAG_LSB) |
#define | SRATE_LSB 23 |
#define | SRATE_MASK (0xFU << SRATE_LSB) |
#define | EXTRA_TRY_DELTAS 1 |
#define | EXTRA_ADJUST_DELTAS 2 |
#define | EXTRA_SORT_FIRST 4 |
#define | EXTRA_BRANCHES 8 |
#define | EXTRA_SORT_LAST 16 |
#define | FLOAT_SHIFT_ONES 1 |
#define | FLOAT_SHIFT_SAME 2 |
#define | FLOAT_SHIFT_SENT 4 |
#define | FLOAT_ZEROS_SENT 8 |
#define | FLOAT_NEG_ZEROS 0x10 |
#define | FLOAT_EXCEPTIONS 0x20 |
#define | get_mantissa(f) ((f) & 0x7fffff) |
#define | get_exponent(f) (((f) >> 23) & 0xff) |
#define | get_sign(f) (((f) >> 31) & 0x1) |
#define | count_bits(av) |
#define | update_weight_d2(weight, delta, source, result) |
#define | update_weight_clip_d2(weight, delta, source, result) |
#define | WRITE_DECWEIGHT(type) |
#define | WRITE_DECSAMPLE(type) |
#define | WRITE_CHAN_ENTROPY(chan) |
#define | COPY_SAMPLES(type, offset, shift) |
#define | OFFSET(x) offsetof(WavPackEncodeContext, x) |
#define | FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
Variables | |
static const AVOption | options [] |
static const AVClass | wavpack_encoder_class |
AVCodec | ff_wavpack_encoder |
#define BITSTREAM_WRITER_LE |
Definition at line 21 of file wavpackenc.c.
Definition at line 32 of file wavpackenc.c.
Referenced by decorr_mono(), decorr_stereo(), decorr_stereo_pass2(), decorr_stereo_quick(), and wavpack_encode_block().
Definition at line 38 of file wavpackenc.c.
Definition at line 41 of file wavpackenc.c.
Referenced by decorr_stereo_pass_id2(), and decorr_stereo_quick().
Definition at line 43 of file wavpackenc.c.
Referenced by decorr_mono(), decorr_stereo(), decorr_stereo_pass2(), and wavpack_encode_block().
#define CLEAR | ( | destin | ) | memset(&destin, 0, sizeof(destin)); |
Definition at line 46 of file wavpackenc.c.
Referenced by decorr_mono_buffer(), decorr_stereo_buffer(), delta_mono(), delta_stereo(), recurse_mono(), recurse_stereo(), sort_mono(), sort_stereo(), wavpack_encode_block(), wavpack_encode_sample(), wv_mono(), and wv_stereo().
#define SHIFT_LSB 13 |
Definition at line 48 of file wavpackenc.c.
Referenced by wavpack_encode_block().
#define SHIFT_MASK (0x1FU << SHIFT_LSB) |
Definition at line 49 of file wavpackenc.c.
Referenced by wavpack_encode_block().
#define MAG_LSB 18 |
Definition at line 51 of file wavpackenc.c.
Referenced by analyze_mono(), analyze_stereo(), scan_float(), scan_int23(), scan_int32(), wavpack_encode_block(), wavpack_encode_frame(), wv_mono(), and wv_stereo().
#define MAG_MASK (0x1FU << MAG_LSB) |
Definition at line 52 of file wavpackenc.c.
Referenced by analyze_mono(), analyze_stereo(), scan_float(), scan_int23(), scan_int32(), wavpack_encode_block(), wv_mono(), and wv_stereo().
#define SRATE_LSB 23 |
Definition at line 54 of file wavpackenc.c.
Referenced by set_samplerate().
#define SRATE_MASK (0xFU << SRATE_LSB) |
Definition at line 55 of file wavpackenc.c.
Referenced by wavpack_encode_block().
#define EXTRA_TRY_DELTAS 1 |
Definition at line 57 of file wavpackenc.c.
Referenced by analyze_mono(), analyze_stereo(), and wavpack_encode_init().
#define EXTRA_ADJUST_DELTAS 2 |
Definition at line 58 of file wavpackenc.c.
Referenced by analyze_mono(), analyze_stereo(), and wavpack_encode_init().
#define EXTRA_SORT_FIRST 4 |
Definition at line 59 of file wavpackenc.c.
Referenced by analyze_mono(), analyze_stereo(), and wavpack_encode_init().
#define EXTRA_BRANCHES 8 |
Definition at line 60 of file wavpackenc.c.
Referenced by analyze_mono(), analyze_stereo(), and wavpack_encode_init().
#define EXTRA_SORT_LAST 16 |
Definition at line 61 of file wavpackenc.c.
Referenced by analyze_mono(), analyze_stereo(), and wavpack_encode_init().
#define FLOAT_SHIFT_ONES 1 |
Definition at line 212 of file wavpackenc.c.
Referenced by scan_float().
#define FLOAT_SHIFT_SAME 2 |
Definition at line 213 of file wavpackenc.c.
Referenced by pack_float_sample(), and scan_float().
#define FLOAT_SHIFT_SENT 4 |
Definition at line 214 of file wavpackenc.c.
Referenced by pack_float_sample(), and scan_float().
#define FLOAT_ZEROS_SENT 8 |
Definition at line 215 of file wavpackenc.c.
Referenced by pack_float_sample(), and scan_float().
#define FLOAT_NEG_ZEROS 0x10 |
Definition at line 216 of file wavpackenc.c.
Referenced by pack_float_sample(), and scan_float().
#define FLOAT_EXCEPTIONS 0x20 |
Definition at line 217 of file wavpackenc.c.
Referenced by process_float(), and scan_float().
Definition at line 219 of file wavpackenc.c.
Referenced by pack_float_sample(), process_float(), and scan_float().
Definition at line 220 of file wavpackenc.c.
Referenced by pack_float_sample(), process_float(), and scan_float().
Definition at line 221 of file wavpackenc.c.
Referenced by pack_float_sample(), process_float(), and scan_float().
#define count_bits | ( | av | ) |
Definition at line 1972 of file wavpackenc.c.
Referenced by encode_flush(), and wavpack_encode_sample().
Definition at line 2351 of file wavpackenc.c.
Referenced by decorr_stereo_pass_id2().
Definition at line 2355 of file wavpackenc.c.
Referenced by decorr_stereo_pass_id2().
#define WRITE_DECWEIGHT | ( | type | ) |
Referenced by wavpack_encode_block().
#define WRITE_DECSAMPLE | ( | type | ) |
Referenced by wavpack_encode_block().
#define WRITE_CHAN_ENTROPY | ( | chan | ) |
Referenced by wavpack_encode_block().
Referenced by fill_buffer().
#define OFFSET | ( | x | ) | offsetof(WavPackEncodeContext, x) |
Definition at line 2959 of file wavpackenc.c.
#define FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
Definition at line 2960 of file wavpackenc.c.
|
static |
Definition at line 125 of file wavpackenc.c.
Definition at line 195 of file wavpackenc.c.
Referenced by scan_float(), scan_int23(), scan_int32(), and wavpack_encode_block().
Definition at line 202 of file wavpackenc.c.
Referenced by scan_float(), scan_int23(), scan_int32(), and wavpack_encode_block().
|
static |
Definition at line 223 of file wavpackenc.c.
Referenced by scan_float().
|
static |
Definition at line 264 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 350 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 431 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 521 of file wavpackenc.c.
Referenced by decorr_mono(), decorr_stereo(), decorr_stereo_quick(), and wavpack_encode_block().
|
static |
Definition at line 530 of file wavpackenc.c.
Referenced by decorr_mono(), decorr_stereo(), and decorr_stereo_quick().
Definition at line 540 of file wavpackenc.c.
Referenced by decorr_mono(), decorr_stereo(), and decorr_stereo_quick().
|
static |
Definition at line 545 of file wavpackenc.c.
Referenced by analyze_mono(), decorr_mono_buffer(), and wv_mono().
Definition at line 608 of file wavpackenc.c.
Referenced by decorr_mono_buffer(), and wv_mono().
|
static |
Definition at line 640 of file wavpackenc.c.
Referenced by log2mono(), and log2stereo().
Definition at line 664 of file wavpackenc.c.
Referenced by analyze_mono(), delta_mono(), recurse_mono(), sort_mono(), and wv_mono().
|
static |
Definition at line 674 of file wavpackenc.c.
Referenced by analyze_stereo(), delta_stereo(), recurse_stereo(), sort_stereo(), and wv_stereo().
|
static |
Definition at line 686 of file wavpackenc.c.
Referenced by delta_mono(), recurse_mono(), and sort_mono().
|
static |
Definition at line 725 of file wavpackenc.c.
Referenced by analyze_mono().
|
static |
Definition at line 788 of file wavpackenc.c.
Referenced by analyze_mono().
|
static |
Definition at line 835 of file wavpackenc.c.
Referenced by analyze_mono().
|
static |
Definition at line 888 of file wavpackenc.c.
Referenced by analyze_mono(), and analyze_stereo().
|
static |
Definition at line 908 of file wavpackenc.c.
Referenced by wv_mono(), and wv_stereo().
|
static |
Definition at line 938 of file wavpackenc.c.
Referenced by wv_mono().
|
static |
Definition at line 990 of file wavpackenc.c.
Referenced by wv_mono(), and wv_stereo().
|
static |
Definition at line 1022 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 1128 of file wavpackenc.c.
Referenced by analyze_stereo(), decorr_stereo_buffer(), and wv_stereo().
Definition at line 1321 of file wavpackenc.c.
Referenced by decorr_stereo_buffer(), and wv_stereo().
|
static |
Definition at line 1365 of file wavpackenc.c.
Referenced by analyze_stereo(), decorr_stereo_buffer(), and wv_stereo().
|
static |
Definition at line 1501 of file wavpackenc.c.
Referenced by delta_stereo(), recurse_stereo(), and sort_stereo().
|
static |
Definition at line 1553 of file wavpackenc.c.
Referenced by analyze_stereo().
|
static |
Definition at line 1610 of file wavpackenc.c.
Referenced by analyze_stereo().
|
static |
Definition at line 1670 of file wavpackenc.c.
Referenced by analyze_stereo().
|
static |
Definition at line 1743 of file wavpackenc.c.
Referenced by wv_stereo().
|
static |
Definition at line 1812 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 1980 of file wavpackenc.c.
Referenced by wavpack_encode_block(), and wavpack_encode_sample().
|
static |
Definition at line 2053 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 2146 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 2171 of file wavpackenc.c.
Referenced by pack_float().
|
static |
Definition at line 2226 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 2243 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 2362 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 2471 of file wavpackenc.c.
Referenced by wavpack_encode_block().
|
static |
Definition at line 2480 of file wavpackenc.c.
Referenced by wavpack_encode_frame().
|
static |
Definition at line 2824 of file wavpackenc.c.
Referenced by wavpack_encode_frame().
|
static |
Definition at line 2853 of file wavpackenc.c.
Referenced by wavpack_encode_frame().
|
static |
Definition at line 2865 of file wavpackenc.c.
|
static |
Definition at line 2925 of file wavpackenc.c.
|
static |
Definition at line 2961 of file wavpackenc.c.
|
static |
Definition at line 2967 of file wavpackenc.c.
AVCodec ff_wavpack_encoder |
Definition at line 2974 of file wavpackenc.c.