FFmpeg
|
TTA (The Lossless True Audio) decoder. More...
#include <limits.h>
#include "ttadata.h"
#include "ttadsp.h"
#include "avcodec.h"
#include "get_bits.h"
#include "thread.h"
#include "unary.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 | TTAContext |
Macros | |
#define | BITSTREAM_READER_LE |
#define | FORMAT_SIMPLE 1 |
#define | FORMAT_ENCRYPTED 2 |
#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) |
Functions | |
static int | tta_check_crc (TTAContext *s, const uint8_t *buf, int buf_size) |
static uint64_t | tta_check_crc64 (uint8_t *pass) |
static int | allocate_buffers (AVCodecContext *avctx) |
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 int | init_thread_copy (AVCodecContext *avctx) |
static av_cold int | tta_decode_close (AVCodecContext *avctx) |
Variables | |
static const int64_t | tta_channel_layouts [7] |
static const AVOption | options [] |
static const AVClass | tta_decoder_class |
AVCodec | ff_tta_decoder |
TTA (The Lossless True Audio) decoder.
Definition in file tta.c.
#define FORMAT_ENCRYPTED 2 |
Definition at line 44 of file tta.c.
Referenced by tta_decode_frame(), and tta_decode_init().
#define PRED | ( | x, | |
k | |||
) | (int32_t)((((uint64_t)(x) << (k)) - (x)) >> (k)) |
Referenced by tta_decode_frame(), and tta_encode_frame().
#define OFFSET | ( | x | ) | offsetof(TTAContext, x) |
#define DEC (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM) |
|
static |
Definition at line 73 of file tta.c.
Referenced by tta_decode_frame().
|
static |
Definition at line 87 of file tta.c.
Referenced by tta_decode_init().
|
static |
Definition at line 102 of file tta.c.
Referenced by init_thread_copy(), and tta_decode_init().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 63 of file tta.c.
Referenced by tta_decode_init().
|
static |
|
static |
AVCodec ff_tta_decoder |