cache: unified outline cache for glyphs/drawings
commitd14f08365d9ecd16e8c762d852b6a22d7cc2307d
authorGrigori Goronzy <greg@blackbox>
Mon, 27 Jun 2011 00:17:10 +0000 (27 02:17 +0200)
committerGrigori Goronzy <greg@blackbox>
Mon, 27 Jun 2011 00:17:10 +0000 (27 02:17 +0200)
treef1957f459b64213d3dd380007b5b8864599db9d7
parent308f4193c6b8d9f3ab8c70f7a9e083e7e2ad867d
cache: unified outline cache for glyphs/drawings

Glyphs and drawings have wildly different hash keys. Subclass the hash
keys of glyphs and drawings in a new, unified outline cache. This also
fixes some issues with drawings in the glyph cache. Now, the textual
description of the drawing is included in the key (the hash value isn't
really good enough, especially not fnv32) and the baseline offset is
saved as well.
libass/ass_cache.c
libass/ass_cache.h
libass/ass_cache_template.h
libass/ass_render.c
libass/ass_render.h
libass/ass_render_api.c