FFmpeg
|
fbdev.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/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "avdevice.h"
#include "libavformat/internal.h"
Include dependency graph for fbdev.c:
Go to the source code of this file.
Data Structures | |
struct | rgb_pixfmt_map_entry |
struct | FBDevContext |
Macros | |
#define | OFFSET(x) offsetof(FBDevContext, x) |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
Functions | |
static enum AVPixelFormat | get_pixfmt_from_fb_varinfo (struct fb_var_screeninfo *varinfo) |
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) |
Variables | |
static const struct rgb_pixfmt_map_entry | rgb_pixfmt_map [] |
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.
Definition in file fbdev.c.
Macro Definition Documentation
#define DEC AV_OPT_FLAG_DECODING_PARAM |
#define OFFSET | ( | x | ) | offsetof(FBDevContext, x) |
Function Documentation
|
static |
|
static |
|
static |
|
static |
Definition at line 64 of file fbdev.c.
Referenced by fbdev_read_header().
Variable Documentation
|
static |
Initial value:
= {
.class_name = "fbdev indev",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
AVInputFormat ff_fbdev_demuxer |
Initial value:
= {
.name = "fbdev",
.long_name = NULL_IF_CONFIG_SMALL("Linux framebuffer"),
.priv_data_size = sizeof(FBDevContext),
.flags = AVFMT_NOFILE,
.priv_class = &fbdev_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: fbdev.c:80
static int fbdev_read_packet(AVFormatContext *avctx, AVPacket *pkt)
Definition: fbdev.c:184
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:345
|
static |
Initial value:
= {
{ 32, 0, 8, 16, 24, AV_PIX_FMT_RGBA },
{ 32, 16, 8, 0, 24, AV_PIX_FMT_BGRA },
{ 32, 8, 16, 24, 0, AV_PIX_FMT_ARGB },
{ 32, 3, 2, 8, 0, AV_PIX_FMT_ABGR },
{ 24, 0, 8, 16, 0, AV_PIX_FMT_RGB24 },
{ 24, 16, 8, 0, 0, AV_PIX_FMT_BGR24 },
}
Generated on Mon Nov 18 2024 06:52:06 for FFmpeg by 1.8.11