FFmpeg
Data Structures | Functions | Variables
v4l2enc.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/pixdesc.h"
#include "libavformat/avformat.h"
#include "v4l2-common.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
 
const AVOutputFormat ff_v4l2_muxer
 

Function Documentation

◆ write_header()

static av_cold int write_header ( AVFormatContext s1)
static

Definition at line 31 of file v4l2enc.c.

◆ write_packet()

static int write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 92 of file v4l2enc.c.

◆ write_trailer()

static int write_trailer ( AVFormatContext s1)
static

Definition at line 100 of file v4l2enc.c.

Referenced by segment_end().

Variable Documentation

◆ v4l2_class

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

Definition at line 107 of file v4l2enc.c.

◆ ff_v4l2_muxer

const 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,
}

Definition at line 114 of file v4l2enc.c.

v4l2_class
static const AVClass v4l2_class
Definition: v4l2enc.c:107
AV_CODEC_ID_RAWVIDEO
@ AV_CODEC_ID_RAWVIDEO
Definition: codec_id.h:65
write_header
static av_cold int write_header(AVFormatContext *s1)
Definition: v4l2enc.c:31
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
V4L2Context
Definition: v4l2_context.h:37
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:100
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
Definition: log.h:40
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:115
AVFMT_NOFILE
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:470
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
write_packet
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:92