FFmpeg
|
WavPack lossless audio decoder. More...
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "thread.h"
#include "unary.h"
#include "bytestream.h"
Go to the source code of this file.
Data Structures | |
struct | SavedContext |
struct | Decorr |
struct | WvChannel |
struct | WavpackFrameContext |
struct | WavpackContext |
Macros | |
#define | BITSTREAM_READER_LE |
#define | WV_HEADER_SIZE 32 |
#define | WV_MONO 0x00000004 |
#define | WV_JOINT_STEREO 0x00000010 |
#define | WV_FALSE_STEREO 0x40000000 |
#define | WV_HYBRID_MODE 0x00000008 |
#define | WV_HYBRID_SHAPE 0x00000008 |
#define | WV_HYBRID_BITRATE 0x00000200 |
#define | WV_HYBRID_BALANCE 0x00000400 |
#define | WV_INITIAL_BLOCK 0x00000800 |
#define | WV_FINAL_BLOCK 0x00001000 |
#define | WV_SINGLE_BLOCK (WV_INITIAL_BLOCK | WV_FINAL_BLOCK) |
#define | WV_FLT_SHIFT_ONES 0x01 |
#define | WV_FLT_SHIFT_SAME 0x02 |
#define | WV_FLT_SHIFT_SENT 0x04 |
#define | WV_FLT_ZERO_SENT 0x08 |
#define | WV_FLT_ZERO_SIGN 0x10 |
#define | WV_MAX_SAMPLES 131072 |
#define | MAX_TERMS 16 |
#define | WV_MAX_FRAME_DECODERS 14 |
#define | LEVEL_DECAY(a) ((a + 0x80) >> 8) |
#define | GET_MED(n) ((c->median[n] >> 4) + 1) |
#define | DEC_MED(n) c->median[n] -= ((c->median[n] + (128 >> n) - 2) / (128 >> n)) * 2 |
#define | INC_MED(n) c->median[n] += ((c->median[n] + (128 >> n) ) / (128 >> n)) * 5 |
#define | UPDATE_WEIGHT_CLIP(weight, delta, samples, in) |
Enumerations | |
enum | WP_ID_Flags { WP_IDF_MASK = 0x3F, WP_IDF_IGNORE = 0x20, WP_IDF_ODD = 0x40, WP_IDF_LONG = 0x80 } |
enum | WP_ID { WP_ID_DUMMY = 0, WP_ID_ENCINFO, WP_ID_DECTERMS, WP_ID_DECWEIGHTS, WP_ID_DECSAMPLES, WP_ID_ENTROPY, WP_ID_HYBRID, WP_ID_SHAPING, WP_ID_FLOATINFO, WP_ID_INT32INFO, WP_ID_DATA, WP_ID_CORR, WP_ID_EXTRABITS, WP_ID_CHANINFO, WP_ID_SAMPLE_RATE = 0x27 } |
Variables | |
static const int | wv_rates [16] |
static const uint8_t | wp_exp2_table [256] |
static const uint8_t | wp_log2_table [] |
AVCodec | ff_wavpack_decoder |
WavPack lossless audio decoder.
Definition in file wavpack.c.
#define WV_HEADER_SIZE 32 |
Definition at line 37 of file wavpack.c.
Referenced by mkv_strip_wavpack(), wavpack_decode_frame(), wv_read_block_header(), wv_read_packet(), and wv_write_packet().
#define WV_MONO 0x00000004 |
Definition at line 39 of file wavpack.c.
Referenced by wavpack_decode_block().
#define WV_JOINT_STEREO 0x00000010 |
Definition at line 40 of file wavpack.c.
Referenced by wavpack_decode_block().
#define WV_FALSE_STEREO 0x40000000 |
Definition at line 41 of file wavpack.c.
Referenced by wavpack_decode_block().
#define WV_HYBRID_MODE 0x00000008 |
Definition at line 43 of file wavpack.c.
Referenced by wavpack_decode_block().
#define WV_HYBRID_BITRATE 0x00000200 |
Definition at line 45 of file wavpack.c.
Referenced by wavpack_decode_block().
#define WV_SINGLE_BLOCK (WV_INITIAL_BLOCK | WV_FINAL_BLOCK) |
Definition at line 50 of file wavpack.c.
Referenced by wavpack_decode_block().
#define WV_FLT_SHIFT_ONES 0x01 |
Definition at line 52 of file wavpack.c.
Referenced by wv_get_value_float().
#define WV_FLT_SHIFT_SAME 0x02 |
Definition at line 53 of file wavpack.c.
Referenced by wv_get_value_float().
#define WV_FLT_SHIFT_SENT 0x04 |
Definition at line 54 of file wavpack.c.
Referenced by wv_get_value_float().
#define WV_FLT_ZERO_SENT 0x08 |
Definition at line 55 of file wavpack.c.
Referenced by wv_get_value_float().
#define WV_FLT_ZERO_SIGN 0x10 |
Definition at line 56 of file wavpack.c.
Referenced by wv_get_value_float().
#define WV_MAX_SAMPLES 131072 |
Definition at line 58 of file wavpack.c.
Referenced by wavpack_decode_frame().
#define MAX_TERMS 16 |
Definition at line 92 of file wavpack.c.
Referenced by wavpack_decode_block().
#define WV_MAX_FRAME_DECODERS 14 |
Definition at line 137 of file wavpack.c.
Referenced by wv_alloc_frame_context().
Definition at line 225 of file wavpack.c.
Referenced by update_error_limit(), and wv_get_value().
Definition at line 228 of file wavpack.c.
Referenced by wv_get_value().
Definition at line 229 of file wavpack.c.
Referenced by wv_get_value().
Definition at line 230 of file wavpack.c.
Referenced by wv_get_value().
enum WP_ID_Flags |
enum WP_ID |
|
static |
Definition at line 194 of file wavpack.c.
Referenced by update_error_limit(), and wavpack_decode_block().
|
static |
Definition at line 209 of file wavpack.c.
Referenced by wv_get_value().
|
static |
Definition at line 246 of file wavpack.c.
Referenced by wv_get_value().
|
static |
Definition at line 260 of file wavpack.c.
Referenced by wv_get_value().
|
static |
Definition at line 294 of file wavpack.c.
Referenced by wv_unpack_mono(), and wv_unpack_stereo().
|
inlinestatic |
Definition at line 418 of file wavpack.c.
Referenced by wv_unpack_mono(), and wv_unpack_stereo().
|
static |
Definition at line 442 of file wavpack.c.
Referenced by wv_unpack_mono(), and wv_unpack_stereo().
|
static |
Definition at line 516 of file wavpack.c.
Referenced by wavpack_decode_flush(), wv_alloc_frame_context(), wv_unpack_mono(), and wv_unpack_stereo().
|
inlinestatic |
Definition at line 522 of file wavpack.c.
Referenced by wv_unpack_mono(), and wv_unpack_stereo().
|
inlinestatic |
Definition at line 537 of file wavpack.c.
Referenced by wavpack_decode_block().
|
inlinestatic |
Definition at line 655 of file wavpack.c.
Referenced by wavpack_decode_block().
|
static |
Definition at line 716 of file wavpack.c.
Referenced by wavpack_decode_block().
|
static |
|
static |
|
static |
|
static |
Definition at line 761 of file wavpack.c.
Referenced by wavpack_decode_frame().
|
static |
Definition at line 1164 of file wavpack.c.
Referenced by wavpack_decode_frame().
|
static |
|
static |
Definition at line 150 of file wavpack.c.
Referenced by wavpack_decode_block().
|
static |
Definition at line 156 of file wavpack.c.
Referenced by wp_exp2().
|
static |
Definition at line 175 of file wavpack.c.
Referenced by wp_log2().
AVCodec ff_wavpack_decoder |