FFmpeg
Macros | Functions | Variables
supenc.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_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int sup_write_header (AVFormatContext *s)
 

Variables

const AVOutputFormat ff_sup_muxer
 

Macro Definition Documentation

◆ SUP_PGS_MAGIC

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

Definition at line 26 of file supenc.c.

Function Documentation

◆ sup_write_packet()

static int sup_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 28 of file supenc.c.

◆ sup_write_header()

static int sup_write_header ( AVFormatContext s)
static

Definition at line 74 of file supenc.c.

Variable Documentation

◆ ff_sup_muxer

const AVOutputFormat ff_sup_muxer
Initial value:
= {
.name = "sup",
.long_name = NULL_IF_CONFIG_SMALL("raw HDMV Presentation Graphic Stream subtitles"),
.extensions = "sup",
.mime_type = "application/x-pgs",
.subtitle_codec = AV_CODEC_ID_HDMV_PGS_SUBTITLE,
.write_header = sup_write_header,
.write_packet = sup_write_packet,
}

Definition at line 87 of file supenc.c.

AVFMT_VARIABLE_FPS
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:478
AV_CODEC_ID_HDMV_PGS_SUBTITLE
@ AV_CODEC_ID_HDMV_PGS_SUBTITLE
Definition: codec_id.h:528
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
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:485
sup_write_header
static int sup_write_header(AVFormatContext *s)
Definition: supenc.c:74
sup_write_packet
static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: supenc.c:28