FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ttaenc.c File Reference
#include "ttadata.h"
#include "avcodec.h"
#include "put_bits.h"
#include "internal.h"
#include "libavutil/crc.h"

Go to the source code of this file.

Data Structures

struct  TTAEncContext
 

Macros

#define BITSTREAM_WRITER_LE
 
#define PRED(x, k)   (int32_t)((((uint64_t)(x) << (k)) - (x)) >> (k))
 

Functions

static av_cold int tta_encode_init (AVCodecContext *avctx)
 
static void ttafilter_process (TTAFilter *c, int32_t *in)
 
static int32_t get_sample (const AVFrame *frame, int sample, enum AVSampleFormat format)
 
static int tta_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 
static av_cold int tta_encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_tta_encoder
 

Macro Definition Documentation

#define BITSTREAM_WRITER_LE

Definition at line 21 of file ttaenc.c.

#define PRED (   x,
 
)    (int32_t)((((uint64_t)(x) << (k)) - (x)) >> (k))

Referenced by tta_encode_frame().

Function Documentation

static av_cold int tta_encode_init ( AVCodecContext avctx)
static

Definition at line 34 of file ttaenc.c.

static void ttafilter_process ( TTAFilter c,
int32_t in 
)
inlinestatic

Definition at line 63 of file ttaenc.c.

Referenced by tta_encode_frame().

static int32_t get_sample ( const AVFrame frame,
int  sample,
enum AVSampleFormat  format 
)
static

Definition at line 94 of file ttaenc.c.

Referenced by tta_encode_frame().

static int tta_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
)
static

Definition at line 112 of file ttaenc.c.

static av_cold int tta_encode_close ( AVCodecContext avctx)
static

Definition at line 211 of file ttaenc.c.

Variable Documentation

AVCodec ff_tta_encoder
Initial value:
= {
.name = "tta",
.long_name = NULL_IF_CONFIG_SMALL("TTA (True Audio)"),
.priv_data_size = sizeof(TTAEncContext),
.close = tta_encode_close,
.encode2 = tta_encode_frame,
}
static av_cold int tta_encode_init(AVCodecContext *avctx)
Definition: ttaenc.c:34
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_LOSSLESS
Codec is lossless.
Definition: avcodec.h:890
static av_cold int tta_encode_close(AVCodecContext *avctx)
Definition: ttaenc.c:211
AV_SAMPLE_FMT_U8
signed 32 bits
Definition: samplefmt.h:63
#define CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
Definition: avcodec.h:829
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:59
signed 16 bits
Definition: samplefmt.h:62
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701
static int tta_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: ttaenc.c:112

Definition at line 218 of file ttaenc.c.