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