pixel-format
Header: kmsroots/pixel-format.h
Table of contents (click to go)
Macros
Enums
Unions
Structs
Functions
Function Pointers
API Documentation
kmr_pixel_format_conv_type
-
enum kmr_pixel_format_conv_type
-
KMR_PIXEL_FORMAT_CONV_GBM_TO_VK
-
KMR_PIXEL_FORMAT_CONV_GBM_TO_DRM
-
KMR_PIXEL_FORMAT_CONV_VK_TO_GBM
-
KMR_PIXEL_FORMAT_CONV_VK_TO_DRM
-
KMR_PIXEL_FORMAT_CONV_DRM_TO_VK
-
KMR_PIXEL_FORMAT_CONV_DRM_TO_GBM
Specifies the type of pixel format name conversion to perform. Values may not be bitwise or’d together.
KMR_PIXEL_FORMAT_CONV_GBM_TO_VK- Convert GBM format to VkFormat
KMR_PIXEL_FORMAT_CONV_GBM_TO_DRM- Convert GBM format to DRM format
KMR_PIXEL_FORMAT_CONV_VK_TO_GBM- Convert VkFormat to GBM format
KMR_PIXEL_FORMAT_CONV_VK_TO_DRM- Convert VkFormat to DRM format
KMR_PIXEL_FORMAT_CONV_DRM_TO_VK- Convert DRM format to VkFormat
KMR_PIXEL_FORMAT_CONV_DRM_TO_GBM- Convert DRM Format to GBM format
-
KMR_PIXEL_FORMAT_CONV_GBM_TO_VK
kmr_pixel_format_convert_name
-
uint32_t kmr_pixel_format_convert_name(kmr_pixel_format_conv_type conv, uint32_t format);
Converts the unsigned 32bit integer name given to one pixel format to the unsigned 32bit name of another. GBM format name to VK format name. The underlying buffer will be in the same pixel format. Makes it easier to determine to format to create VkImage’s with given the format of the GBM buffer object.
- Parameters:
- convEnum constant specifying the format to convert from then to.formatUnsigned 32bit integer representing the type of pixel format.
- Returns:
- on success: GBM/DRM/VK format (unsigned 32bit integer)on failure: UINT32_MAX
kmr_pixel_format_type
-
enum kmr_pixel_format_type
-
KMR_PIXEL_FORMAT_VK
Specifies the type of pixel format to choose from which API (DRM/GBM/VK)
KMR_PIXEL_FORMAT_VK- Use Vkformat for operations
-
KMR_PIXEL_FORMAT_VK
kmr_pixel_format_get_name
-
const char *kmr_pixel_format_get_name(kmr_pixel_format_type formatType, uint32_t format);
- Parameters:
- formatTypeEnum constant specifying the API (GBM/DRM/VK) format name.formatUnsigned 32bit integer representing the type of pixel format.
- Returns:
on success: GBM/DRM/VK format in string form on failure: NULL