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

Go to the source code of this file.

Data Structures

struct  IVFEncContext
 

Functions

static int ivf_init (AVFormatContext *s)
 
static int ivf_write_header (AVFormatContext *s)
 
static int ivf_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ivf_write_trailer (AVFormatContext *s)
 

Variables

static const AVCodecTag codec_ivf_tags []
 
const FFOutputFormat ff_ivf_muxer
 

Function Documentation

◆ ivf_init()

static int ivf_init ( AVFormatContext s)
static

Definition at line 30 of file ivfenc.c.

◆ ivf_write_header()

static int ivf_write_header ( AVFormatContext s)
static

Definition at line 54 of file ivfenc.c.

◆ ivf_write_packet()

static int ivf_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 75 of file ivfenc.c.

◆ ivf_write_trailer()

static int ivf_write_trailer ( AVFormatContext s)
static

Definition at line 90 of file ivfenc.c.

Variable Documentation

◆ codec_ivf_tags

const AVCodecTag codec_ivf_tags[]
static
Initial value:
= {
{ AV_CODEC_ID_VP8, MKTAG('V', 'P', '8', '0') },
{ AV_CODEC_ID_VP9, MKTAG('V', 'P', '9', '0') },
{ AV_CODEC_ID_AV1, MKTAG('A', 'V', '0', '1') },
}

Definition at line 107 of file ivfenc.c.

◆ ff_ivf_muxer

const FFOutputFormat ff_ivf_muxer
Initial value:
= {
.p.name = "ivf",
.p.long_name = NULL_IF_CONFIG_SMALL("On2 IVF"),
.p.extensions = "ivf",
.p.audio_codec = AV_CODEC_ID_NONE,
.p.video_codec = AV_CODEC_ID_VP8,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.p.codec_tag = (const AVCodecTag* const []){ codec_ivf_tags, 0 },
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH,
.priv_data_size = sizeof(IVFEncContext),
}

Definition at line 114 of file ivfenc.c.

ivf_write_trailer
static int ivf_write_trailer(AVFormatContext *s)
Definition: ivfenc.c:90
ivf_init
static int ivf_init(AVFormatContext *s)
Definition: ivfenc.c:30
codec_ivf_tags
static const AVCodecTag codec_ivf_tags[]
Definition: ivfenc.c:107
AVCodecTag
Definition: internal.h:42
AV_CODEC_ID_VP9
@ AV_CODEC_ID_VP9
Definition: codec_id.h:222
IVFEncContext
Definition: ivfenc.c:25
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:284
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:101
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
ivf_write_header
static int ivf_write_header(AVFormatContext *s)
Definition: ivfenc.c:54
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
write_packet
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
Definition: ffmpeg_mux.c:209
ivf_write_packet
static int ivf_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ivfenc.c:75
AV_CODEC_ID_VP8
@ AV_CODEC_ID_VP8
Definition: codec_id.h:192
MKTAG
#define MKTAG(a, b, c, d)
Definition: macros.h:55
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:348