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

AVOutputFormat ff_sup_muxer
 

Macro Definition Documentation

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

Definition at line 26 of file supenc.c.

Referenced by sup_write_packet().

Function Documentation

static int sup_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 28 of file supenc.c.

static int sup_write_header ( AVFormatContext s)
static

Definition at line 74 of file supenc.c.

Variable Documentation

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,
}
static int sup_write_header(AVFormatContext *s)
Definition: supenc.c:74
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:477
static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: supenc.c:28
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:470

Definition at line 87 of file supenc.c.