From 9ba52ea6efd41db9dbd08311380f7fa633e22aa2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 27 Oct 2012 18:06:09 +0200 Subject: screenshot, draw_bmp: use colorspace passed with mp_image Remove the explicit struct mp_csp_details parameters from all related functions, and use mp_image.colorspace/levels instead. --- sub/sub.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sub/sub.h') diff --git a/sub/sub.h b/sub/sub.h index 5013611e61..cdc094d290 100644 --- a/sub/sub.h +++ b/sub/sub.h @@ -205,10 +205,8 @@ void osd_draw(struct osd_state *osd, struct mp_osd_res res, void (*cb)(void *ctx, struct sub_bitmaps *imgs), void *cb_ctx); struct mp_image; -struct mp_csp_details; bool osd_draw_on_image(struct osd_state *osd, struct mp_osd_res res, - double video_pts, int draw_flags, struct mp_image *dest, - struct mp_csp_details *dest_csp); + double video_pts, int draw_flags, struct mp_image *dest); struct mp_rect; bool sub_bitmaps_bb(struct sub_bitmaps *imgs, struct mp_rect *out_bb); -- cgit v1.2.3