FFmpeg
Macros | Functions | Variables
supdec.c File Reference
#include "avformat.h"
#include "demux.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 (const AVProbeData *p)
 

Variables

const FFInputFormat ff_sup_demuxer
 

Macro Definition Documentation

◆ SUP_PGS_MAGIC

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

Definition at line 24 of file supdec.c.

Function Documentation

◆ sup_read_header()

static int sup_read_header ( AVFormatContext s)
static

Definition at line 26 of file supdec.c.

◆ sup_read_packet()

static int sup_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 38 of file supdec.c.

◆ sup_probe()

static int sup_probe ( const AVProbeData p)
static

Definition at line 72 of file supdec.c.

Variable Documentation

◆ ff_sup_demuxer

const FFInputFormat ff_sup_demuxer
Initial value:
= {
.p.name = "sup",
.p.long_name = NULL_IF_CONFIG_SMALL("raw HDMV Presentation Graphic Stream subtitles"),
.p.extensions = "sup",
.p.mime_type = "application/x-pgs",
.p.flags = AVFMT_GENERIC_INDEX,
.read_probe = sup_probe,
.read_header = sup_read_header,
.read_packet = sup_read_packet,
}

Definition at line 101 of file supdec.c.

AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
sup_read_header
static int sup_read_header(AVFormatContext *s)
Definition: supdec.c:26
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:94
sup_read_packet
static int sup_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: supdec.c:38
sup_probe
static int sup_probe(const AVProbeData *p)
Definition: supdec.c:72