• Jean-Paul Saman's avatar
    VAAPI-X11: Workaround for alpha/chroma keying with Subtitles. · 6f1accc9
    Jean-Paul Saman authored
    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.
    6f1accc9
vaapi_x11.c 44.5 KB