render/pixel-format: add function to determine YCbCr from drm fourcc

This commit is contained in:
Steve Williams 2026-01-31 15:00:57 +04:00
parent 82d5ffb09e
commit 7ca85d7a21
2 changed files with 70 additions and 0 deletions

View file

@ -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