mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
render/pixel_format: add pixel_format_get_opaque_substitute()
We'll soon move opaque substitutes outside of the format table. Prepare the work by introducing a separate function to get this piece of information.
This commit is contained in:
parent
f295d0322a
commit
2d95d8d292
4 changed files with 20 additions and 10 deletions
|
|
@ -68,4 +68,10 @@ bool pixel_format_has_alpha(uint32_t fmt);
|
|||
*/
|
||||
bool pixel_format_is_ycbcr(uint32_t fmt);
|
||||
|
||||
/**
|
||||
* Get the equivalent opaque variant of a format if it has an alpha channel,
|
||||
* DRM_FORMAT_INVALID otherwise.
|
||||
*/
|
||||
uint32_t pixel_format_get_opaque_substitute(uint32_t fmt);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue