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


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


static const AVClass v4l2_class
AVOutputFormat ff_v4l2_muxer

Function Documentation

static av_cold int write_header ( AVFormatContext s1)

Definition at line 29 of file v4l2enc.c.

static int write_packet ( AVFormatContext s1,
AVPacket pkt 

Definition at line 86 of file v4l2enc.c.

static int write_trailer ( AVFormatContext s1)

Definition at line 94 of file v4l2enc.c.

Variable Documentation

const AVClass v4l2_class
Initial value:
= {
.class_name = "V4L2 outdev",
.item_name = av_default_item_name,
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191

Definition at line 101 of file v4l2enc.c.

AVOutputFormat ff_v4l2_muxer
Initial value:
= {
.name = "video4linux2,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
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
#define flags(name, subs,...)
Definition: cbs_av1.c:596
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.