From bf68634d15c747fd05f118b1bd95e3017c1eb6bb Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 19 Oct 2012 17:49:49 +0200 Subject: sub: add cache to mp_draw_sub_bitmaps() This caches scaled RGBA sub-bitmaps. --- sub/sub.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sub/sub.h') diff --git a/sub/sub.h b/sub/sub.h index ecfd0c40cc..494b84379b 100644 --- a/sub/sub.h +++ b/sub/sub.h @@ -106,7 +106,6 @@ struct osd_object { // caches for OSD conversion (internal to render_object()) struct osd_conv_cache *cache[OSD_CONV_CACHE_MAX]; - struct sub_bitmaps cached; // VO cache state @@ -138,6 +137,9 @@ struct osd_state { struct MPOpts *opts; + // Internal to sub.c + struct mp_draw_sub_cache *draw_cache; + // Internally used by osd_libass.c struct ass_renderer *osd_render; struct ass_library *osd_ass_library; -- cgit v1.2.3