FFmpeg
Loading...
Searching...
No Matches
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,
}
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition avformat.h:501
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition avformat.h:507
@ AV_CODEC_ID_HDMV_PGS_SUBTITLE
Definition codec_id.h:572
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
#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
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition mux.h:59
static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition supenc.c:29
static av_cold int sup_init(AVFormatContext *s)
Definition supenc.c:75

Definition at line 82 of file supenc.c.