diff options
author | wm4 <wm4@nowhere> | 2015-08-18 22:59:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-18 23:09:37 +0200 |
commit | 5eb6466e54ac2e8d4a5265418b04644d15302ece (patch) | |
tree | 687fbf9a4bad1430542c5444908c4a31ef90b0ee /video/out/gl_osd.h | |
parent | 58ba2a9087dfa6bf6a81177c77f86e01acd33286 (diff) | |
download | mpv-5eb6466e54ac2e8d4a5265418b04644d15302ece.tar.bz2 mpv-5eb6466e54ac2e8d4a5265418b04644d15302ece.tar.xz |
vo_rpi: redraw subtitles only on change
Since vo_rpi uses MMAL for video output, which is completely
independent from the GLES overlay, we can just not redraw the
GLES screen if subtitles do not change.
(As a furhter optimization, the dispmanx overlay could be removed
if nothing is visible. But I'm not sure if adding and removing the
overlay frequently is a good idea for performance, so this could
just as well go the other way.)
Diffstat (limited to 'video/out/gl_osd.h')
-rw-r--r-- | video/out/gl_osd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_osd.h b/video/out/gl_osd.h index 130008a58d..e00565aad7 100644 --- a/video/out/gl_osd.h +++ b/video/out/gl_osd.h @@ -17,5 +17,6 @@ void mpgl_osd_generate(struct mpgl_osd *ctx, struct mp_osd_res res, double pts, enum sub_bitmap_format mpgl_osd_get_part_format(struct mpgl_osd *ctx, int index); struct gl_vao *mpgl_osd_get_vao(struct mpgl_osd *ctx); void mpgl_osd_draw_part(struct mpgl_osd *ctx, int vp_w, int vp_h, int index); +int64_t mpgl_get_change_counter(struct mpgl_osd *ctx); #endif |