You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
990 B
24 lines
990 B
#ifndef RENDER_DRM_FORMAT_SET_H
|
|
#define RENDER_DRM_FORMAT_SET_H
|
|
|
|
#include <wlr/render/drm_format_set.h>
|
|
|
|
void wlr_drm_format_init(struct wlr_drm_format *fmt, uint32_t format);
|
|
bool wlr_drm_format_has(const struct wlr_drm_format *fmt, uint64_t modifier);
|
|
bool wlr_drm_format_add(struct wlr_drm_format *fmt, uint64_t modifier);
|
|
bool wlr_drm_format_copy(struct wlr_drm_format *dst, const struct wlr_drm_format *src);
|
|
/**
|
|
* Intersect modifiers for two DRM formats. The `dst` must be zeroed or initialized
|
|
* with other state being replaced.
|
|
*
|
|
* 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.
|
|
*/
|
|
bool wlr_drm_format_intersect(struct wlr_drm_format *dst,
|
|
const struct wlr_drm_format *a, const struct wlr_drm_format *b);
|
|
|
|
bool wlr_drm_format_set_copy(struct wlr_drm_format_set *dst, const struct wlr_drm_format_set *src);
|
|
|
|
#endif
|