FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
v4l2enc.c File Reference
#include "v4l2-common.h"
#include "avdevice.h"

Go to the source code of this file.

Data Structures

struct  V4L2Context
 

Functions

static av_cold int write_header (AVFormatContext *s1)
 
static int write_packet (AVFormatContext *s1, AVPacket *pkt)
 
static int write_trailer (AVFormatContext *s1)
 

Variables

static const AVClass v4l2_class
 
AVOutputFormat ff_v4l2_muxer
 

Function Documentation

static av_cold int write_header ( AVFormatContext s1)
static

Definition at line 28 of file v4l2enc.c.

static int write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 85 of file v4l2enc.c.

Referenced by avio_alloc_context(), and ffio_init_context().

static int write_trailer ( AVFormatContext s1)
static

Definition at line 93 of file v4l2enc.c.

Variable Documentation

const AVClass v4l2_class
static
Initial value:
= {
.class_name = "V4L2 outdev",
.item_name = av_default_item_name,
}

Definition at line 100 of file v4l2enc.c.

AVOutputFormat ff_v4l2_muxer
Initial value:
= {
.name = "v4l2",
.long_name = NULL_IF_CONFIG_SMALL("Video4Linux2 output device"),
.priv_data_size = sizeof(V4L2Context),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_RAWVIDEO,
.priv_class = &v4l2_class,
}

Definition at line 107 of file v4l2enc.c.