FFmpeg
Data Structures | Functions | Variables
fbdev_common.c File Reference
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include "fbdev_common.h"
#include "libavutil/common.h"
#include "libavutil/file_open.h"
#include "libavutil/mem.h"
#include "avdevice.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 (void)
 
int ff_fbdev_get_device_list (AVDeviceInfoList *device_list)
 

Variables

static const struct rgb_pixfmt_map_entry rgb_pixfmt_map []
 

Function Documentation

◆ ff_get_pixfmt_from_fb_varinfo()

enum AVPixelFormat ff_get_pixfmt_from_fb_varinfo ( struct fb_var_screeninfo *  varinfo)

Definition at line 50 of file fbdev_common.c.

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

◆ ff_fbdev_default_device()

const char* ff_fbdev_default_device ( void  )

Definition at line 66 of file fbdev_common.c.

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

◆ ff_fbdev_get_device_list()

int ff_fbdev_get_device_list ( AVDeviceInfoList device_list)

Definition at line 74 of file fbdev_common.c.

Referenced by fbdev_get_device_list().

Variable Documentation

◆ rgb_pixfmt_map

const 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, 0, AV_PIX_FMT_RGB565 },
}

Definition at line 39 of file fbdev_common.c.

Referenced by ff_get_pixfmt_from_fb_varinfo().

AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:76
AV_PIX_FMT_BGRA
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:102
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:100
AV_PIX_FMT_ABGR
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:101
AV_PIX_FMT_RGB24
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:75
AV_PIX_FMT_ARGB
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:99
AV_PIX_FMT_RGB565
#define AV_PIX_FMT_RGB565
Definition: pixfmt.h:465