diff options
author | wm4 <wm4@nowhere> | 2012-12-22 17:50:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:12 +0100 |
commit | 3d6d549dac2aa06ecd07bb04902f55140661ace3 (patch) | |
tree | 80d548014a2363fe236ca061c87282a5c05ee8c2 /sub/sub.h | |
parent | 1c65428d6f70f05333ecc8284e3f235c679fff26 (diff) | |
download | mpv-3d6d549dac2aa06ecd07bb04902f55140661ace3.tar.bz2 mpv-3d6d549dac2aa06ecd07bb04902f55140661ace3.tar.xz |
vo_xv, vo_x11: simplify OSD redrawing
In order to support OSD redrawing for vo_xv and vo_x11, draw_bmp.c
included an awkward "backup" mechanism to copy and restore image
regions that have been changed by OSD/subtitles.
Replace this by a much simpler mechanism: keep a reference to the
original image, and use that to restore the Xv/X framebuffers.
In the worst case, this may increase cache pressure and memory usage,
even if no OSD or subtitles are rendered. In practice, it seems to be
always faster.
Diffstat (limited to 'sub/sub.h')
-rw-r--r-- | sub/sub.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -227,11 +227,6 @@ void osd_draw_on_image_p(struct osd_state *osd, struct mp_osd_res res, double video_pts, int draw_flags, struct mp_image_pool *pool, struct mp_image *dest); -struct mp_draw_sub_backup; -void osd_draw_on_image_bk(struct osd_state *osd, struct mp_osd_res res, - double video_pts, int draw_flags, - struct mp_draw_sub_backup *bk, struct mp_image *dest); - struct mp_rect; bool sub_bitmaps_bb(struct sub_bitmaps *imgs, struct mp_rect *out_bb); |