summaryrefslogtreecommitdiffstats
path: root/sub/sub.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-05 20:37:16 +0200
committerwm4 <wm4@nowhere>2012-10-16 07:26:32 +0200
commit44c62a685222f2b018a480246c2946d3e3e7529c (patch)
tree0c603432a889a4c6c549d8ee0f5cb5222586b7a0 /sub/sub.h
parent3ad918bbc62449759bbf97f6a809ebdde27ad59e (diff)
downloadmpv-44c62a685222f2b018a480246c2946d3e3e7529c.tar.bz2
mpv-44c62a685222f2b018a480246c2946d3e3e7529c.tar.xz
sub: switch to premultiplied alpha
Fixes problems with ugly borders. Note that at least in the DVD sub case, we could have just set all transparent pixels to black to solve this. vo_direct3d.c change untested, because mingw is a miserable pile of crap.
Diffstat (limited to 'sub/sub.h')
-rw-r--r--sub/sub.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sub.h b/sub/sub.h
index 8649018029..649f196414 100644
--- a/sub/sub.h
+++ b/sub/sub.h
@@ -30,7 +30,7 @@ struct sub_render_params;
enum sub_bitmap_format {
SUBBITMAP_EMPTY = 0,// no bitmaps; always has num_parts==0
SUBBITMAP_LIBASS, // A8, with a per-surface blend color (libass.color)
- SUBBITMAP_RGBA, // B8G8R8A8 (MSB=A, LSB=B), can be scaled
+ SUBBITMAP_RGBA, // B8G8R8A8 (MSB=A, LSB=B), scaled, premultiplied alpha
SUBBITMAP_INDEXED, // scaled, bitmap points to osd_bmp_indexed
SUBBITMAP_OLD_PLANAR, // like previous, but bitmap points to old_osd_planar