]>
granicus.if.org Git - libass/log
eugeni [Thu, 3 May 2007 19:26:43 +0000 (19:26 +0000)]
In ass_font_new, allocate temporary ass_font_t on stack and return the pointer
to cache-owned copy. This fixes leaked ass_font_t struct.
Without this, font pointers obtained from ass_font_new() and
ass_font_cache_find() were different, and bitmaps rendered with the first one
could not be located in the cache later.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23230
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 3 May 2007 19:13:54 +0000 (19:13 +0000)]
Make cache_*_add functions return the pointer to new (copied) value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23229
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Wed, 2 May 2007 10:15:12 +0000 (10:15 +0000)]
Always deallocate glyphs. Fixes memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23208
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:54:00 +0000 (15:54 +0000)]
Update comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23197
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:34:08 +0000 (15:34 +0000)]
Cosmetics.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23196
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:33:06 +0000 (15:33 +0000)]
Move glyph_to_bitmap() call and outline glyph deallocation to
get_bitmap_glyph().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23195
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:21:34 +0000 (15:21 +0000)]
Minor code simplification.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23193
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:14:22 +0000 (15:14 +0000)]
Move get_bitmap_glyph() call to a separate loop.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23192
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:12:36 +0000 (15:12 +0000)]
Move transform_3d() call to get_bitmap_glyph().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23191
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:07:41 +0000 (15:07 +0000)]
Make a function static.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23190
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 15:05:20 +0000 (15:05 +0000)]
Don't recalculate rotation radius.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23189
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 1 May 2007 14:29:28 +0000 (14:29 +0000)]
Bugfix: glyph cache depends on border width, because it contains outline_glyph
(glyph border obtained with FT_Glyph_StrokeBorder) since r23043.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23188
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Apr 2007 14:25:36 +0000 (14:25 +0000)]
Add -ass-hinting option for setting font hinting method.
It is possible to separately configure hinting for scaled and unscaled osd.
The default is native hinter for unscaled osd (only vo_gl at this point),
no hinting for vf_ass.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23152
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Apr 2007 14:18:44 +0000 (14:18 +0000)]
Fix division by zero in "\t" parsing.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23151
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 24 Apr 2007 17:36:03 +0000 (17:36 +0000)]
Do not use FT_Glyph_Copy with NULL glyphs.
Contrary to the docs, it leaves garbage in *target.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23104
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 21 Apr 2007 11:02:49 +0000 (11:02 +0000)]
Deallocate glyphs in a separate loop.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23054
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 21 Apr 2007 10:56:28 +0000 (10:56 +0000)]
Always deallocate glyphs. Fixes a memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23053
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 21 Apr 2007 10:43:19 +0000 (10:43 +0000)]
Reset outline glyph cache when configuration changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23052
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 21 Apr 2007 10:42:10 +0000 (10:42 +0000)]
Scale camera distance.
Otherwise perspective does not look the same in fullscreen.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23051
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:25:30 +0000 (23:25 +0000)]
Remove unused variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23049
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:23:32 +0000 (23:23 +0000)]
Cosmetics.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23048
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:23:00 +0000 (23:23 +0000)]
Allow caching of rotated glyphs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23047
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:19:23 +0000 (23:19 +0000)]
Add shift_[xy] (vector that is added to the glyph before transformation) to
bitmap glyph key. Result of rotation depends on them because of perspective
transformation. They are only set when some rotation take place.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23046
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:16:29 +0000 (23:16 +0000)]
Fill bitmap_hash_key during parsing stage, call get_bitmap_glyph() much later.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23045
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:14:12 +0000 (23:14 +0000)]
Remove bbox and advance vector from bitmap cache.
They are now available from glyph cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23044
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:13:34 +0000 (23:13 +0000)]
Store outline_glyph (glyph border) in glyph cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23043
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:12:19 +0000 (23:12 +0000)]
Cosmetics: reindentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23042
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:11:39 +0000 (23:11 +0000)]
Because of the outline glyph cache it is now possible for glyph_info_t to have
both non-zero glyph and bitmap at the same time. In that case, bitmap should
not be generated anew.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23041
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:10:33 +0000 (23:10 +0000)]
Make get_*_glyph return void.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23040
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:09:48 +0000 (23:09 +0000)]
Move outline glyph generation to a separate function, using outline glyph
cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23039
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:09:06 +0000 (23:09 +0000)]
Oops, fix compilation broken in r23037.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23038
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:06:12 +0000 (23:06 +0000)]
Collect hit/miss statistic in hash map, and print in -v mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23037
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:04:21 +0000 (23:04 +0000)]
Add outline glyph cache (unused yet).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23036
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:02:20 +0000 (23:02 +0000)]
Rename glyph cache to bitmap cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23035
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 23:00:30 +0000 (23:00 +0000)]
Add generic hash map implementation.
Reimplement both font cache and glyph cache on top of it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23034
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 22:57:55 +0000 (22:57 +0000)]
A meaningless cosmetic change.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23033
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 22:56:42 +0000 (22:56 +0000)]
Add perspective projection.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23032
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 22:55:28 +0000 (22:55 +0000)]
Applying transformation matrix to the glyph and the shift vector separately is
incorrect. Instead, it should be applied to translated glyph.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23031
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 22:51:19 +0000 (22:51 +0000)]
Cosmetics: reindentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23030
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 20 Apr 2007 22:49:48 +0000 (22:49 +0000)]
Disable caching of rotated glyphs.
The following commits will add perspective distortion to the glyphs rotated
with \frx and \fry. Somewhere along the way correct caching of such glyphs
will become impossible, but in the end everything will be fine.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23029
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 13 Apr 2007 13:46:49 +0000 (13:46 +0000)]
Fix a stupid bug in r22473: bbox is zero-filled everytime when a glyph
is found in the cache. This leads to broken karaoke (some glyphs are not
highlighted at all), and, probably, slightly incorrect linebreaks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22986
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 10 Apr 2007 17:54:02 +0000 (17:54 +0000)]
Remove unused includes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22965
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 10 Apr 2007 17:53:41 +0000 (17:53 +0000)]
Don't check if user-supplied default font path exists.
It is checked in FT_New_Face anyway.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22964
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 7 Apr 2007 13:32:51 +0000 (13:32 +0000)]
Fix lost hard linebreaks in libass by repeating the loop when both soft and
hard linebreaks are about to be added.
Original message:
http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2007-April/050876.html
Patch by Jindrich Makovicka /makovick gmail com/
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22931
b3059339 -0415-0410-9bf9-
f77b7e298cf2
uau [Sun, 1 Apr 2007 21:59:54 +0000 (21:59 +0000)]
"()" to "(void)" function param list fixes
patch from Stefan Huehner, stefan huehner org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22904
b3059339 -0415-0410-9bf9-
f77b7e298cf2
iive [Sat, 31 Mar 2007 20:58:14 +0000 (20:58 +0000)]
Use FT_Glyph_StrokeBorder to render only the outside border.
Workarounds gaps between glyph and glyph border when rendering some fonts with freetype below 2.1.10
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22863
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Thu, 15 Mar 2007 12:13:35 +0000 (12:13 +0000)]
Remove unnecessary include from CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22606
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Tue, 13 Mar 2007 21:55:23 +0000 (21:55 +0000)]
cosmetics: Fix indentation, reorder some lines for consistency.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22549
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Tue, 13 Mar 2007 12:10:57 +0000 (12:10 +0000)]
Give more descriptive names to the source and library variables and split
between common, MPlayer-specific and MEncoder-specific parts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22546
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 6 Mar 2007 10:00:53 +0000 (10:00 +0000)]
A function always returning 0 could as well return void.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22475
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 6 Mar 2007 09:59:53 +0000 (09:59 +0000)]
Text alignment should not use bounding boxes of individual glyphs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22474
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 6 Mar 2007 09:31:12 +0000 (09:31 +0000)]
Reset advance vector and glyph bounding box if glyph could not be found.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22473
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 3 Mar 2007 08:20:00 +0000 (08:20 +0000)]
Fix incorrect spacing introduced in r22231:
these two lines were supposed to perform truncation, not rounding.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22419
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 2 Mar 2007 17:59:19 +0000 (17:59 +0000)]
10l: x2scr used twice instead of y2scr.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22415
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 2 Mar 2007 17:54:47 +0000 (17:54 +0000)]
Bugfix: transform origin to screen coordinates.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22414
b3059339 -0415-0410-9bf9-
f77b7e298cf2
uau [Fri, 23 Feb 2007 03:08:54 +0000 (03:08 +0000)]
Fix \a parsing broken in r22291
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22321
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 22 Feb 2007 15:48:37 +0000 (15:48 +0000)]
Add some missing includes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22310
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Wed, 21 Feb 2007 09:25:52 +0000 (09:25 +0000)]
Oops, forgot {} before "else".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22300
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 20 Feb 2007 17:22:34 +0000 (17:22 +0000)]
Cosmetics: fix indentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22294
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 20 Feb 2007 17:20:21 +0000 (17:20 +0000)]
With \t(\b) text becomes bold at the middle of time interval, not at the end
of it like before. The same for \t(\i).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22293
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 20 Feb 2007 17:17:51 +0000 (17:17 +0000)]
Any style modifier followed by no recognizable parameter resets to the default.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22291
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 20 Feb 2007 16:37:18 +0000 (16:37 +0000)]
\fn without an argument resets font family to the value from style.
Fixes bugzilla #762.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22287
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 20 Feb 2007 16:20:55 +0000 (16:20 +0000)]
Fix display order of events.
Starting time does not matter, it depends on Layer and ReadOrder only.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22286
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 19 Feb 2007 20:10:55 +0000 (20:10 +0000)]
Both (-1) and 1 mean bold font in SSA/ASS styles.
The same for italics and some other fields.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22281
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 19 Feb 2007 19:01:45 +0000 (19:01 +0000)]
Add \t(\b) support.
Contradicts the specification, but supported by all other renderers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22280
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 19 Feb 2007 18:37:54 +0000 (18:37 +0000)]
Fix bounding box calculation with \fscx/\fscy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22279
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 19 Feb 2007 18:31:05 +0000 (18:31 +0000)]
Fix \fscx/\fscy animation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22278
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 19 Feb 2007 18:01:49 +0000 (18:01 +0000)]
Correct implementation of text spacing.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22277
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 19 Feb 2007 17:44:29 +0000 (17:44 +0000)]
Reallocate event_images_t, removing limit on simultanious events count.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22276
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 16 Feb 2007 23:18:47 +0000 (23:18 +0000)]
Restore a minus sign that was lost in r22231.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22239
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 16 Feb 2007 17:54:47 +0000 (17:54 +0000)]
Implement \frx and \fry (and reimplement \frz) as 3d rotations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22233
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 16 Feb 2007 17:51:07 +0000 (17:51 +0000)]
Consistently name z-axis rotation angle "frz".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22232
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 16 Feb 2007 17:49:35 +0000 (17:49 +0000)]
Move conversions between 16.16, 26.6 fixed point and int, double to separate
functions. Some rounding errors are fixed along the way.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22231
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 15 Feb 2007 22:03:09 +0000 (22:03 +0000)]
Select the first charmap in the font, if FreeType did not autoselect any.
This happens, for example, with fonts only having an Apple Roman charmap.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22228
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 15 Feb 2007 21:53:28 +0000 (21:53 +0000)]
\r resets \frz to style value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22227
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 15 Feb 2007 21:51:51 +0000 (21:51 +0000)]
Fix \t(\frz) handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22226
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 15 Feb 2007 21:50:21 +0000 (21:50 +0000)]
\org(0,0) is different from no \org at all.
Use render_context.have_origin to tell them apart.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22225
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 29 Jan 2007 17:08:29 +0000 (17:08 +0000)]
Bugfix: glyph and bitmap pointers could be left uninitialized after
get_glyph().
Based on a patch by Stanislav Maslovski (stanislav d maslovski a gmail d com).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22063
b3059339 -0415-0410-9bf9-
f77b7e298cf2
reimar [Sun, 7 Jan 2007 16:07:45 +0000 (16:07 +0000)]
Avoid invalid memory access in ass_process_subtitle for empty subtitles
with sub->lines <= 0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21853
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 17 Dec 2006 12:35:12 +0000 (12:35 +0000)]
Make -embeddedfonts enabled by default with FontConfig >= 2.4.2.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21648
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 17 Dec 2006 12:00:55 +0000 (12:00 +0000)]
Update some comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21646
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 16 Dec 2006 19:35:48 +0000 (19:35 +0000)]
Cosmetics: fix indentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21636
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 16 Dec 2006 19:34:00 +0000 (19:34 +0000)]
Keep reselected fonts in an array, adding new ones to the end. Glyph
lookup prefers earlier opened fonts.
This way glyph lookup is stable, which means that:
- cache cleanup is never required after font reselecting;
- a single unrecognized char won't change the appearance of all the others.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21635
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 16 Dec 2006 19:29:33 +0000 (19:29 +0000)]
Avoid storing font file path and index in ass_font_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21634
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 16 Dec 2006 19:28:21 +0000 (19:28 +0000)]
Remove a mistakenly committed debug printf.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21633
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 16 Dec 2006 19:24:01 +0000 (19:24 +0000)]
FT_Set_Transform is fast enough to be called once for each glyph.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21632
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 16 Dec 2006 19:19:27 +0000 (19:19 +0000)]
Avoid "pointer targets differ in signedness" warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21631
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 16 Dec 2006 19:17:50 +0000 (19:17 +0000)]
Move ascender, descender, and kerning computation to ass_font.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21630
b3059339 -0415-0410-9bf9-
f77b7e298cf2
reimar [Tue, 12 Dec 2006 20:29:30 +0000 (20:29 +0000)]
Get rid on -DGNU_SOURCE for internal code, imported libs should be fixed
ASAP, too, though
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21604
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Wed, 6 Dec 2006 18:44:26 +0000 (18:44 +0000)]
Speed up ASS subtitles display by detecting changes between two consecutive
rendering results.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21522
b3059339 -0415-0410-9bf9-
f77b7e298cf2
reimar [Wed, 6 Dec 2006 10:11:23 +0000 (10:11 +0000)]
Also free ass_library_t members in ass_library_done
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21513
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 3 Dec 2006 18:24:11 +0000 (18:24 +0000)]
Open embedded fonts directly from memory.
FontConfig 2.4.2 (released yesterday) supports scanning fonts with
FcFreeTypeQueryFace without writing them to disk. With earlier FontConfig
versions, the old mechanism is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21476
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 3 Dec 2006 17:59:13 +0000 (17:59 +0000)]
Keep embedded fonts in ass_library_t and perform actual disk write
in fontconfig initialization. This is required for some fontconfig-related
improvements.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21474
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 3 Dec 2006 17:35:40 +0000 (17:35 +0000)]
Rename: ass_process_font -> ass_add_font.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21471
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 3 Dec 2006 16:10:23 +0000 (16:10 +0000)]
Avoid calling validate_fname() twice for one string.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21469
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 28 Nov 2006 22:50:02 +0000 (22:50 +0000)]
If a glyph is not found in the current font, switch to another one.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21367
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 28 Nov 2006 22:44:40 +0000 (22:44 +0000)]
Skip glyphs with char code < 0x20.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21366
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 28 Nov 2006 22:20:24 +0000 (22:20 +0000)]
Add FT_Library to ass_font_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21365
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 28 Nov 2006 22:17:33 +0000 (22:17 +0000)]
Use (ass_font_t, char code) instead of (FT_Face, glyph index) to identify
glyphs in cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21364
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 27 Nov 2006 17:56:49 +0000 (17:56 +0000)]
Don't include freetype headers in other headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21339
b3059339 -0415-0410-9bf9-
f77b7e298cf2