summaryrefslogtreecommitdiffstats
path: root/sub/sub.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-25 19:37:43 +0200
committerwm4 <wm4@nowhere>2012-10-28 15:31:31 +0100
commit18d4eebedb7f80493da87f8506ff0b2db796510a (patch)
tree4f0f75a3358a52bc677a8696ec5dd8f7fe07dc4b /sub/sub.h
parent06a45265194dc7e18475de9e3531977e32d7c196 (diff)
downloadmpv-18d4eebedb7f80493da87f8506ff0b2db796510a.tar.bz2
mpv-18d4eebedb7f80493da87f8506ff0b2db796510a.tar.xz
draw_bmp: cosmetics, refactor
Mostly pedantic bikeshedding issues. Move some code around, so that the sub_bitmap_to_mp_images() function can be split into two parts. This is better than having a big function with many input and outputs, of which only half are used in each code path. Also, try to make code simpler by using a mp_rect type.
Diffstat (limited to 'sub/sub.h')
-rw-r--r--sub/sub.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/sub.h b/sub/sub.h
index 4adf0a23d8..5013611e61 100644
--- a/sub/sub.h
+++ b/sub/sub.h
@@ -210,8 +210,8 @@ 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);
-bool sub_bitmaps_bb(struct sub_bitmaps *imgs, int *x1, int *y1,
- int *x2, int *y2);
+struct mp_rect;
+bool sub_bitmaps_bb(struct sub_bitmaps *imgs, struct mp_rect *out_bb);
// defined in osd_libass.c and osd_dummy.c