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

Go to the source code of this file.

Data Structures

struct  FBDevContext
 

Macros

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

Functions

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)
 

Variables

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 186 of file fbdev_enc.c.

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 187 of file fbdev_enc.c.

Function Documentation

static av_cold int fbdev_write_header ( AVFormatContext h)
static

Definition at line 43 of file fbdev_enc.c.

static int fbdev_write_packet ( AVFormatContext h,
AVPacket pkt 
)
static

Definition at line 100 of file fbdev_enc.c.

static av_cold int fbdev_write_trailer ( AVFormatContext h)
static

Definition at line 178 of file fbdev_enc.c.

Variable Documentation

const AVOption options[]
static
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 }
}

Definition at line 188 of file fbdev_enc.c.

const AVClass fbdev_class
static
Initial value:
= {
.class_name = "fbdev outdev",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 194 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,
}

Definition at line 201 of file fbdev_enc.c.