FFmpeg
Loading...
Searching...
No Matches
aqtitledec.c File Reference

AQTitle subtitles format demuxer. More...

#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "subtitles.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  AQTitleContext
 

Macros

#define OFFSET(x)
 
#define SD   AV_OPT_FLAG_SUBTITLE_PARAM|AV_OPT_FLAG_DECODING_PARAM
 

Functions

static int aqt_probe (const AVProbeData *p)
 
static int aqt_read_header (AVFormatContext *s)
 
static int aqt_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int aqt_read_seek (AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
 
static int aqt_read_close (AVFormatContext *s)
 

Variables

static const AVOption aqt_options []
 
static const AVClass aqt_class
 
const FFInputFormat ff_aqtitle_demuxer
 

Detailed Description

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 125 of file aqtitledec.c.

◆ SD

Definition at line 126 of file aqtitledec.c.

Function Documentation

◆ aqt_probe()

static int aqt_probe ( const AVProbeData * p)
static

Definition at line 41 of file aqtitledec.c.

◆ aqt_read_header()

static int aqt_read_header ( AVFormatContext * s)
static

Definition at line 51 of file aqtitledec.c.

◆ aqt_read_packet()

static int aqt_read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 104 of file aqtitledec.c.

◆ aqt_read_seek()

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

Definition at line 110 of file aqtitledec.c.

◆ aqt_read_close()

static int aqt_read_close ( AVFormatContext * s)
static

Definition at line 118 of file aqtitledec.c.

Variable Documentation

◆ aqt_options

const AVOption aqt_options[]
static
Initial value:
= {
{ "subfps", "set the movie frame rate", OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, {.dbl=25}, 0, INT_MAX, SD },
{ NULL }
}
#define SD
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_RATIONAL
Underlying C type is AVRational.
Definition opt.h:279

Definition at line 127 of file aqtitledec.c.

◆ aqt_class

const AVClass aqt_class
static
Initial value:
= {
.class_name = "aqtdec",
.item_name = av_default_item_name,
.option = aqt_options,
}
static const AVOption aqt_options[]
Definition aqtitledec.c:127
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

Definition at line 132 of file aqtitledec.c.

◆ ff_aqtitle_demuxer

const FFInputFormat ff_aqtitle_demuxer
Initial value:
= {
.p.name = "aqtitle",
.p.long_name = NULL_IF_CONFIG_SMALL("AQTitle subtitles"),
.p.extensions = "aqt",
.p.priv_class = &aqt_class,
.priv_data_size = sizeof(AQTitleContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
.read_seek2 = aqt_read_seek,
}
static int aqt_read_close(AVFormatContext *s)
Definition aqtitledec.c:118
static int aqt_probe(const AVProbeData *p)
Definition aqtitledec.c:41
static int aqt_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition aqtitledec.c:104
static int aqt_read_seek(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
Definition aqtitledec.c:110
static int aqt_read_header(AVFormatContext *s)
Definition aqtitledec.c:51
static const AVClass aqt_class
Definition aqtitledec.c:132
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition demux.h:35
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static av_cold int read_close(AVFormatContext *ctx)
Definition libcdio.c:143

Definition at line 139 of file aqtitledec.c.