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

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; return SPA_VIDEO_FORMAT_RGBx;
case SPA_VIDEO_FORMAT_ARGB: case SPA_VIDEO_FORMAT_ARGB:
return SPA_VIDEO_FORMAT_xRGB; 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: default:
return SPA_VIDEO_FORMAT_UNKNOWN; return SPA_VIDEO_FORMAT_UNKNOWN;
} }