diff options
author | wm4 <wm4@nowhere> | 2012-10-07 03:26:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-24 21:56:33 +0200 |
commit | c139cd2b936a6824238264aa974aa5cfa55caa25 (patch) | |
tree | 5865b78fb3cdecb0fe0b8fc15bacc27cc61509c6 /sub/sub.h | |
parent | 0e72b0d5d3aeae5c4a04ca1baceda3ceb2d63ce3 (diff) | |
download | mpv-c139cd2b936a6824238264aa974aa5cfa55caa25.tar.bz2 mpv-c139cd2b936a6824238264aa974aa5cfa55caa25.tar.xz |
sub: add function to draw OSD into an image
The osd_draw_on_image() function renders the full OSD into the provided
image.
It uses the mp_draw_sub_bitmaps() function added in the previous commit
to do the actual work.
Diffstat (limited to 'sub/sub.h')
-rw-r--r-- | sub/sub.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -238,6 +238,12 @@ bool osd_draw_sub(struct osd_state *osd, struct sub_bitmaps *out_imgs, struct sub_render_params *sub_params, const bool formats[SUBBITMAP_COUNT]); +struct mp_image; +struct mp_csp_details; +bool osd_draw_on_image(struct osd_state *osd, struct mp_image *dest, + struct mp_csp_details *dest_csp, + struct sub_render_params *sub_params); + bool sub_bitmaps_bb(struct sub_bitmaps *imgs, int *x1, int *y1, int *x2, int *y2); |