FFmpeg
|
TTA (The Lossless True Audio) decoder. More...
#include <limits.h>
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "libavutil/crc.h"
Go to the source code of this file.
Data Structures | |
struct | TTAFilter |
struct | TTARice |
struct | TTAChannel |
struct | TTAContext |
Macros | |
#define | BITSTREAM_READER_LE |
#define | FORMAT_SIMPLE 1 |
#define | FORMAT_ENCRYPTED 2 |
#define | MAX_ORDER 16 |
#define | PRED(x, k) (int32_t)((((uint64_t)x << k) - x) >> k) |
Functions | |
static void | ttafilter_init (TTAFilter *c, int32_t shift) |
static void | ttafilter_process (TTAFilter *c, int32_t *in) |
static void | rice_init (TTARice *c, uint32_t k0, uint32_t k1) |
static int | tta_get_unary (GetBitContext *gb) |
static int | tta_check_crc (TTAContext *s, const uint8_t *buf, int buf_size) |
static av_cold int | tta_decode_init (AVCodecContext *avctx) |
static int | tta_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
static av_cold int | tta_decode_close (AVCodecContext *avctx) |
Variables | |
static const uint32_t | shift_1 [] |
static const uint32_t *const | shift_16 = shift_1 + 4 |
static const int32_t | ttafilter_configs [4] |
static const int64_t | tta_channel_layouts [7] |
AVCodec | ff_tta_decoder |
TTA (The Lossless True Audio) decoder.
Definition in file tta.c.
#define FORMAT_ENCRYPTED 2 |
Definition at line 39 of file tta.c.
Referenced by tta_decode_init().
#define PRED | ( | x, | |
k | |||
) | (int32_t)((((uint64_t)x << k) - x) >> k) |
Referenced by tta_decode_frame().
Definition at line 96 of file tta.c.
Referenced by tta_decode_frame().
Definition at line 103 of file tta.c.
Referenced by tta_decode_frame().
Definition at line 134 of file tta.c.
Referenced by tta_decode_frame().
|
static |
Definition at line 142 of file tta.c.
Referenced by tta_decode_frame().
|
static |
Definition at line 162 of file tta.c.
Referenced by tta_decode_frame(), and tta_decode_init().
|
static |
|
static |
|
static |
|
static |
Definition at line 74 of file tta.c.
Referenced by tta_decode_frame(), and ttafilter_init().
|
static |
Definition at line 87 of file tta.c.
Referenced by rice_init(), and tta_decode_frame().
|
static |
Definition at line 89 of file tta.c.
Referenced by tta_decode_frame().
|
static |
Definition at line 152 of file tta.c.
Referenced by tta_decode_init().
AVCodec ff_tta_decoder |