]> granicus.if.org Git - libass/log
libass
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

17 years agoCorrect implementation of text spacing.
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

17 years agoReallocate event_images_t, removing limit on simultanious events count.
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

17 years agoRestore a minus sign that was lost in r22231.
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

17 years agoImplement \frx and \fry (and reimplement \frz) as 3d rotations.
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

17 years agoConsistently name z-axis rotation angle "frz".
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

17 years agoMove conversions between 16.16, 26.6 fixed point and int, double to separate
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

17 years agoSelect the first charmap in the font, if FreeType did not autoselect any.
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

17 years ago\r resets \frz to style value.
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

17 years agoFix \t(\frz) handling.
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

17 years ago\org(0,0) is different from no \org at all.
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

17 years agoBugfix: glyph and bitmap pointers could be left uninitialized after
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

17 years agoAvoid invalid memory access in ass_process_subtitle for empty subtitles
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

17 years agoMake -embeddedfonts enabled by default with FontConfig >= 2.4.2.
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

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

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

17 years agoKeep reselected fonts in an array, adding new ones to the end. Glyph
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

17 years agoAvoid storing font file path and index in ass_font_t.
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

17 years agoRemove a mistakenly committed debug printf.
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

17 years agoFT_Set_Transform is fast enough to be called once for each glyph.
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

17 years agoAvoid "pointer targets differ in signedness" warnings.
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

17 years agoMove ascender, descender, and kerning computation to ass_font.c.
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

17 years agoGet rid on -DGNU_SOURCE for internal code, imported libs should be fixed
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

17 years agoSpeed up ASS subtitles display by detecting changes between two consecutive
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

17 years agoAlso free ass_library_t members in ass_library_done
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

17 years agoOpen embedded fonts directly from memory.
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

17 years agoKeep embedded fonts in ass_library_t and perform actual disk write
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

17 years agoRename: ass_process_font -> ass_add_font.
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

17 years agoAvoid calling validate_fname() twice for one string.
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

17 years agoIf a glyph is not found in the current font, switch to another one.
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

17 years agoSkip glyphs with char code < 0x20.
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

17 years agoAdd FT_Library to ass_font_t.
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

17 years agoUse (ass_font_t, char code) instead of (FT_Face, glyph index) to identify
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

17 years agoDon't include freetype headers in other headers.
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

17 years agoFix compilation broken in previous commit.
eugeni [Mon, 27 Nov 2006 17:53:33 +0000 (17:53 +0000)]
Fix compilation broken in previous commit.

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

17 years agoMove ass_font_desc_t and ass_font_t declarations to ass_font.h.
eugeni [Mon, 27 Nov 2006 17:50:05 +0000 (17:50 +0000)]
Move ass_font_desc_t and ass_font_t declarations to ass_font.h.

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

17 years agoCosmetics: reindent.
eugeni [Mon, 27 Nov 2006 17:34:47 +0000 (17:34 +0000)]
Cosmetics: reindent.

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

17 years agoDon't call FT_Set_Transform/FT_Set_Pixel_Sizes if values have not changed.
eugeni [Mon, 27 Nov 2006 17:33:59 +0000 (17:33 +0000)]
Don't call FT_Set_Transform/FT_Set_Pixel_Sizes if values have not changed.

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

17 years agoMove ass_font_t allocation to ass_font.h.
eugeni [Mon, 27 Nov 2006 17:13:52 +0000 (17:13 +0000)]
Move ass_font_t allocation to ass_font.h.

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

17 years agoInitialize font size with 0.
eugeni [Mon, 27 Nov 2006 16:21:10 +0000 (16:21 +0000)]
Initialize font size with 0.

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

17 years agoRemove obsolete "no_more_font_messages" hack.
eugeni [Sun, 26 Nov 2006 22:53:52 +0000 (22:53 +0000)]
Remove obsolete "no_more_font_messages" hack.

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

17 years agoMove fonts-related code to a separate file.
eugeni [Sun, 26 Nov 2006 22:49:27 +0000 (22:49 +0000)]
Move fonts-related code to a separate file.

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

17 years agoMake ass_new_font return ass_font_t struct (instead of just FT_Face).
eugeni [Sun, 26 Nov 2006 20:53:29 +0000 (20:53 +0000)]
Make ass_new_font return ass_font_t struct (instead of just FT_Face).
Use it to access the font face.

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

17 years agoMove ass_font_t to header.
eugeni [Sun, 26 Nov 2006 20:38:06 +0000 (20:38 +0000)]
Move ass_font_t to header.

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

17 years agoRename:
eugeni [Sun, 26 Nov 2006 20:34:54 +0000 (20:34 +0000)]
Rename:
face_desc_t -> ass_font_desc_t
face_cache_item_t -> ass_font_t
*face* -> *font*

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

17 years agoMerge common parts of all Makefiles into one file included by all.
diego [Sun, 26 Nov 2006 18:12:36 +0000 (18:12 +0000)]
Merge common parts of all Makefiles into one file included by all.

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

17 years agoSRCS should be one per line to make patches more readable.
diego [Sat, 25 Nov 2006 17:06:08 +0000 (17:06 +0000)]
SRCS should be one per line to make patches more readable.

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

17 years agoRemove pointless indirection.
diego [Sat, 25 Nov 2006 17:02:52 +0000 (17:02 +0000)]
Remove pointless indirection.

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

17 years agoRemove superfluous comment.
diego [Sat, 25 Nov 2006 16:12:36 +0000 (16:12 +0000)]
Remove superfluous comment.

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

17 years agoCosmetics: remove unneeded curly brackets.
eugeni [Mon, 20 Nov 2006 17:13:19 +0000 (17:13 +0000)]
Cosmetics: remove unneeded curly brackets.

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

17 years agoFix collision detection. The old method tried to avoid gaps between subtitles
eugeni [Mon, 20 Nov 2006 17:10:18 +0000 (17:10 +0000)]
Fix collision detection. The old method tried to avoid gaps between subtitles
by moving the upper subtitle down. This is wrong. With this fix, a subtitle
will be moved only if it overlaps with another one.

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

17 years agoUnify dep/depend targets.
diego [Mon, 20 Nov 2006 11:18:01 +0000 (11:18 +0000)]
Unify dep/depend targets.

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

17 years agoMSGTRs for libass
kraymer [Sun, 19 Nov 2006 22:35:17 +0000 (22:35 +0000)]
MSGTRs for libass

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

17 years agoCollect all includes of mplayer headers in libass in a single file (mputils.h).
eugeni [Sun, 19 Nov 2006 00:41:00 +0000 (00:41 +0000)]
Collect all includes of mplayer headers in libass in a single file (mputils.h).

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

17 years agoSupport \t with acceleration.
eugeni [Mon, 13 Nov 2006 16:49:32 +0000 (16:49 +0000)]
Support \t with acceleration.

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

17 years agoPartial fix for semitransparent glyph outlines.
eugeni [Mon, 13 Nov 2006 16:35:15 +0000 (16:35 +0000)]
Partial fix for semitransparent glyph outlines.

This fix removes semitransparent area (less then pixel width) between glyph and
it's outline. Instead, it makes them overlap a little. It usually looks much
better this way.
Complete fix seems impossible with the current output format (single color
alpha bitmaps). The right way is to blend both glyph and outline into one
bitmap so that 2 pixels with 50% transparency produce a fully solid one.
This requires RGBA bitmap output from libass.

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

17 years agos/break/continue/. A crazy mistake, somehow unnoticed for more that 2 months.
eugeni [Wed, 8 Nov 2006 18:57:40 +0000 (18:57 +0000)]
s/break/continue/. A crazy mistake, somehow unnoticed for more that 2 months.

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

17 years agoBugfix: when copying ass_force_style_list, ending 0 was left out.
eugeni [Mon, 6 Nov 2006 20:09:28 +0000 (20:09 +0000)]
Bugfix: when copying ass_force_style_list, ending 0 was left out.

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

17 years agoCalculate text bounding box in a way that does not depend on actual glyph
eugeni [Mon, 6 Nov 2006 02:47:57 +0000 (02:47 +0000)]
Calculate text bounding box in a way that does not depend on actual glyph
bitmaps. Each glyph is considered to be bounded by (origin, origin + advance)
horizontally, and (max font ascender, max font descender) vertically.

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

17 years agoInitialize fontconfig in VFCTRL_INIT_EOSD handler.
eugeni [Sun, 5 Nov 2006 18:56:31 +0000 (18:56 +0000)]
Initialize fontconfig in VFCTRL_INIT_EOSD handler.

Recent libass api changes moved fontconfig initialization to filter's
config() function. It is bad, because cache update can take a long time,
resulting in unpleasant sound effects. This change restores the original
behaviour.

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

17 years agoCosmetics: indentation fix.
eugeni [Sun, 5 Nov 2006 18:21:39 +0000 (18:21 +0000)]
Cosmetics: indentation fix.

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

17 years agoFix the following compiler warnings:
eugeni [Sun, 5 Nov 2006 17:26:55 +0000 (17:26 +0000)]
Fix the following compiler warnings:
ass.c:999: warning: unused variable 'i'
ass.c:1041: warning: pointer targets in assignment differ in signedness
ass.c:1043: warning: pointer targets in assignment differ in signedness

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

17 years agoMore precise bounding box calculation for karaoke effects.
eugeni [Sat, 4 Nov 2006 17:58:09 +0000 (17:58 +0000)]
More precise bounding box calculation for karaoke effects.

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

17 years agoPrefer microsoft-specific charmaps to all other.
eugeni [Fri, 3 Nov 2006 23:11:00 +0000 (23:11 +0000)]
Prefer microsoft-specific charmaps to all other.
There are some fonts with both 'Unicode' and 'Microsoft/Unicode'
charmaps, and the second always seems to be the right choice.

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

17 years agoIntroduce MSGT_ASS, use it for all libass messages.
eugeni [Fri, 3 Nov 2006 18:15:33 +0000 (18:15 +0000)]
Introduce MSGT_ASS, use it for all libass messages.

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

17 years agoImplement loading subtitles from memory.
eugeni [Fri, 3 Nov 2006 02:15:08 +0000 (02:15 +0000)]
Implement loading subtitles from memory.

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

17 years agoBugfix: sub_recode could deallocate global sub_cp under some circumstances.
eugeni [Fri, 3 Nov 2006 01:41:48 +0000 (01:41 +0000)]
Bugfix: sub_recode could deallocate global sub_cp under some circumstances.

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

18 years agoRevert r20517.
eugeni [Sun, 29 Oct 2006 17:29:55 +0000 (17:29 +0000)]
Revert r20517.

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

18 years agoMove ass_library initialization code to ass_mp.c.
eugeni [Sun, 29 Oct 2006 15:26:13 +0000 (15:26 +0000)]
Move ass_library initialization code to ass_mp.c.

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

18 years agoCopy the following functions to libass to avoid dependency on the rest of mplayer:
eugeni [Sun, 29 Oct 2006 15:03:30 +0000 (15:03 +0000)]
Copy the following functions to libass to avoid dependency on the rest of mplayer:
guess_buffer_cp
utf8_get_char
blur

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

18 years agoFix width -> orig_width typo.
eugeni [Sun, 29 Oct 2006 13:59:36 +0000 (13:59 +0000)]
Fix width -> orig_width typo.

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

18 years agoDon't set PlayResX for plaintext subtitles.
eugeni [Sun, 29 Oct 2006 13:58:30 +0000 (13:58 +0000)]
Don't set PlayResX for plaintext subtitles.
This way font proportions will not depend on frame aspect.

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

18 years agoAdd \N at the end of each subtitle line when converting from subdata.
eugeni [Sun, 29 Oct 2006 13:52:51 +0000 (13:52 +0000)]
Add \N at the end of each subtitle line when converting from subdata.

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

18 years agoLibass interface reworked:
eugeni [Sat, 28 Oct 2006 15:07:18 +0000 (15:07 +0000)]
Libass interface reworked:
- ass_instance_t renamed to ass_renderer_t
- ass_library_t introduced
- use of mplayer-specific global variables limited to ass_mp.c

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

18 years agoIf HAVE_FONTCONFIG is not defined, font_fontconfig might be declared both
reimar [Sat, 28 Oct 2006 10:21:30 +0000 (10:21 +0000)]
If HAVE_FONTCONFIG is not defined, font_fontconfig might be declared both
extern and static, causing compilation to fail

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

18 years agoAdd missing fontconfig_done() call.
eugeni [Fri, 27 Oct 2006 16:02:44 +0000 (16:02 +0000)]
Add missing fontconfig_done() call.

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

18 years agoSplit ass_configure() into several smaller functions.
eugeni [Thu, 26 Oct 2006 20:08:46 +0000 (20:08 +0000)]
Split ass_configure() into several smaller functions.
FontConfig initialization moved from ass_init() to ass_set_fonts().

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

18 years agoDon't forget to apply scaling coefficients to kerning values.
eugeni [Fri, 20 Oct 2006 23:06:52 +0000 (23:06 +0000)]
Don't forget to apply scaling coefficients to kerning values.

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

18 years agoFix center of rotation calculation. It was overly complex and
eugeni [Thu, 19 Oct 2006 18:08:44 +0000 (18:08 +0000)]
Fix center of rotation calculation. It was overly complex and
incorrect for right- and center-aligned text.

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

18 years agoCenter of rotation depends on alignment.
eugeni [Wed, 18 Oct 2006 21:19:51 +0000 (21:19 +0000)]
Center of rotation depends on alignment.

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

18 years agoSupport separate rotation angle for each glyph.
eugeni [Wed, 18 Oct 2006 21:11:29 +0000 (21:11 +0000)]
Support separate rotation angle for each glyph.

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

18 years agoMove base point calculation to a separate function. Will be reused soon.
eugeni [Wed, 18 Oct 2006 18:33:19 +0000 (18:33 +0000)]
Move base point calculation to a separate function. Will be reused soon.

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

18 years agoCosmetics: remove commented code.
eugeni [Wed, 18 Oct 2006 17:57:00 +0000 (17:57 +0000)]
Cosmetics: remove commented code.

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

18 years agoFix a typo in collision detection code.
eugeni [Wed, 18 Oct 2006 15:52:26 +0000 (15:52 +0000)]
Fix a typo in collision detection code.

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

18 years agoRemove an outdated debug message.
eugeni [Mon, 16 Oct 2006 19:02:11 +0000 (19:02 +0000)]
Remove an outdated debug message.

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

18 years agoFix crash because of last_glyph < first_glyph, probably caused by first line
reimar [Sun, 15 Oct 2006 13:03:43 +0000 (13:03 +0000)]
Fix crash because of last_glyph < first_glyph, probably caused by first line
only consisting of '\n'

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

18 years agoZerofill libass static variables during initialization.
eugeni [Sat, 14 Oct 2006 14:42:23 +0000 (14:42 +0000)]
Zerofill libass static variables during initialization.
Patch by Jindrich Makovicka <makovick a gmail d com>.

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

18 years agoFree FT_Stroker during libass deinitialization.
eugeni [Sat, 14 Oct 2006 14:35:33 +0000 (14:35 +0000)]
Free FT_Stroker during libass deinitialization.

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

18 years agoReduce margins for plaintext subtitles.
eugeni [Mon, 9 Oct 2006 19:57:56 +0000 (19:57 +0000)]
Reduce margins for plaintext subtitles.

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

18 years agoAvoid crash with fontconfig 2.3.9x (as shipped with SuSE 10.1, FcDirScan is broken)
reimar [Sun, 8 Oct 2006 13:01:14 +0000 (13:01 +0000)]
Avoid crash with fontconfig 2.3.9x (as shipped with SuSE 10.1, FcDirScan is broken)
and warn that these are beta versions and not supported.

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

18 years agoAdd copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni [Sun, 1 Oct 2006 17:09:04 +0000 (17:09 +0000)]
Add copyright notice and vim/emacs comments to libass and vf_ass.c.

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

18 years agoCosmetics: add some comments.
eugeni [Sun, 24 Sep 2006 16:15:47 +0000 (16:15 +0000)]
Cosmetics: add some comments.

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

18 years agoShadow support in libass.
eugeni [Sun, 24 Sep 2006 16:04:37 +0000 (16:04 +0000)]
Shadow support in libass.

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

18 years agoFree memory in ass_synth_done().
eugeni [Sun, 24 Sep 2006 15:50:31 +0000 (15:50 +0000)]
Free memory in ass_synth_done().

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

18 years agoReduce size of non-blurred bitmaps.
eugeni [Sat, 23 Sep 2006 18:35:19 +0000 (18:35 +0000)]
Reduce size of non-blurred bitmaps.

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

18 years agoCosmetics. Change indentation of block of code to make it consistent with
eugeni [Sat, 23 Sep 2006 17:54:24 +0000 (17:54 +0000)]
Cosmetics. Change indentation of block of code to make it consistent with
the rest of the file.

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

18 years agoBetter fix_outline implementation. No more "fix_outline failed" messages,
eugeni [Sat, 23 Sep 2006 00:15:00 +0000 (00:15 +0000)]
Better fix_outline implementation. No more "fix_outline failed" messages,
should work even with the craziest glyphs.

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

18 years agoFix width -> orig_width typo causing subtitles to be too far to the right
reimar [Fri, 22 Sep 2006 20:47:08 +0000 (20:47 +0000)]
Fix width -> orig_width typo causing subtitles to be too far to the right
for movies with vertical black bars (aspect < monitoraspect).

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