]> granicus.if.org Git - libass/commit
Subpixel accurate shadow rendering
authorGrigori Goronzy <greg@hein>
Mon, 29 Jun 2009 00:10:02 +0000 (02:10 +0200)
committerGrigori Goronzy <greg@hein>
Mon, 29 Jun 2009 00:10:02 +0000 (02:10 +0200)
commite8433c6ff67409c55ff005fa3d7a28e52d8ec21b
treeae5f9b0a4ea53bb2c2c87b935eccdee0f1b298ab
parenta75f6a8d3d3ed6410cc2a4efa866a99152d78af6
Subpixel accurate shadow rendering

Shadows are handled different from glyph and outline.  A shadow
is the sum of glyph and outline bitmap; therefore shifting to the
correct subpixel amount before rasterization is out of the question.
Instead, the bitmap is shifted by its subpixel amount after being
built from shadow and glyph.
The bitmap cache was extended for this.
libass/ass_bitmap.c
libass/ass_bitmap.h
libass/ass_cache_template.c
libass/ass_render.c