FFmpeg
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 (const AVProbeData *p)
 

Variables

const 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.

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 ( const AVProbeData p)
static

Definition at line 71 of file supdec.c.

Variable Documentation

◆ ff_sup_demuxer

const 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,
}

Definition at line 100 of file supdec.c.

AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:476
sup_read_header
static int sup_read_header(AVFormatContext *s)
Definition: supdec.c:25
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:117
sup_read_packet
static int sup_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: supdec.c:37
sup_probe
static int sup_probe(const AVProbeData *p)
Definition: supdec.c:71