|
vdr-plugin-softhddevice-drm-gles 1.4.0
|
DRM buffer class. More...

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. More... | |
Variables | |
| static const struct format_info | format_info_array [] |
| Infos of a pixel format. More... | |
DRM buffer class.
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.
License{AGPLv3
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.}
Definition in file drmbuffer.cpp.
| #define ARRAY_SIZE | ( | arr | ) | (sizeof(arr) / sizeof((arr)[0])) |
Definition at line 243 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 252 of file drmbuffer.cpp.
References ARRAY_SIZE, format_info::format, and format_info_array.
Referenced by cDrmBuffer::Setup().
|
static |
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 237 of file drmbuffer.cpp.
Referenced by FindFormat().