VAAPI-X11: Workaround for alpha/chroma keying with Subtitles.
The VDPAU wrapper for VAAPI does not support alpha or chroma key setting for subpictures. However the VDPAU image manipulation functions do handle transparency. This results in every subpicture to have a green transparent background. Overriding this with freetype variables does not seem to have any effect whatsoever in this combination of VAAPI and VDPAU wrapper. The workaround is to remove the green value of every pixel whenever this pixel is not completly opaque. This seems to work (tm), expect side-effects however. It is best to remove this code when alpha and chroma keying for subtitles work properly with VAAPI and VDPAU or XvBA. Untill then this workaround is sadly needed.
Showing
Please register or sign in to comment