libavdevice/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/time.h>
#include <sys/mman.h>
#include <time.h>
#include <linux/fb.h>
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavformat/avformat.h"

Go to the source code of this file.

Data Structures

struct  rgb_pixfmt_map_entry
struct  FBDevContext

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 []
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.c.


Function Documentation

static av_cold int fbdev_read_close ( AVFormatContext avctx  )  [static]

Definition at line 234 of file fbdev.c.

static av_cold int fbdev_read_header ( AVFormatContext avctx,
AVFormatParameters ap 
) [static]

Definition at line 93 of file fbdev.c.

static int fbdev_read_packet ( AVFormatContext avctx,
AVPacket pkt 
) [static]

Definition at line 181 of file fbdev.c.

static enum PixelFormat get_pixfmt_from_fb_varinfo ( struct fb_var_screeninfo *  varinfo  )  [static]

Definition at line 61 of file fbdev.c.

Referenced by fbdev_read_header().


Variable Documentation

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,
}

Definition at line 244 of file fbdev.c.

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 },
}

Definition at line 50 of file fbdev.c.


Generated on Wed May 23 03:02:49 2012 for FFmpeg by  doxygen 1.5.6