All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
srtdec.c File Reference
#include "avformat.h"
#include "internal.h"
#include "subtitles.h"
#include "libavutil/bprint.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  SRTContext


static int srt_probe (AVProbeData *p)
static int64_t get_pts (const char **buf, int *duration, int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2)
static int srt_read_header (AVFormatContext *s)
static int srt_read_packet (AVFormatContext *s, AVPacket *pkt)
static int srt_read_seek (AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
static int srt_read_close (AVFormatContext *s)


AVInputFormat ff_srt_demuxer

Function Documentation

static int srt_probe ( AVProbeData p)

Definition at line 32 of file srtdec.c.

static int64_t get_pts ( const char **  buf,
int *  duration,
int32_t x1,
int32_t y1,
int32_t x2,
int32_t y2 

Definition at line 50 of file srtdec.c.

Referenced by srt_read_header().

static int srt_read_header ( AVFormatContext s)

Definition at line 74 of file srtdec.c.

static int srt_read_packet ( AVFormatContext s,
AVPacket pkt 

Definition at line 133 of file srtdec.c.

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

Definition at line 139 of file srtdec.c.

static int srt_read_close ( AVFormatContext s)

Definition at line 147 of file srtdec.c.

Variable Documentation

AVInputFormat ff_srt_demuxer
Initial value:
= {
.name = "srt",
.long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"),
.priv_data_size = sizeof(SRTContext),
.read_seek2 = srt_read_seek,

Definition at line 154 of file srtdec.c.