sub: add clarifying comments

This commit is contained in:
wm4 2012-10-21 20:23:59 +02:00
parent 93b384a799
commit 77016efd27
1 changed files with 3 additions and 1 deletions

View File

@ -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];
};