FFmpeg
Data Structures | Functions | Variables
ttaenc.c File Reference
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/packet_internal.h"
#include "apetag.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  TTAMuxContext
 

Functions

static int tta_init (AVFormatContext *s)
 
static int tta_write_header (AVFormatContext *s)
 
static int tta_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static void tta_queue_flush (AVFormatContext *s)
 
static int tta_write_trailer (AVFormatContext *s)
 
static void tta_deinit (AVFormatContext *s)
 

Variables

const FFOutputFormat ff_tta_muxer
 

Function Documentation

◆ tta_init()

static int tta_init ( AVFormatContext s)
static

Definition at line 40 of file ttaenc.c.

◆ tta_write_header()

static int tta_write_header ( AVFormatContext s)
static

Definition at line 65 of file ttaenc.c.

◆ tta_write_packet()

static int tta_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 87 of file ttaenc.c.

◆ tta_queue_flush()

static void tta_queue_flush ( AVFormatContext s)
static

Definition at line 118 of file ttaenc.c.

Referenced by tta_write_trailer().

◆ tta_write_trailer()

static int tta_write_trailer ( AVFormatContext s)
static

Definition at line 130 of file ttaenc.c.

◆ tta_deinit()

static void tta_deinit ( AVFormatContext s)
static

Definition at line 155 of file ttaenc.c.

Variable Documentation

◆ ff_tta_muxer

const FFOutputFormat ff_tta_muxer
Initial value:
= {
.p.name = "tta",
.p.long_name = NULL_IF_CONFIG_SMALL("TTA (True Audio)"),
.p.mime_type = "audio/x-tta",
.p.extensions = "tta",
.priv_data_size = sizeof(TTAMuxContext),
.p.audio_codec = AV_CODEC_ID_TTA,
.p.video_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
.init = tta_init,
.deinit = tta_deinit,
.write_header = tta_write_header,
.write_packet = tta_write_packet,
.write_trailer = tta_write_trailer,
}

Definition at line 163 of file ttaenc.c.

FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition: mux.h:59
tta_deinit
static void tta_deinit(AVFormatContext *s)
Definition: ttaenc.c:155
tta_init
static int tta_init(AVFormatContext *s)
Definition: ttaenc.c:40
tta_write_header
static int tta_write_header(AVFormatContext *s)
Definition: ttaenc.c:65
AV_CODEC_ID_TTA
@ AV_CODEC_ID_TTA
Definition: codec_id.h:468
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
tta_write_packet
static int tta_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ttaenc.c:87
tta_write_trailer
static int tta_write_trailer(AVFormatContext *s)
Definition: ttaenc.c:130
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
TTAMuxContext
Definition: ttaenc.c:32