mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 06:35:57 +01:00
Implement xdpw_format_pw_strip_alpha for 10-bit colour
This was missed in the original PR adding support for 10-bit colour.
This commit is contained in:
parent
3febd04acd
commit
d0c6b7f3a9
1 changed files with 8 additions and 0 deletions
|
@ -108,6 +108,14 @@ enum spa_video_format xdpw_format_pw_strip_alpha(enum spa_video_format format) {
|
|||
return SPA_VIDEO_FORMAT_RGBx;
|
||||
case SPA_VIDEO_FORMAT_ARGB:
|
||||
return SPA_VIDEO_FORMAT_xRGB;
|
||||
case SPA_VIDEO_FORMAT_ARGB_210LE:
|
||||
return SPA_VIDEO_FORMAT_xRGB_210LE;
|
||||
case SPA_VIDEO_FORMAT_ABGR_210LE:
|
||||
return SPA_VIDEO_FORMAT_xBGR_210LE;
|
||||
case SPA_VIDEO_FORMAT_RGBA_102LE:
|
||||
return SPA_VIDEO_FORMAT_RGBx_102LE;
|
||||
case SPA_VIDEO_FORMAT_BGRA_102LE:
|
||||
return SPA_VIDEO_FORMAT_BGRx_102LE;
|
||||
default:
|
||||
return SPA_VIDEO_FORMAT_UNKNOWN;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue