FFmpeg
Classes | Macros | Typedefs | Variables
tta.c File Reference

TTA (The Lossless True Audio) decoder. More...

#include <limits.h>
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "ttadata.h"
#include "ttadsp.h"
#include "avcodec.h"
#include "get_bits.h"
#include "thread.h"
#include "unary.h"
#include "internal.h"

Classes

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)
 

Typedefs

typedef struct TTAContext TTAContext
 

Variables

AVCodec ff_tta_decoder
 

Detailed Description

TTA (The Lossless True Audio) decoder.

See also
http://www.true-audio.com/
http://tta.corecodec.org/
Author
Alex Beregszaszi

Variable Documentation

§ ff_tta_decoder

AVCodec ff_tta_decoder
Initial value:
= {
.name = "tta",
.long_name = NULL_IF_CONFIG_SMALL("TTA (True Audio)"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_TTA,
.priv_data_size = sizeof(TTAContext),
.init = tta_decode_init,
.close = tta_decode_close,
.decode = tta_decode_frame,
.init_thread_copy = ONLY_IF_THREADS_ENABLED(init_thread_copy),
.priv_class = &tta_decoder_class,
}
Definition: tta.c:48
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:1015
#define ONLY_IF_THREADS_ENABLED(x)
Define a function with only the non-default version specified.
Definition: internal.h:225
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959