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 29 of file v4l2enc.c.

static int write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 86 of file v4l2enc.c.

Referenced by avio_alloc_context(), and ffio_init_context().

static int write_trailer ( AVFormatContext s1)
static

Definition at line 94 of file v4l2enc.c.

Variable Documentation

const AVClass v4l2_class
static
Initial value:
= {
.class_name = "V4L2 outdev",
.item_name = av_default_item_name,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:62
av_default_item_name

Definition at line 101 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,
}
static const AVClass v4l2_class
Definition: v4l2enc.c:101
static av_cold int write_header(AVFormatContext *s1)
Definition: v4l2enc.c:29
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
static int flags
Definition: cpu.c:47
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:465
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:86

Definition at line 108 of file v4l2enc.c.