]> granicus.if.org Git - libass/log
libass
16 years agoReturn from ass_start_frame immediately if the track is empty.
eugeni [Sun, 30 Dec 2007 01:03:05 +0000 (01:03 +0000)]
Return from ass_start_frame immediately if the track is empty.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25541 b3059339-0415-0410-9bf9-f77b7e298cf2

16 years agomake libass use sub_font_name whenever it's possible
ben [Sun, 16 Dec 2007 11:13:24 +0000 (11:13 +0000)]
make libass use sub_font_name whenever it's possible

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25420 b3059339-0415-0410-9bf9-f77b7e298cf2

16 years agoFix libass to support -nofontconfig.
ulion [Wed, 12 Dec 2007 10:00:34 +0000 (10:00 +0000)]
Fix libass to support -nofontconfig.
For history reason, fontconfig is auto-enabled when ass is enabled,
we keep this behavior and document it clearly.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25379 b3059339-0415-0410-9bf9-f77b7e298cf2

16 years agoOur enca code uses strdup() on the input encoding name, as we don't modify it we...
iive [Sun, 28 Oct 2007 14:26:05 +0000 (14:26 +0000)]
Our enca code uses strdup() on the input encoding name, as we don't modify it we can use the original constant string.
Uses less memory, code is simpler and faster.
Fixes memory leak (noticed by ulion).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24879 b3059339-0415-0410-9bf9-f77b7e298cf2

16 years agoCosmetics: fix indentation after last commit.
eugeni [Thu, 25 Oct 2007 21:20:28 +0000 (21:20 +0000)]
Cosmetics: fix indentation after last commit.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24856 b3059339-0415-0410-9bf9-f77b7e298cf2

16 years agoCheck return value of add_face.
eugeni [Thu, 25 Oct 2007 21:19:20 +0000 (21:19 +0000)]
Check return value of add_face.

This fixes segfault when reselecting fonts and the new font could not be
loaded (because of a bad font file, or too many font faces already loaded).
Patch by Glen Nakamura, glen at imodulo dot com.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24855 b3059339-0415-0410-9bf9-f77b7e298cf2

16 years agoAvoid text deformation and subtitles moving outside the screen in pan-and-scan
eugeni [Fri, 19 Oct 2007 18:16:23 +0000 (18:16 +0000)]
Avoid text deformation and subtitles moving outside the screen in pan-and-scan
mode.

For this, crop amounts are passed from vo_gl as negative margins sizes. They
are used to calculate aspect ratio. They are ignored when calculating subtitle
 positions, so subtitles will stay on screen most of the time.
Based on a patch by Jindrich Makovicka [makovick gmail com].

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24815 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoMore precise line spacing.
eugeni [Tue, 18 Sep 2007 19:51:22 +0000 (19:51 +0000)]
More precise line spacing.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24577 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoFix text height calculation. It depends on line spacing.
eugeni [Tue, 18 Sep 2007 18:41:38 +0000 (18:41 +0000)]
Fix text height calculation. It depends on line spacing.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24576 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoFix an obviously incorrect comment.
eugeni [Tue, 18 Sep 2007 18:36:54 +0000 (18:36 +0000)]
Fix an obviously incorrect comment.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24575 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoEnable ass_line_spacing option.
eugeni [Tue, 18 Sep 2007 18:34:52 +0000 (18:34 +0000)]
Enable ass_line_spacing option.
Patch by Thomas Reitmayr (treitmayr devbase at).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24574 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoClean up the way get_path is handled: Compile get_path.c to an object to link
diego [Tue, 28 Aug 2007 11:20:24 +0000 (11:20 +0000)]
Clean up the way get_path is handled: Compile get_path.c to an object to link
against instead of directly #including the C file and replace the many extern
declarations by a proper header file.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24262 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoFix compilation of ass_fontconfig.c when fontconfig is disabled.
iive [Sat, 4 Aug 2007 10:46:14 +0000 (10:46 +0000)]
Fix compilation of ass_fontconfig.c when fontconfig is disabled.
Add missing parameter to the function in the #else case

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24008 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoDon't apply windows-like font scaling if hhea or os2 tables contain invalid
eugeni [Fri, 3 Aug 2007 15:39:38 +0000 (15:39 +0000)]
Don't apply windows-like font scaling if hhea or os2 tables contain invalid
metrics.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24003 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoWorkaround for fonts with zero ascender/descender in horizontal header.
eugeni [Fri, 3 Aug 2007 15:22:55 +0000 (15:22 +0000)]
Workaround for fonts with zero ascender/descender in horizontal header.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24002 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoFactor out common code from ass_font_new and ass_font_reselect.
eugeni [Fri, 3 Aug 2007 14:10:53 +0000 (14:10 +0000)]
Factor out common code from ass_font_new and ass_font_reselect.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24001 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoMore simple and correct font reselection.
eugeni [Fri, 3 Aug 2007 13:43:11 +0000 (13:43 +0000)]
More simple and correct font reselection.

Since ass_font_t contains a list of font faces, there is no need to select the
face with maximum charset coverage each time. It is enough to select any face
with the required glyph.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24000 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoDo not use leading underscores in multiple inclusion guards, they are reserved.
diego [Mon, 2 Jul 2007 22:34:45 +0000 (22:34 +0000)]
Do not use leading underscores in multiple inclusion guards, they are reserved.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23709 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoConsistently use filename as multiple inclusion guard.
diego [Mon, 2 Jul 2007 21:34:39 +0000 (21:34 +0000)]
Consistently use filename as multiple inclusion guard.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23707 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoWhen parsing ass-force-style arguments, search for '=' and '.' characters with
eugeni [Fri, 15 Jun 2007 22:22:16 +0000 (22:22 +0000)]
When parsing ass-force-style arguments, search for '=' and '.' characters with
strrchr. This allows using it for styles whose name contains those characters.
Patch by Бранко Мајић <branko majic at gmail com>.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23560 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoMake sure there is at least one style in ass_track when parsing events.
eugeni [Fri, 15 Jun 2007 22:15:27 +0000 (22:15 +0000)]
Make sure there is at least one style in ass_track when parsing events.
Before it was only checked for embedded subtitles.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23559 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoMove code for reading a file and recoding it to utf-8 to a separate function.
eugeni [Fri, 1 Jun 2007 19:56:44 +0000 (19:56 +0000)]
Move code for reading a file and recoding it to utf-8 to a separate function.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23442 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoFix #if condition.
eugeni [Sun, 20 May 2007 17:56:39 +0000 (17:56 +0000)]
Fix #if condition.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23358 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoFT_Request_Size does not exist in FreeType 2.1.*. Fallback to FT_Set_Char_Size.
eugeni [Sun, 20 May 2007 17:04:12 +0000 (17:04 +0000)]
FT_Request_Size does not exist in FreeType 2.1.*. Fallback to FT_Set_Char_Size.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23357 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoCorrect font size in libass.
eugeni [Sat, 19 May 2007 14:11:41 +0000 (14:11 +0000)]
Correct font size in libass.

Values from TrueType OS/2 table are used to reproduce VSFilter behaviour.
Magic 0.8 multiplier and scaling for the fractional part of font size are not
needed anymore.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23346 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoRevert y-axis rotation. Change order of rotations.
eugeni [Fri, 18 May 2007 18:58:34 +0000 (18:58 +0000)]
Revert y-axis rotation. Change order of rotations.

Now rotations are performed in the following order: X, Y, Z. Before this, it
was the other way around. Also, in FreeType Y axis is directed upwards, so the
corresponding rotation must be reverted.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23340 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoSupport fractional font sizes.
eugeni [Mon, 14 May 2007 20:41:14 +0000 (20:41 +0000)]
Support fractional font sizes.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23318 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoLimit ass_font_set_transform to nonrotating transformations.
eugeni [Mon, 14 May 2007 20:24:53 +0000 (20:24 +0000)]
Limit ass_font_set_transform to nonrotating transformations.
Rotations are not needed here (they are performed in transform3d) and they
disable autohinter.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23317 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoDon't deallocate font data if it will be used later.
eugeni [Wed, 9 May 2007 21:38:28 +0000 (21:38 +0000)]
Don't deallocate font data if it will be used later.
It produced either segfault or "Error opening memory font" with any script
that contains embedded fonts.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23282 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoMove variables and a function under #ifdef FC_VERSION to avoid warnings.
eugeni [Thu, 3 May 2007 20:10:14 +0000 (20:10 +0000)]
Move variables and a function under #ifdef FC_VERSION to avoid warnings.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23234 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoDeallocate FontConfig objects.
eugeni [Thu, 3 May 2007 19:52:46 +0000 (19:52 +0000)]
Deallocate FontConfig objects.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23233 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoFix stupid bug in r23229.
eugeni [Thu, 3 May 2007 19:47:34 +0000 (19:47 +0000)]
Fix stupid bug in r23229.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23232 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoDeallocate string.
eugeni [Thu, 3 May 2007 19:33:35 +0000 (19:33 +0000)]
Deallocate string.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23231 b3059339-0415-0410-9bf9-f77b7e298cf2

17 years agoIn ass_font_new, allocate temporary ass_font_t on stack and return the pointer
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

17 years agoMake cache_*_add functions return the pointer to new (copied) value.
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

17 years agoAlways deallocate glyphs. Fixes memory leak.
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

17 years agoUpdate comments.
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

17 years agoCosmetics.
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

17 years agoMove glyph_to_bitmap() call and outline glyph deallocation to
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

17 years agoMinor code simplification.
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

17 years agoMove get_bitmap_glyph() call to a separate loop.
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

17 years agoMove transform_3d() call to get_bitmap_glyph().
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

17 years agoMake a function static.
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

17 years agoDon't recalculate rotation radius.
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

17 years agoBugfix: glyph cache depends on border width, because it contains outline_glyph
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

17 years agoAdd -ass-hinting option for setting font hinting method.
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

17 years agoFix division by zero in "\t" parsing.
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

17 years agoDo not use FT_Glyph_Copy with NULL glyphs.
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

17 years agoDeallocate glyphs in a separate loop.
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

17 years agoAlways deallocate glyphs. Fixes a memory leak.
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

17 years agoReset outline glyph cache when configuration changes.
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

17 years agoScale camera distance.
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

17 years agoRemove unused variables.
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

17 years agoCosmetics.
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

17 years agoAllow caching of rotated glyphs.
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

17 years agoAdd shift_[xy] (vector that is added to the glyph before transformation) to
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

17 years agoFill bitmap_hash_key during parsing stage, call get_bitmap_glyph() much later.
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

17 years agoRemove bbox and advance vector from bitmap cache.
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

17 years agoStore outline_glyph (glyph border) in glyph cache.
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

17 years agoCosmetics: reindentation.
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

17 years agoBecause of the outline glyph cache it is now possible for glyph_info_t to have
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

17 years agoMake get_*_glyph return void.
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

17 years agoMove outline glyph generation to a separate function, using outline glyph
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

17 years agoOops, fix compilation broken in r23037.
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

17 years agoCollect hit/miss statistic in hash map, and print in -v mode.
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

17 years agoAdd outline glyph cache (unused yet).
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

17 years agoRename glyph cache to bitmap cache.
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

17 years agoAdd generic hash map implementation.
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

17 years agoA meaningless cosmetic change.
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

17 years agoAdd perspective projection.
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

17 years agoApplying transformation matrix to the glyph and the shift vector separately is
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

17 years agoCosmetics: reindentation.
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

17 years agoDisable caching of rotated glyphs.
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

17 years agoFix a stupid bug in r22473: bbox is zero-filled everytime when a glyph
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

17 years agoRemove unused includes.
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

17 years agoDon't check if user-supplied default font path exists.
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

17 years agoFix lost hard linebreaks in libass by repeating the loop when both soft and
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

17 years ago"()" to "(void)" function param list fixes
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

17 years agoUse FT_Glyph_StrokeBorder to render only the outside border.
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

17 years agoRemove unnecessary include from CFLAGS.
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

17 years agocosmetics: Fix indentation, reorder some lines for consistency.
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

17 years agoGive more descriptive names to the source and library variables and split
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

17 years agoA function always returning 0 could as well return void.
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

17 years agoText alignment should not use bounding boxes of individual glyphs.
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

17 years agoReset advance vector and glyph bounding box if glyph could not be found.
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

17 years agoFix incorrect spacing introduced in r22231:
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

17 years ago10l: x2scr used twice instead of y2scr.
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

17 years agoBugfix: transform origin to screen coordinates.
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

17 years agoFix \a parsing broken in r22291
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

17 years agoAdd some missing includes.
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

17 years agoOops, forgot {} before "else".
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

17 years agoCosmetics: fix indentation.
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

17 years agoWith \t(\b) text becomes bold at the middle of time interval, not at the end
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

17 years agoAny style modifier followed by no recognizable parameter resets to the default.
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

17 years ago\fn without an argument resets font family to the value from style.
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

17 years agoFix display order of events.
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

17 years agoBoth (-1) and 1 mean bold font in SSA/ASS styles.
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

17 years agoAdd \t(\b) support.
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

17 years agoFix bounding box calculation with \fscx/\fscy.
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

17 years agoFix \fscx/\fscy animation.
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