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"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.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) |
#define | OFFSET(x) offsetof(TTAContext, x) |
#define | DEC (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM) |
Typedefs | |
typedef struct TTAFilter | TTAFilter |
typedef struct TTARice | TTARice |
typedef struct TTAChannel | TTAChannel |
typedef struct TTAContext | TTAContext |
Functions | |
static void | ttafilter_init (TTAContext *s, 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 uint64_t | tta_check_crc64 (uint8_t *pass) |
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] |
static const AVOption | options [] |
static const AVClass | tta_decoder_class |
AVCodec | ff_tta_decoder |
Detailed Description
TTA (The Lossless True Audio) decoder.
Definition in file libavcodec/tta.c.
Macro Definition Documentation
#define BITSTREAM_READER_LE |
Definition at line 30 of file libavcodec/tta.c.
#define DEC (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM) |
Definition at line 491 of file libavcodec/tta.c.
#define FORMAT_ENCRYPTED 2 |
Definition at line 41 of file libavcodec/tta.c.
Referenced by tta_decode_init(), and ttafilter_init().
#define FORMAT_SIMPLE 1 |
Definition at line 40 of file libavcodec/tta.c.
#define MAX_ORDER 16 |
Definition at line 43 of file libavcodec/tta.c.
#define OFFSET | ( | x | ) | offsetof(TTAContext, x) |
Definition at line 490 of file libavcodec/tta.c.
Typedef Documentation
typedef struct TTAChannel TTAChannel |
typedef struct TTAContext TTAContext |
Function Documentation
Definition at line 143 of file libavcodec/tta.c.
Referenced by tta_decode_frame().
|
static |
Definition at line 171 of file libavcodec/tta.c.
Referenced by tta_decode_frame(), and tta_decode_init().
|
static |
Definition at line 185 of file libavcodec/tta.c.
Referenced by tta_decode_init().
|
static |
Definition at line 479 of file libavcodec/tta.c.
|
static |
Definition at line 317 of file libavcodec/tta.c.
|
static |
Definition at line 200 of file libavcodec/tta.c.
|
static |
Definition at line 151 of file libavcodec/tta.c.
Referenced by tta_decode_frame().
|
static |
Definition at line 100 of file libavcodec/tta.c.
Referenced by tta_decode_frame().
Definition at line 112 of file libavcodec/tta.c.
Referenced by tta_decode_frame().
Variable Documentation
AVCodec ff_tta_decoder |
Definition at line 504 of file libavcodec/tta.c.
|
static |
Definition at line 492 of file libavcodec/tta.c.
|
static |
Definition at line 78 of file libavcodec/tta.c.
Referenced by tta_decode_frame(), and ttafilter_init().
|
static |
Definition at line 91 of file libavcodec/tta.c.
Referenced by rice_init(), and tta_decode_frame().
|
static |
Definition at line 161 of file libavcodec/tta.c.
Referenced by tta_decode_init().
|
static |
Definition at line 497 of file libavcodec/tta.c.
|
static |
Definition at line 93 of file libavcodec/tta.c.
Referenced by tta_decode_frame().
Generated on Fri Dec 20 2024 06:56:16 for FFmpeg by 1.8.11