bjin / mpv-prescalers

prescalers for mpv, as user shaders
GNU Lesser General Public License v3.0
355 stars 34 forks source link

Broken alpha channel when using ravu-*-rgb on formats with alpha channels #45

Closed haasn closed 2 years ago

haasn commented 2 years ago

Using e.g. ravu-r3-rgb together with an RGBA source that has an alpha channel, RAVU currently produces very broken output. This is down to a combination of two issues:

  1. RAVU always outputs the alpha channel as 0.0, when it should really output something like 1.0 instead. This would be a marginal improvement over the status quo by making RAVU effectively perform alpha blending against black.

  2. Even better would be to pass-through the alpha channel of, say, the center pixel, untouched. (Introduces slight drift but whatever, better than completely breaking alpha handling)

hooke007 commented 2 years ago

ravu-*-yuv also broken in vo_gpu-next