FFmpeg
Data Structures | Macros | Functions | Variables
aqtitledec.c File Reference
#include "avformat.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)   offsetof(AQTitleContext, 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
 
AVInputFormat ff_aqtitle_demuxer
 

Detailed Description

AQTitle subtitles format demuxer

See also
http://web.archive.org/web/20070210095721/http://www.volny.cz/aberka/czech/aqt.html
https://trac.annodex.net/wiki/AQTitle

Definition in file aqtitledec.c.

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(AQTitleContext, x)

Definition at line 127 of file aqtitledec.c.

◆ SD

Definition at line 128 of file aqtitledec.c.

Function Documentation

◆ aqt_probe()

static int aqt_probe ( const AVProbeData p)
static

Definition at line 40 of file aqtitledec.c.

◆ aqt_read_header()

static int aqt_read_header ( AVFormatContext s)
static

Definition at line 50 of file aqtitledec.c.

◆ aqt_read_packet()

static int aqt_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 106 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 112 of file aqtitledec.c.

◆ aqt_read_close()

static int aqt_read_close ( AVFormatContext s)
static

Definition at line 120 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 }
}

Definition at line 129 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,
}

Definition at line 134 of file aqtitledec.c.

◆ ff_aqtitle_demuxer

AVInputFormat ff_aqtitle_demuxer
Initial value:
= {
.name = "aqtitle",
.long_name = NULL_IF_CONFIG_SMALL("AQTitle subtitles"),
.priv_data_size = sizeof(AQTitleContext),
.read_seek2 = aqt_read_seek,
.extensions = "aqt",
.priv_class = &aqt_class,
}

Definition at line 141 of file aqtitledec.c.

AQTitleContext
Definition: aqtitledec.c:34
aqt_read_header
static int aqt_read_header(AVFormatContext *s)
Definition: aqtitledec.c:50
AV_OPT_TYPE_RATIONAL
@ AV_OPT_TYPE_RATIONAL
Definition: opt.h:228
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
aqt_options
static const AVOption aqt_options[]
Definition: aqtitledec.c:129
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
NULL
#define NULL
Definition: coverity.c:32
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
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)
Definition: aqtitledec.c:112
aqt_probe
static int aqt_probe(const AVProbeData *p)
Definition: aqtitledec.c:40
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
aqt_class
static const AVClass aqt_class
Definition: aqtitledec.c:134
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
aqt_read_packet
static int aqt_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: aqtitledec.c:106
SD
#define SD
Definition: aqtitledec.c:128
aqt_read_close
static int aqt_read_close(AVFormatContext *s)
Definition: aqtitledec.c:120
OFFSET
#define OFFSET(x)
Definition: aqtitledec.c:127