FFmpeg
Macros | Functions | Variables
supenc.c File Reference
#include "avformat.h"
#include "internal.h"
#include "mux.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 FFOutputFormat ff_sup_muxer
 

Macro Definition Documentation

◆ SUP_PGS_MAGIC

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

Definition at line 27 of file supenc.c.

Function Documentation

◆ sup_write_packet()

static int sup_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 29 of file supenc.c.

◆ sup_write_header()

static int sup_write_header ( AVFormatContext s)
static

Definition at line 75 of file supenc.c.

Variable Documentation

◆ ff_sup_muxer

const FFOutputFormat ff_sup_muxer
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.subtitle_codec = AV_CODEC_ID_HDMV_PGS_SUBTITLE,
.write_header = sup_write_header,
.write_packet = sup_write_packet,
}

Definition at line 88 of file supenc.c.

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