mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
sub: better alpha blending when rendering to alpha surfaces
This actually treats destination alpha correctly, and gives much better results than before. I don't know if this is perfectly correct yet, though. Slight difference with vo_opengl behavior suggests it might not be. Note that this does not affect VOs with true alpha support. vo_opengl does not use this code at all, and does the alpha calculations in OpenGL instead.
This commit is contained in:
@@ -49,6 +49,7 @@ static const struct {
|
||||
{IMGFMT_BGR4, AV_PIX_FMT_BGR4},
|
||||
{IMGFMT_PAL8, AV_PIX_FMT_PAL8},
|
||||
{IMGFMT_GBRP, AV_PIX_FMT_GBRP},
|
||||
{IMGFMT_GBRAP, AV_PIX_FMT_GBRAP},
|
||||
{IMGFMT_YUYV, AV_PIX_FMT_YUYV422},
|
||||
{IMGFMT_UYVY, AV_PIX_FMT_UYVY422},
|
||||
{IMGFMT_NV12, AV_PIX_FMT_NV12},
|
||||
|
||||
Reference in New Issue
Block a user