summaryrefslogtreecommitdiffstats
path: root/sub/sub.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-19 17:49:49 +0200
committerwm4 <wm4@nowhere>2012-10-24 21:56:34 +0200
commitbf68634d15c747fd05f118b1bd95e3017c1eb6bb (patch)
tree92395008313f2ce60c06189f2cd4a05a0dbaf9e7 /sub/sub.h
parent97c6425140aecc3910a622fb0ad7d79916cfebbe (diff)
downloadmpv-bf68634d15c747fd05f118b1bd95e3017c1eb6bb.tar.bz2
mpv-bf68634d15c747fd05f118b1bd95e3017c1eb6bb.tar.xz
sub: add cache to mp_draw_sub_bitmaps()
This caches scaled RGBA sub-bitmaps.
Diffstat (limited to 'sub/sub.h')
-rw-r--r--sub/sub.h4
1 files changed, 3 insertions, 1 deletions
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;