diff options
author | wm4 <wm4@nowhere> | 2012-10-19 17:49:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-24 21:56:34 +0200 |
commit | bf68634d15c747fd05f118b1bd95e3017c1eb6bb (patch) | |
tree | 92395008313f2ce60c06189f2cd4a05a0dbaf9e7 /sub/sub.h | |
parent | 97c6425140aecc3910a622fb0ad7d79916cfebbe (diff) | |
download | mpv-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |