libavformat/srtdec.c File Reference
#include "avformat.h"
#include "internal.h"
#include "subtitles.h"
#include "libavutil/bprint.h"
#include "libavutil/intreadwrite.h"
Include dependency graph for libavformat/srtdec.c:

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 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 50 of file libavformat/srtdec.c.

Referenced by srt_read_header().

static int srt_probe ( AVProbeData p)
static

Definition at line 32 of file libavformat/srtdec.c.

static int srt_read_close ( AVFormatContext s)
static

Definition at line 147 of file libavformat/srtdec.c.

static int srt_read_header ( AVFormatContext s)
static

Definition at line 74 of file libavformat/srtdec.c.

static int srt_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 133 of file libavformat/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 139 of file libavformat/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,
}
static int srt_read_close(AVFormatContext *s)
struct SRTContext SRTContext
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int srt_probe(AVProbeData *p)
static int read_probe(AVProbeData *pd)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
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_header(AVFormatContext *s)
static int srt_read_packet(AVFormatContext *s, AVPacket *pkt)

Definition at line 154 of file libavformat/srtdec.c.