[Ffmpeg-devel] [PATCH] drawtext.c: 08 fix process measure and cache code

Gustavo Sverzut Barbieri barbieri
Sun Sep 10 21:05:49 CEST 2006

This fix one of most broken code present in drawtext: measure and
cache of glyphs in order to draw them on picture. This also fix
background drawing for single-line strings and avoid out-of-buffer

It defines 2 extra functions to help code readability:

 - get_kerning() given 2 char index (current and previous) get the
pixel offset for kerning.
 - get_offset_based_on_previous(): given characters and context, check
if kerning is possible and use get_kerning().

Gustavo Sverzut Barbieri
Jabber: barbieri at gmail.com
   MSN: barbieri at gmail.com
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
 Phone:  +1 (347) 624 6296; 08122692 at sip.stanaphone.com
   GPG: 0xB640E1A2 @ wwwkeys.pgp.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawtext_08-fix_measure_and_cache.patch
Type: text/x-patch
Size: 3376 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060910/6bd48a3d/attachment.bin>

More information about the ffmpeg-devel mailing list