diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-19 08:38:49 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-19 15:56:23 +0200 |
commit | 3fd039c16184d5864c8a3be561c8b547b52ddf83 (patch) | |
tree | 4b7bc7aade51fece064d32276188278d9c6aae68 /libass/libass.sym | |
parent | 7690af4af50fda163ed724e8d0f3ce5d9a9ec552 (diff) | |
download | libass-3fd039c16184d5864c8a3be561c8b547b52ddf83.tar.bz2 libass-3fd039c16184d5864c8a3be561c8b547b52ddf83.tar.xz |
Introduce simple cache memory management
libass' cache was basically unmanaged; it would grow without any limits,
depending on how complex the subtitles are. Introduce a simple limiting
that resets the cache if certain limits are exceeded. The bitmap cache
is limited to approx. 50 MB size by default, while the glyph cache
allows storing up to 1000 glyphs by default. A few tests with rather
heavily softsubbed fansubs show that these limits are fine.
The API was extended with the function ass_set_cache_limits which allows
modification of these limits.
Diffstat (limited to 'libass/libass.sym')
-rw-r--r-- | libass/libass.sym | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/libass.sym b/libass/libass.sym index c702842..e813a18 100644 --- a/libass/libass.sym +++ b/libass/libass.sym @@ -32,3 +32,4 @@ ass_step_sub ass_process_force_style ass_set_message_cb ass_fonts_update +ass_set_cache_limits |