diff options
Diffstat (limited to 'sub/draw_bmp.h')
-rw-r--r-- | sub/draw_bmp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sub/draw_bmp.h b/sub/draw_bmp.h index e9560e1ca5..b4c7378290 100644 --- a/sub/draw_bmp.h +++ b/sub/draw_bmp.h @@ -10,9 +10,12 @@ struct mp_draw_sub_cache; struct mp_draw_sub_cache *mp_draw_sub_alloc(void *ta_parent, struct mpv_global *g); +// Only for use in tests. +struct mp_draw_sub_cache *mp_draw_sub_alloc_test(struct mp_image *dst); + // Render the sub-bitmaps in sbs_list to dst. sbs_list must have been rendered // for an OSD resolution equivalent to dst's size (UB if not). -// Warning: if dst is a format with alpha, and dst is not set to MP_ALPHA_PREMUL +// Warning: if dst is a format with alpha, and dst is not set to PL_ALPHA_PREMULTIPLIED // (not done by default), this will be extremely slow. // Warning: the caller is responsible for ensuring that dst is writable. // cache: allocated instance; caches non-changing OSD parts etc. |