diff options
author | wm4 <wm4@nowhere> | 2012-10-27 18:06:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:07:45 +0100 |
commit | 9ba52ea6efd41db9dbd08311380f7fa633e22aa2 (patch) | |
tree | 698757630c88e96f323bc66461045234505ace91 /sub/sub.c | |
parent | d9839fe8623c855b6b335df3a5b9783e3ed22266 (diff) | |
download | mpv-9ba52ea6efd41db9dbd08311380f7fa633e22aa2.tar.bz2 mpv-9ba52ea6efd41db9dbd08311380f7fa633e22aa2.tar.xz |
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.
Diffstat (limited to 'sub/sub.c')
-rw-r--r-- | sub/sub.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -234,7 +234,6 @@ void osd_draw(struct osd_state *osd, struct mp_osd_res res, struct draw_on_image_closure { struct osd_state *osd; struct mp_image *dest; - struct mp_csp_details *dest_csp; bool changed; }; @@ -242,18 +241,16 @@ static void draw_on_image(void *ctx, struct sub_bitmaps *imgs) { struct draw_on_image_closure *closure = ctx; struct osd_state *osd = closure->osd; - mp_draw_sub_bitmaps(&osd->draw_cache, closure->dest, imgs, - closure->dest_csp); + mp_draw_sub_bitmaps(&osd->draw_cache, closure->dest, imgs); talloc_steal(osd, osd->draw_cache); closure->changed = true; } // Returns whether anything was drawn. 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 draw_on_image_closure closure = {osd, dest, dest_csp}; + struct draw_on_image_closure closure = {osd, dest}; osd_draw(osd, res, video_pts, draw_flags, mp_draw_sub_formats, &draw_on_image, &closure); return closure.changed; |