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

Go to the source code of this file.

Macros

#define SUP_PGS_MAGIC   0x5047 /* "PG", big endian */
 

Functions

static int sup_read_header (AVFormatContext *s)
 
static int sup_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int sup_probe (AVProbeData *p)
 

Variables

AVInputFormat ff_sup_demuxer
 

Macro Definition Documentation

#define SUP_PGS_MAGIC   0x5047 /* "PG", big endian */

Definition at line 23 of file supdec.c.

Referenced by sup_probe(), and sup_read_packet().

Function Documentation

static int sup_read_header ( AVFormatContext s)
static

Definition at line 25 of file supdec.c.

static int sup_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 37 of file supdec.c.

static int sup_probe ( AVProbeData p)
static

Definition at line 71 of file supdec.c.

Variable Documentation

AVInputFormat ff_sup_demuxer
Initial value:
= {
.name = "sup",
.long_name = NULL_IF_CONFIG_SMALL("raw HDMV Presentation Graphic Stream subtitles"),
.extensions = "sup",
.mime_type = "application/x-pgs",
.read_probe = sup_probe,
.read_header = sup_read_header,
.read_packet = sup_read_packet,
}
static int sup_probe(AVProbeData *p)
Definition: supdec.c:71
static int sup_read_header(AVFormatContext *s)
Definition: supdec.c:25
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:485
static int sup_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: supdec.c:37

Definition at line 100 of file supdec.c.