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/draw_bmp.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/draw_bmp.h')
-rw-r--r-- | sub/draw_bmp.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sub/draw_bmp.h b/sub/draw_bmp.h index 478965af15..b7ebcf5e8a 100644 --- a/sub/draw_bmp.h +++ b/sub/draw_bmp.h @@ -1,11 +1,16 @@ #ifndef MPLAYER_DRAW_BMP_H #define MPLAYER_DRAW_BMP_H +#include "sub/sub.h" + struct mp_image; struct sub_bitmaps; struct mp_csp_details; -void mp_draw_sub_bitmaps(struct mp_image *dst, struct sub_bitmaps *sbs, - struct mp_csp_details *csp); +struct mp_draw_sub_cache; +void mp_draw_sub_bitmaps(struct mp_draw_sub_cache **cache, struct mp_image *dst, + struct sub_bitmaps *sbs, struct mp_csp_details *csp); + +extern const bool mp_draw_sub_formats[SUBBITMAP_COUNT]; #endif /* MPLAYER_DRAW_BMP_H */ |