diff options
author | wm4 <wm4@nowhere> | 2012-10-05 20:37:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-16 07:26:32 +0200 |
commit | 44c62a685222f2b018a480246c2946d3e3e7529c (patch) | |
tree | 0c603432a889a4c6c549d8ee0f5cb5222586b7a0 /sub/sub.h | |
parent | 3ad918bbc62449759bbf97f6a809ebdde27ad59e (diff) | |
download | mpv-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |