FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
assenc.c File Reference
#include "libavutil/avstring.h"
#include "avformat.h"
#include "internal.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  DialogueLine
 
struct  ASSContext
 

Macros

#define OFFSET(x)   offsetof(ASSContext, x)
 
#define E   AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static int write_header (AVFormatContext *s)
 
static void purge_dialogues (AVFormatContext *s, int force)
 
static void insert_dialogue (ASSContext *ass, DialogueLine *dialogue)
 
static int write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int write_trailer (AVFormatContext *s)
 

Variables

static const AVOption options []
 
static const AVClass ass_class
 
AVOutputFormat ff_ass_muxer
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(ASSContext, x)

Definition at line 199 of file assenc.c.

Definition at line 200 of file assenc.c.

Function Documentation

static int write_header ( AVFormatContext s)
static

Definition at line 45 of file assenc.c.

static void purge_dialogues ( AVFormatContext s,
int  force 
)
static

Definition at line 71 of file assenc.c.

Referenced by write_packet(), and write_trailer().

static void insert_dialogue ( ASSContext ass,
DialogueLine dialogue 
)
static

Definition at line 101 of file assenc.c.

Referenced by write_packet().

static int write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 141 of file assenc.c.

static int write_trailer ( AVFormatContext s)
static

Definition at line 193 of file assenc.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "ignore_readorder", "write events immediately, even if they're out-of-order", OFFSET(ignore_readorder), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, E },
{ NULL },
}

Definition at line 201 of file assenc.c.

const AVClass ass_class
static
Initial value:
= {
.class_name = "ass muxer",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 206 of file assenc.c.

AVOutputFormat ff_ass_muxer
Initial value:
= {
.name = "ass",
.long_name = NULL_IF_CONFIG_SMALL("SSA (SubStation Alpha) subtitle"),
.mime_type = "text/x-ssa",
.extensions = "ass,ssa",
.priv_data_size = sizeof(ASSContext),
.subtitle_codec = AV_CODEC_ID_SSA,
.priv_class = &ass_class,
}

Definition at line 213 of file assenc.c.