FFmpeg
Functions | Variables
yuv4mpegenc.c File Reference
#include "libavutil/frame.h"
#include "libavutil/pixdesc.h"
#include "avformat.h"
#include "internal.h"
#include "mux.h"
#include "yuv4mpeg.h"

Go to the source code of this file.

Functions

static int yuv4_write_header (AVFormatContext *s)
 
static int yuv4_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int yuv4_init (AVFormatContext *s)
 

Variables

const FFOutputFormat ff_yuv4mpegpipe_muxer
 

Function Documentation

◆ yuv4_write_header()

static int yuv4_write_header ( AVFormatContext s)
static

Definition at line 29 of file yuv4mpegenc.c.

◆ yuv4_write_packet()

static int yuv4_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 181 of file yuv4mpegenc.c.

◆ yuv4_init()

static int yuv4_init ( AVFormatContext s)
static

Definition at line 222 of file yuv4mpegenc.c.

Variable Documentation

◆ ff_yuv4mpegpipe_muxer

const FFOutputFormat ff_yuv4mpegpipe_muxer
Initial value:
= {
.p.name = "yuv4mpegpipe",
.p.long_name = NULL_IF_CONFIG_SMALL("YUV4MPEG pipe"),
.p.extensions = "y4m",
.p.audio_codec = AV_CODEC_ID_NONE,
.p.video_codec = AV_CODEC_ID_WRAPPED_AVFRAME,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.init = yuv4_init,
.write_header = yuv4_write_header,
.write_packet = yuv4_write_packet,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH,
}

Definition at line 291 of file yuv4mpegenc.c.

yuv4_init
static int yuv4_init(AVFormatContext *s)
Definition: yuv4mpegenc.c:222
yuv4_write_packet
static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: yuv4mpegenc.c:181
AV_CODEC_ID_WRAPPED_AVFRAME
@ AV_CODEC_ID_WRAPPED_AVFRAME
Passthrough codec, AVFrames wrapped in AVPacket.
Definition: codec_id.h:608
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
yuv4_write_header
static int yuv4_write_header(AVFormatContext *s)
Definition: yuv4mpegenc.c:29
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