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:
Quantum 2021-12-28 02:52:37 -05:00 committed by Simon Ser
parent 3febd04acd
commit d0c6b7f3a9
1 changed files with 8 additions and 0 deletions

View File

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