mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
3d6d549dac
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.
18 lines
413 B
C
18 lines
413 B
C
#ifndef MPLAYER_DRAW_BMP_H
|
|
#define MPLAYER_DRAW_BMP_H
|
|
|
|
#include "sub/sub.h"
|
|
|
|
struct mp_image;
|
|
struct sub_bitmaps;
|
|
struct mp_csp_details;
|
|
struct mp_draw_sub_cache;
|
|
void mp_draw_sub_bitmaps(struct mp_draw_sub_cache **cache, struct mp_image *dst,
|
|
struct sub_bitmaps *sbs);
|
|
|
|
extern const bool mp_draw_sub_formats[SUBBITMAP_COUNT];
|
|
|
|
#endif /* MPLAYER_DRAW_BMP_H */
|
|
|
|
// vim: ts=4 sw=4 et tw=80
|