assdec.c File Reference
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  ASSContext

Macros

#define MAX_LINESIZE   2000

Typedefs

typedef struct ASSContext ASSContext

Functions

static int probe (AVProbeData *p)
static int read_close (AVFormatContext *s)
static int64_t get_pts (const uint8_t *p)
static int event_cmp (uint8_t **a, uint8_t **b)
static int read_header (AVFormatContext *s, AVFormatParameters *ap)
static int read_packet (AVFormatContext *s, AVPacket *pkt)
static int read_seek2 (AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)

Variables

AVInputFormat ff_ass_demuxer

Macro Definition Documentation

#define MAX_LINESIZE   2000

Definition at line 26 of file assdec.c.

Referenced by read_header().

Typedef Documentation

typedef struct ASSContext ASSContext

Function Documentation

static int event_cmp ( uint8_t **  a,
uint8_t **  b 
)
static

Definition at line 71 of file assdec.c.

Referenced by read_header().

static int64_t get_pts ( const uint8_t *  p)
static

Definition at line 56 of file assdec.c.

Referenced by event_cmp(), read_header(), read_packet(), and read_seek2().

static int probe ( AVProbeData p)
static

Definition at line 35 of file assdec.c.

static int read_close ( AVFormatContext s)
static

Definition at line 46 of file assdec.c.

Referenced by read_header().

static int read_header ( AVFormatContext s,
AVFormatParameters ap 
)
static

Definition at line 76 of file assdec.c.

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 144 of file assdec.c.

static int read_seek2 ( AVFormatContext s,
int  stream_index,
int64_t  min_ts,
int64_t  ts,
int64_t  max_ts,
int  flags 
)
static

Definition at line 166 of file assdec.c.

Variable Documentation

AVInputFormat ff_ass_demuxer
Initial value:
{
.name = "ass",
.long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"),
.priv_data_size = sizeof(ASSContext),
}

Definition at line 206 of file assdec.c.