summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-21 20:23:59 +0200
committerwm4 <wm4@nowhere>2012-10-24 21:56:35 +0200
commit77016efd27c70b4e7c577cf2f7b351b78b71c7b9 (patch)
tree2d7bbed21b59257098bee2252274c8c316ea955d /sub
parent93b384a799ff23836700989db771735ff2df68ca (diff)
downloadmpv-77016efd27c70b4e7c577cf2f7b351b78b71c7b9.tar.bz2
mpv-77016efd27c70b4e7c577cf2f7b351b78b71c7b9.tar.xz
sub: add clarifying comments
Diffstat (limited to 'sub')
-rw-r--r--sub/sub.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sub/sub.h b/sub/sub.h
index 88a49a2906..cc03396f04 100644
--- a/sub/sub.h
+++ b/sub/sub.h
@@ -27,6 +27,7 @@
struct vo;
struct sub_render_params;
+// NOTE: VOs must support at least SUBBITMAP_LIBASS and SUBBITMAP_RGBA.
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)
@@ -39,7 +40,8 @@ enum sub_bitmap_format {
// For SUBBITMAP_INDEXED
struct osd_bmp_indexed {
uint8_t *bitmap;
- // Each entry is like a pixel in SUBBITMAP_RGBA format
+ // Each entry is like a pixel in SUBBITMAP_RGBA format, but using straight
+ // alpha.
uint32_t palette[256];
};