mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-06 04:06:11 -05:00
render/pixel-format: add function to determine YCbCr from drm fourcc
This commit is contained in:
parent
82d5ffb09e
commit
7ca85d7a21
2 changed files with 70 additions and 0 deletions
|
|
@ -63,4 +63,9 @@ enum wl_shm_format convert_drm_format_to_wl_shm(uint32_t fmt);
|
|||
*/
|
||||
bool pixel_format_has_alpha(uint32_t fmt);
|
||||
|
||||
/**
|
||||
* Return true if the DRM FourCC fmt belongs to a YCbCr colorspace family, false otherwise.
|
||||
*/
|
||||
bool pixel_format_is_ycbcr(uint32_t fmt);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue