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

Go to the source code of this file.

Data Structures

struct  MicroDVDContext
 

Macros

#define MAX_LINESIZE   2048
 
#define SKIP_FRAME_ID
 
#define OFFSET(x)   offsetof(MicroDVDContext, x)
 
#define SD   AV_OPT_FLAG_SUBTITLE_PARAM|AV_OPT_FLAG_DECODING_PARAM
 

Functions

static int microdvd_probe (AVProbeData *p)
 
static int64_t get_pts (const char *buf)
 
static int get_duration (const char *buf)
 
static int microdvd_read_header (AVFormatContext *s)
 
static int microdvd_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int microdvd_read_seek (AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
 
static int microdvd_read_close (AVFormatContext *s)
 

Variables

static const char * bom = "\xEF\xBB\xBF"
 
static const AVOption microdvd_options []
 
static const AVClass microdvd_class
 
AVInputFormat ff_microdvd_demuxer
 

Macro Definition Documentation

#define MAX_LINESIZE   2048

Definition at line 29 of file microdvddec.c.

Referenced by microdvd_read_header().

#define SKIP_FRAME_ID
Value:
p = strchr(p, '}'); \
if (!p) { \
av_log(s, AV_LOG_WARNING, "Invalid event \"%s\"" \
" at line %d\n", line, i); \
continue; \
} \
p++
const char * s
Definition: avisynth_c.h:631
#define AV_LOG_WARNING
Something somehow does not look correct.
Definition: log.h:182
#define av_log(a,...)
Definition: graph2dot.c:48
if(ret< 0)
Definition: vf_mcdeint.c:280

Referenced by microdvd_read_header().

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

Definition at line 180 of file microdvddec.c.

Definition at line 181 of file microdvddec.c.

Function Documentation

static int microdvd_probe ( AVProbeData p)
static

Definition at line 39 of file microdvddec.c.

static int64_t get_pts ( const char *  buf)
static

Definition at line 58 of file microdvddec.c.

Referenced by microdvd_read_header().

static int get_duration ( const char *  buf)
static

Definition at line 68 of file microdvddec.c.

Referenced by microdvd_read_header().

static int microdvd_read_header ( AVFormatContext s)
static

Definition at line 79 of file microdvddec.c.

static int microdvd_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 158 of file microdvddec.c.

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

Definition at line 164 of file microdvddec.c.

static int microdvd_read_close ( AVFormatContext s)
static

Definition at line 172 of file microdvddec.c.

Variable Documentation

const char* bom = "\xEF\xBB\xBF"
static

Definition at line 77 of file microdvddec.c.

Referenced by microdvd_read_header(), and read_header().

const AVOption microdvd_options[]
static
Initial value:
= {
{ "subfps", "set the movie frame rate fallback", OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, {.dbl=0}, 0, INT_MAX, SD },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: microdvddec.c:180
#define SD
Definition: microdvddec.c:181

Definition at line 182 of file microdvddec.c.

const AVClass microdvd_class
static
Initial value:
= {
.class_name = "microdvddec",
.item_name = av_default_item_name,
.option = microdvd_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:62
av_default_item_name
static const AVOption microdvd_options[]
Definition: microdvddec.c:182

Definition at line 187 of file microdvddec.c.

AVInputFormat ff_microdvd_demuxer
Initial value:
= {
.name = "microdvd",
.long_name = NULL_IF_CONFIG_SMALL("MicroDVD subtitle format"),
.priv_data_size = sizeof(MicroDVDContext),
.read_seek2 = microdvd_read_seek,
.priv_class = &microdvd_class,
}
static int microdvd_read_seek(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
Definition: microdvddec.c:164
static int microdvd_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: microdvddec.c:158
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. ...
Definition: internal.h:175
static int microdvd_read_header(AVFormatContext *s)
Definition: microdvddec.c:79
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static const AVClass microdvd_class
Definition: microdvddec.c:187
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:623
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int microdvd_read_close(AVFormatContext *s)
Definition: microdvddec.c:172
static int microdvd_probe(AVProbeData *p)
Definition: microdvddec.c:39

Definition at line 194 of file microdvddec.c.