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

Go to the source code of this file.

Data Structures

struct  IVFEncContext
 

Functions

static int ivf_write_header (AVFormatContext *s)
 
static int ivf_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ivf_write_trailer (AVFormatContext *s)
 
static int ivf_check_bitstream (struct AVFormatContext *s, const AVPacket *pkt)
 

Variables

static const AVCodecTag codec_ivf_tags []
 
AVOutputFormat ff_ivf_muxer
 

Function Documentation

◆ ivf_write_header()

static int ivf_write_header ( AVFormatContext s)
static

Definition at line 29 of file ivfenc.c.

◆ ivf_write_packet()

static int ivf_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 61 of file ivfenc.c.

◆ ivf_write_trailer()

static int ivf_write_trailer ( AVFormatContext s)
static

Definition at line 77 of file ivfenc.c.

◆ ivf_check_bitstream()

static int ivf_check_bitstream ( struct AVFormatContext s,
const AVPacket pkt 
)
static

Definition at line 93 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 106 of file ivfenc.c.

◆ ff_ivf_muxer

AVOutputFormat ff_ivf_muxer
Initial value:
= {
.priv_data_size = sizeof(IVFEncContext),
.name = "ivf",
.long_name = NULL_IF_CONFIG_SMALL("On2 IVF"),
.extensions = "ivf",
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_VP8,
.write_header = ivf_write_header,
.write_packet = ivf_write_packet,
.write_trailer = ivf_write_trailer,
.check_bitstream = ivf_check_bitstream,
.codec_tag = (const AVCodecTag* const []){ codec_ivf_tags, 0 },
}

Definition at line 113 of file ivfenc.c.

ivf_write_trailer
static int ivf_write_trailer(AVFormatContext *s)
Definition: ivfenc.c:77
MKTAG
#define MKTAG(a, b, c, d)
Definition: common.h:366
codec_ivf_tags
static const AVCodecTag codec_ivf_tags[]
Definition: ivfenc.c:106
name
const char * name
Definition: avisynth_c.h:867
AVCodecTag
Definition: internal.h:44
AV_CODEC_ID_VP9
@ AV_CODEC_ID_VP9
Definition: avcodec.h:386
IVFEncContext
Definition: ivfenc.c:24
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: avcodec.h:443
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:188
ivf_write_header
static int ivf_write_header(AVFormatContext *s)
Definition: ivfenc.c:29
ivf_check_bitstream
static int ivf_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
Definition: ivfenc.c:93
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: avcodec.h:216
ivf_write_packet
static int ivf_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ivfenc.c:61
AV_CODEC_ID_VP8
@ AV_CODEC_ID_VP8
Definition: avcodec.h:358