From c139cd2b936a6824238264aa974aa5cfa55caa25 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 7 Oct 2012 03:26:46 +0200 Subject: 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. --- sub/sub.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sub/sub.h') diff --git a/sub/sub.h b/sub/sub.h index 649f196414..cc59077011 100644 --- a/sub/sub.h +++ b/sub/sub.h @@ -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); -- cgit v1.2.3