FFmpeg  2.1.1
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

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

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,
}
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:347
static av_cold int write_header(AVFormatContext *s1)
Definition: v4l2enc.c:28
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:151
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:93
static int flags
Definition: cpu.c:45
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:85

Definition at line 100 of file v4l2enc.c.