diff options
author | wm4 <wm4@nowhere> | 2013-08-09 22:59:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-12 00:50:28 +0200 |
commit | 689a25003fc8098e5fdfbb2faefc0e18365d3acb (patch) | |
tree | 1735960be82a994c75549e4c5c45a88f1bc9ea8c /sub/img_convert.h | |
parent | 8fe4790ec8945cae52ea7600312f54e1dbdf8162 (diff) | |
download | mpv-689a25003fc8098e5fdfbb2faefc0e18365d3acb.tar.bz2 mpv-689a25003fc8098e5fdfbb2faefc0e18365d3acb.tar.xz |
sub: support straight alpha additionally to premultiplied alpha
This is for VAAPI support. VAAPI does not support premultiplied alpha
for OSD. (Normally, we prefer premultiplied, because it has better
behavior on scaling.)
I'm not sure whether blending in the ASS->RGBA part is correct and I
didn't test it extensively.
Diffstat (limited to 'sub/img_convert.h')
-rw-r--r-- | sub/img_convert.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/img_convert.h b/sub/img_convert.h index 383a2c8003..3b739a4a38 100644 --- a/sub/img_convert.h +++ b/sub/img_convert.h @@ -12,7 +12,9 @@ struct osd_conv_cache *osd_conv_cache_new(void); // These functions convert from one OSD format to another. On success, they copy // the converted image data into c, and change imgs to point to the data. bool osd_conv_idx_to_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs); +bool osd_conv_idx_to_rgba_str(struct osd_conv_cache *c, struct sub_bitmaps *imgs); bool osd_conv_ass_to_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs); +bool osd_conv_ass_to_rgba_str(struct osd_conv_cache *c, struct sub_bitmaps *imgs); // Sub postprocessing bool osd_conv_blur_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs, double gblur); |