FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fbdev_dec.c File Reference

Linux framebuffer input device, inspired by code from fbgrab.c by Gunnar Monell. More...

#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <time.h>
#include <linux/fb.h>
#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavformat/internal.h"
#include "avdevice.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 DEC   AV_OPT_FLAG_DECODING_PARAM
 

Functions

static av_cold int fbdev_read_header (AVFormatContext *avctx)
 
static int fbdev_read_packet (AVFormatContext *avctx, AVPacket *pkt)
 
static av_cold int fbdev_read_close (AVFormatContext *avctx)
 
static int fbdev_get_device_list (AVFormatContext *s, AVDeviceInfoList *device_list)
 

Variables

static const AVOption options []
 
static const AVClass fbdev_class
 
AVInputFormat ff_fbdev_demuxer
 

Detailed Description

Linux framebuffer input device, inspired by code from fbgrab.c by Gunnar Monell.

See Also
http://linux-fbdev.sourceforge.net/

Definition in file fbdev_dec.c.

Macro Definition Documentation

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

Definition at line 213 of file fbdev_dec.c.

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 214 of file fbdev_dec.c.

Function Documentation

static av_cold int fbdev_read_header ( AVFormatContext avctx)
static

Definition at line 65 of file fbdev_dec.c.

static int fbdev_read_packet ( AVFormatContext avctx,
AVPacket pkt 
)
static

Definition at line 145 of file fbdev_dec.c.

static av_cold int fbdev_read_close ( AVFormatContext avctx)
static

Definition at line 198 of file fbdev_dec.c.

static int fbdev_get_device_list ( AVFormatContext s,
AVDeviceInfoList device_list 
)
static

Definition at line 208 of file fbdev_dec.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "framerate","", OFFSET(framerate_q), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, 0, DEC },
{ NULL },
}

Definition at line 215 of file fbdev_dec.c.

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

Definition at line 220 of file fbdev_dec.c.

AVInputFormat ff_fbdev_demuxer
Initial value:
= {
.name = "fbdev",
.long_name = NULL_IF_CONFIG_SMALL("Linux framebuffer"),
.priv_data_size = sizeof(FBDevContext),
.priv_class = &fbdev_class,
}

Definition at line 228 of file fbdev_dec.c.