summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-24 14:43:23 +0100
committerwm4 <wm4@nowhere>2015-12-24 14:43:23 +0100
commit6bec6ac55828495356e3498dc52294e28c38c3c1 (patch)
treeb4e3574ad564d40ac70a5516a22c7c31fd72faae /video/fmt-conversion.c
parent946bd52a1d1eb561ff8bb516ef6efcd02ca3ea1e (diff)
downloadmpv-6bec6ac55828495356e3498dc52294e28c38c3c1.tar.bz2
mpv-6bec6ac55828495356e3498dc52294e28c38c3c1.tar.xz
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.
Diffstat (limited to 'video/fmt-conversion.c')
-rw-r--r--video/fmt-conversion.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c
index 6482f5429f..71cd044169 100644
--- a/video/fmt-conversion.c
+++ b/video/fmt-conversion.c
@@ -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},