2020-08-07 17:02:49 +00:00
|
|
|
#ifndef RENDER_DRM_FORMAT_SET_H
|
|
|
|
#define RENDER_DRM_FORMAT_SET_H
|
|
|
|
|
|
|
|
#include <wlr/render/drm_format_set.h>
|
|
|
|
|
2020-12-12 21:26:14 +00:00
|
|
|
struct wlr_drm_format *wlr_drm_format_create(uint32_t format);
|
2021-03-31 14:50:17 +00:00
|
|
|
bool wlr_drm_format_has(const struct wlr_drm_format *fmt, uint64_t modifier);
|
2020-12-12 21:26:14 +00:00
|
|
|
bool wlr_drm_format_add(struct wlr_drm_format **fmt_ptr, uint64_t modifier);
|
2020-08-07 17:02:49 +00:00
|
|
|
struct wlr_drm_format *wlr_drm_format_dup(const struct wlr_drm_format *format);
|
2020-11-25 14:58:37 +00:00
|
|
|
/**
|
|
|
|
* Intersect modifiers for two DRM formats.
|
|
|
|
*
|
|
|
|
* Both arguments must have the same format field. If the formats aren't
|
|
|
|
* compatible, NULL is returned. If either format doesn't support any modifier,
|
|
|
|
* a format that doesn't support any modifier is returned.
|
|
|
|
*/
|
|
|
|
struct wlr_drm_format *wlr_drm_format_intersect(
|
|
|
|
const struct wlr_drm_format *a, const struct wlr_drm_format *b);
|
2020-08-07 17:02:49 +00:00
|
|
|
|
|
|
|
#endif
|