adtsenc.c File Reference
Include dependency graph for adtsenc.c:

Go to the source code of this file.

Data Structures

struct  ADTSContext
 

Macros

#define ADTS_HEADER_SIZE   7
 
#define ADTS_MAX_FRAME_BYTES   ((1 << 13) - 1)
 

Functions

static int adts_decode_extradata (AVFormatContext *s, ADTSContext *adts, uint8_t *buf, int size)
 
static int adts_write_header (AVFormatContext *s)
 
static int adts_write_frame_header (ADTSContext *ctx, uint8_t *buf, int size, int pce_size)
 
static int adts_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVOutputFormat ff_adts_muxer
 

Macro Definition Documentation

#define ADTS_HEADER_SIZE   7

Definition at line 29 of file adtsenc.c.

Referenced by adts_write_frame_header(), and adts_write_packet().

#define ADTS_MAX_FRAME_BYTES   ((1 << 13) - 1)

Definition at line 40 of file adtsenc.c.

Referenced by adts_write_frame_header().

Function Documentation

static int adts_decode_extradata ( AVFormatContext s,
ADTSContext adts,
uint8_t buf,
int  size 
)
static

Definition at line 42 of file adtsenc.c.

Referenced by adts_write_header().

static int adts_write_frame_header ( ADTSContext ctx,
uint8_t buf,
int  size,
int  pce_size 
)
static

Definition at line 103 of file adtsenc.c.

Referenced by adts_write_packet().

static int adts_write_header ( AVFormatContext s)
static

Definition at line 91 of file adtsenc.c.

static int adts_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 141 of file adtsenc.c.

Variable Documentation

AVOutputFormat ff_adts_muxer
Initial value:
= {
.name = "adts",
.long_name = NULL_IF_CONFIG_SMALL("ADTS AAC (Advanced Audio Coding)"),
.mime_type = "audio/aac",
.extensions = "aac,adts",
.priv_data_size = sizeof(ADTSContext),
.audio_codec = AV_CODEC_ID_AAC,
.video_codec = AV_CODEC_ID_NONE,
}
static int write_packet(AVFormatContext *s, AVPacket *pkt)
static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: adtsenc.c:141
static int adts_write_header(AVFormatContext *s)
Definition: adtsenc.c:91
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:470

Definition at line 165 of file adtsenc.c.