|
vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
|
DRM Buffer. More...
#include <cstdint>#include <fcntl.h>#include <sys/mman.h>#include <libavutil/frame.h>#include <libavutil/hwcontext_drm.h>#include <drm_fourcc.h>#include <xf86drm.h>#include <xf86drmMode.h>#include "drmbuffer.h"#include "logger.h"#include "pool.h"Go to the source code of this file.
Macros | |
| #define | ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
Functions | |
| const struct format_info * | FindFormat (uint32_t format) |
| Find infos for the given pixel format. | |
Variables | |
| static const struct format_info | format_info_array [] |
| Holds the infos of a pixel format. | |
DRM Buffer.
This files defines cDrmBuffer, which is a class used to describe a DRM buffer, keeping framebuffer and prime handles to be used by the kernel display interface.
Definition in file drmbuffer.cpp.
Definition at line 232 of file drmbuffer.cpp.
| const struct format_info * FindFormat | ( | uint32_t | format | ) |
Find infos for the given pixel format.
| format | pixel format |
Definition at line 241 of file drmbuffer.cpp.
References ARRAY_SIZE, format_info::format, and format_info_array.
Referenced by cDrmBuffer::Setup().
|
static |
Holds the infos of a pixel format.
Each entry describes a format in the following matter: { uint32_t format, const char *fourcc, uint8_t num_planes, struct format_plane_info planes[4] }
The format_plane_info is: { uint8_t bitspp, uint8_t xsub, uint8_t ysub, }
Definition at line 226 of file drmbuffer.cpp.
Referenced by FindFormat().