FFmpeg  4.0
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

◆ SUP_PGS_MAGIC

#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

◆ sup_read_header()

static int sup_read_header ( AVFormatContext s)
static

Definition at line 25 of file supdec.c.

◆ sup_read_packet()

static int sup_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 37 of file supdec.c.

◆ sup_probe()

static int sup_probe ( AVProbeData p)
static

Definition at line 71 of file supdec.c.

Variable Documentation

◆ ff_sup_demuxer

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:186
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:470
static int sup_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: supdec.c:37

Definition at line 100 of file supdec.c.