summaryrefslogtreecommitdiffstats
path: root/sub/img_convert.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-09 22:59:36 +0200
committerwm4 <wm4@nowhere>2013-08-12 00:50:28 +0200
commit689a25003fc8098e5fdfbb2faefc0e18365d3acb (patch)
tree1735960be82a994c75549e4c5c45a88f1bc9ea8c /sub/img_convert.h
parent8fe4790ec8945cae52ea7600312f54e1dbdf8162 (diff)
downloadmpv-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.h2
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);