FFmpeg
Data Structures | Macros | Functions | Variables
rcwtenc.c File Reference
#include "avformat.h"
#include "internal.h"
#include "mux.h"
#include "libavutil/log.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  RCWTContext
 

Macros

#define RCWT_CLUSTER_MAX_BLOCKS   65535
 
#define RCWT_BLOCK_SIZE   3
 

Functions

static void rcwt_init_cluster (RCWTContext *rcwt)
 
static void rcwt_flush_cluster (AVFormatContext *avf)
 
static int rcwt_write_header (AVFormatContext *avf)
 
static int rcwt_write_packet (AVFormatContext *avf, AVPacket *pkt)
 
static int rcwt_write_trailer (AVFormatContext *avf)
 

Variables

const FFOutputFormat ff_rcwt_muxer
 

Macro Definition Documentation

◆ RCWT_CLUSTER_MAX_BLOCKS

#define RCWT_CLUSTER_MAX_BLOCKS   65535

Definition at line 52 of file rcwtenc.c.

◆ RCWT_BLOCK_SIZE

#define RCWT_BLOCK_SIZE   3

Definition at line 53 of file rcwtenc.c.

Function Documentation

◆ rcwt_init_cluster()

static void rcwt_init_cluster ( RCWTContext rcwt)
static

Definition at line 61 of file rcwtenc.c.

Referenced by rcwt_flush_cluster(), and rcwt_write_header().

◆ rcwt_flush_cluster()

static void rcwt_flush_cluster ( AVFormatContext avf)
static

Definition at line 67 of file rcwtenc.c.

Referenced by rcwt_write_packet(), and rcwt_write_trailer().

◆ rcwt_write_header()

static int rcwt_write_header ( AVFormatContext avf)
static

Definition at line 80 of file rcwtenc.c.

◆ rcwt_write_packet()

static int rcwt_write_packet ( AVFormatContext avf,
AVPacket pkt 
)
static

Definition at line 104 of file rcwtenc.c.

◆ rcwt_write_trailer()

static int rcwt_write_trailer ( AVFormatContext avf)
static

Definition at line 147 of file rcwtenc.c.

Variable Documentation

◆ ff_rcwt_muxer

const FFOutputFormat ff_rcwt_muxer
Initial value:
= {
.p.name = "rcwt",
.p.long_name = NULL_IF_CONFIG_SMALL("RCWT (Raw Captions With Time)"),
.p.video_codec = AV_CODEC_ID_NONE,
.p.audio_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_EIA_608,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
.priv_data_size = sizeof(RCWTContext),
}

Definition at line 154 of file rcwtenc.c.

AV_CODEC_ID_EIA_608
@ AV_CODEC_ID_EIA_608
Definition: codec_id.h:565
AVFMT_VARIABLE_FPS
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:482
FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
#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
rcwt_write_trailer
static int rcwt_write_trailer(AVFormatContext *avf)
Definition: rcwtenc.c:147
rcwt_write_packet
static int rcwt_write_packet(AVFormatContext *avf, AVPacket *pkt)
Definition: rcwtenc.c:104
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:101
rcwt_write_header
static int rcwt_write_header(AVFormatContext *avf)
Definition: rcwtenc.c:80
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:94
AVFMT_GLOBALHEADER
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition: avformat.h:478
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
RCWTContext
Definition: rcwtdec.c:40
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
write_packet
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
Definition: ffmpeg_mux.c:209
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:491
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:348