All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fbdev_enc.c File Reference
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/fb.h>
#include "libavutil/pixdesc.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavformat/avformat.h"
#include "fbdev_common.h"
#include "avdevice.h"

Go to the source code of this file.

Data Structures

struct  FBDevContext


#define OFFSET(x)   offsetof(FBDevContext, x)


static av_cold int fbdev_write_header (AVFormatContext *h)
static int fbdev_write_packet (AVFormatContext *h, AVPacket *pkt)
static av_cold int fbdev_write_trailer (AVFormatContext *h)
static int fbdev_get_device_list (AVFormatContext *s, AVDeviceInfoList *device_list)


static const AVOption options []
static const AVClass fbdev_class
AVOutputFormat ff_fbdev_muxer

Macro Definition Documentation

#define OFFSET (   x)    offsetof(FBDevContext, x)

Definition at line 192 of file fbdev_enc.c.


Definition at line 193 of file fbdev_enc.c.

Function Documentation

static av_cold int fbdev_write_header ( AVFormatContext h)

Definition at line 44 of file fbdev_enc.c.

static int fbdev_write_packet ( AVFormatContext h,
AVPacket pkt 

Definition at line 101 of file fbdev_enc.c.

static av_cold int fbdev_write_trailer ( AVFormatContext h)

Definition at line 179 of file fbdev_enc.c.

static int fbdev_get_device_list ( AVFormatContext s,
AVDeviceInfoList device_list 

Definition at line 187 of file fbdev_enc.c.

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "xoffset", "set x coordinate of top left corner", OFFSET(xoffset), AV_OPT_TYPE_INT, {.i64 = 0}, INT_MIN, INT_MAX, ENC },
{ "yoffset", "set y coordinate of top left corner", OFFSET(yoffset), AV_OPT_TYPE_INT, {.i64 = 0}, INT_MIN, INT_MAX, ENC },
{ NULL }
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: fbdev_enc.c:192
#define ENC
Definition: fbdev_enc.c:193

Definition at line 194 of file fbdev_enc.c.

const AVClass fbdev_class
Initial value:
= {
.class_name = "fbdev outdev",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:86
static const AVOption options[]
Definition: fbdev_enc.c:194

Definition at line 200 of file fbdev_enc.c.

AVOutputFormat ff_fbdev_muxer
Initial value:
= {
.name = "fbdev",
.long_name = NULL_IF_CONFIG_SMALL("Linux framebuffer"),
.priv_data_size = sizeof(FBDevContext),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_RAWVIDEO,
.priv_class = &fbdev_class,
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:671
static int flags
Definition: log.c:57
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
static av_cold int fbdev_write_header(AVFormatContext *h)
Definition: fbdev_enc.c:44
Format does not need / have any timestamps.
Definition: avformat.h:486
static av_cold int fbdev_write_trailer(AVFormatContext *h)
Definition: fbdev_enc.c:179
static int fbdev_get_device_list(AVFormatContext *s, AVDeviceInfoList *device_list)
Definition: fbdev_enc.c:187
static int fbdev_write_packet(AVFormatContext *h, AVPacket *pkt)
Definition: fbdev_enc.c:101
static int get_device_list(AVOpenCLDeviceList *device_list)
Definition: opencl.c:189
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:478
Format allows variable fps.
Definition: avformat.h:489
static const AVClass fbdev_class
Definition: fbdev_enc.c:200
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337

Definition at line 208 of file fbdev_enc.c.