FFmpeg
 All Data Structures Namespaces 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
 

Functions

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)
 

Variables

AVInputFormat ff_srt_demuxer
 

Function Documentation

static int srt_probe ( AVProbeData p)
static

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 
)
static

Definition at line 59 of file srtdec.c.

Referenced by srt_read_header().

static int srt_read_header ( AVFormatContext s)
static

Definition at line 83 of file srtdec.c.

static int srt_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 144 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 
)
static

Definition at line 150 of file srtdec.c.

static int srt_read_close ( AVFormatContext s)
static

Definition at line 158 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 165 of file srtdec.c.