FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
fbdev_common.c File Reference
#include <stdlib.h>
#include "fbdev_common.h"
#include "libavutil/common.h"

Go to the source code of this file.

Data Structures

struct  rgb_pixfmt_map_entry
 

Functions

enum AVPixelFormat ff_get_pixfmt_from_fb_varinfo (struct fb_var_screeninfo *varinfo)
 
const char * ff_fbdev_default_device ()
 

Variables

static struct rgb_pixfmt_map_entry rgb_pixfmt_map []
 

Function Documentation

enum AVPixelFormat ff_get_pixfmt_from_fb_varinfo ( struct fb_var_screeninfo *  varinfo)

Definition at line 44 of file fbdev_common.c.

Referenced by fbdev_read_header(), fbdev_write_header(), and fbdev_write_packet().

const char* ff_fbdev_default_device ( void  )

Definition at line 60 of file fbdev_common.c.

Referenced by fbdev_write_header().

Variable Documentation

struct rgb_pixfmt_map_entry rgb_pixfmt_map[]
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 },
{ 16, 11, 5, 0, 16, AV_PIX_FMT_RGB565 },
}

Definition at line 33 of file fbdev_common.c.