#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/time.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"
Go to the source code of this file.
Data Structures | |
struct | rgb_pixfmt_map_entry |
struct | FBDevContext |
Defines | |
#define | OFFSET(x) offsetof(FBDevContext, x) |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
Functions | |
static enum PixelFormat | get_pixfmt_from_fb_varinfo (struct fb_var_screeninfo *varinfo) |
static av_cold int | fbdev_read_header (AVFormatContext *avctx, AVFormatParameters *ap) |
static int | fbdev_read_packet (AVFormatContext *avctx, AVPacket *pkt) |
static av_cold int | fbdev_read_close (AVFormatContext *avctx) |
Variables | |
static struct rgb_pixfmt_map_entry | rgb_pixfmt_map [] |
static const AVOption | options [] |
static const AVClass | fbdev_class |
AVInputFormat | ff_fbdev_demuxer |
Definition in file fbdev.c.
#define OFFSET | ( | x | ) | offsetof(FBDevContext, x) |
static av_cold int fbdev_read_close | ( | AVFormatContext * | avctx | ) | [static] |
static av_cold int fbdev_read_header | ( | AVFormatContext * | avctx, | |
AVFormatParameters * | ap | |||
) | [static] |
static int fbdev_read_packet | ( | AVFormatContext * | avctx, | |
AVPacket * | pkt | |||
) | [static] |
static enum PixelFormat get_pixfmt_from_fb_varinfo | ( | struct fb_var_screeninfo * | varinfo | ) | [static] |
const AVClass fbdev_class [static] |
Initial value:
{ .class_name = "fbdev indev", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, }
Initial value:
{ .name = "fbdev", .long_name = NULL_IF_CONFIG_SMALL("Linux framebuffer"), .priv_data_size = sizeof(FBDevContext), .read_header = fbdev_read_header, .read_packet = fbdev_read_packet, .read_close = fbdev_read_close, .flags = AVFMT_NOFILE, .priv_class = &fbdev_class, }
struct rgb_pixfmt_map_entry rgb_pixfmt_map[] [static] |
Initial value:
{ { 32, 0, 8, 16, 24, PIX_FMT_RGBA }, { 32, 16, 8, 0, 24, PIX_FMT_BGRA }, { 32, 8, 16, 24, 0, PIX_FMT_ARGB }, { 32, 3, 2, 8, 0, PIX_FMT_ABGR }, { 24, 0, 8, 16, 0, PIX_FMT_RGB24 }, { 24, 16, 8, 0, 0, PIX_FMT_BGR24 }, }