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 av_cold int sup_init (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_init()

static av_cold int sup_init ( 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.video_codec = AV_CODEC_ID_NONE,
.p.audio_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_HDMV_PGS_SUBTITLE,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH,
.init = sup_init,
.write_packet = sup_write_packet,
}

Definition at line 82 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:555
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:106
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:491
sup_init
static av_cold int sup_init(AVFormatContext *s)
Definition: supenc.c:75
sup_write_packet
static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: supenc.c:29