]>
granicus.if.org Git - libass/log
Grigori Goronzy [Wed, 24 Jun 2009 21:48:05 +0000 (23:48 +0200)]
Correct vertical glyph positioning for \fay
Offset the next glyph by the total shear of the glyph before.
This is done before line-wrapping, so that a line that is vertically
sheared will get as much higher, as it is sheared. Fine by me, but
vsfilter probably does it in a different way.
greg [Tue, 23 Jun 2009 00:55:04 +0000 (02:55 +0200)]
Initial support for \fax, \fay override tags
This adds support for the \fax and \fay override tags which can be used
for shearing the text horizontally and vertically. At the moment, this
works correctly on a per-glyph basis, however, the glyph positioning is
wrong, which is especially evident with \fay.
Uoti Urpala [Fri, 19 Jun 2009 16:26:36 +0000 (19:26 +0300)]
Use safe hash functions for composite bitmaps
Previously the composite bitmap hash keys were compared and hashed
based on all the bytes in the struct, which could cause problems
because of padding bytes. Change the code to use field-by-field
operations as already done for other hash key types.
The composite hash key contains two bitmap hash keys. The hashing
function currently handles those by calling the function to calculate
the corresponding bitmap hash, and then updating the composite hash by
treating the result of the function call as a byte buffer. An
alternative would be to change the hash functions so that the initial
hash value could be passed as a parameter to the recursively called
function.
Uoti Urpala [Fri, 19 Jun 2009 16:23:53 +0000 (19:23 +0300)]
ass_cache_template.c: Undo automatic reindent for this file
The 'indent' program does not understand the macro trickery in this
file and the result was clearly worse than the original.
greg [Fri, 19 Jun 2009 05:34:03 +0000 (07:34 +0200)]
Add hack to support empty lines of text
Consecutive forced breaks (\N\N) can be used to create empty lines of
text in other renderers. This doesn't work with the current text
layouter (wrap_lines_smart). This hack inserts a space glyph between two
consecutive forced breaks to get around this limitation.
greg [Fri, 19 Jun 2009 04:30:49 +0000 (06:30 +0200)]
Remove static variable modifier in sub_recode
A variable was needlessly static, this has been corrected.
greg [Fri, 19 Jun 2009 04:04:45 +0000 (06:04 +0200)]
ass_set_fonts: optionally pass fontconfig config path
Optionally pass a fontconfig config file to the fontconfig
initialisation.
This changes the public API.
greg [Fri, 19 Jun 2009 03:33:40 +0000 (05:33 +0200)]
Remove wrappers for ass_set_fonts
ass_set_fonts_ was wrapped through ass_set_fonts and ass_set_fonts_nofc
to either use fontconfig or not. This is not very useful, since a simple
parameter to ass_set_fonts_ can be used instead. Remove the wrapper
functions and rename the real function to ass_set_fonts.
This changes the public API.
greg [Thu, 18 Jun 2009 18:48:23 +0000 (20:48 +0200)]
Silence warnings introduced by -Wall
Silence a few warnings that should be harmless and were introduced by
the -Wall option.
greg [Thu, 18 Jun 2009 18:44:12 +0000 (20:44 +0200)]
Add -Wall to CFLAGS
greg [Thu, 18 Jun 2009 16:20:09 +0000 (18:20 +0200)]
Replace manual fixed-point conversion
Replace a manual fixed-point conversion to d16 by conversion function.
greg [Thu, 18 Jun 2009 15:54:08 +0000 (17:54 +0200)]
Reindent all source code.
Reindent complete source code (*.c, *.h) with indent, the exact command
line being:
indent -kr -i4 -bap -nut -l76 *.c *.h
From now on, new code should use (more or less) K&R style,
only spaces and no tabs, 4 spaces indent width. Avoid long lines.
Fix function declaration pointer spacing.
Remove spaces that were added to many function declarations by indent,
like some_func(foo_t * bar).
Fix indenting of macros in ass.c
greg [Thu, 18 Jun 2009 15:12:06 +0000 (17:12 +0200)]
Add .gitignore
Ignore all objects, binaries and autotools files.
greg [Thu, 18 Jun 2009 12:41:02 +0000 (14:41 +0200)]
Do not print message level of a string (bloats output) and change the
message level to MSGL_INFO.
greg [Thu, 18 Jun 2009 12:16:07 +0000 (14:16 +0200)]
Fix up glyph stroker to avoid buggy rendering.
This adds pre-processing to the stroker which removes certain contours
that'd lead to areas wrongly getting not filled. The approach is very
simple, but works well enough for most cases.
greg [Thu, 18 Jun 2009 12:15:12 +0000 (14:15 +0200)]
Set a more reasonable maximum blur radius and make \blur animatable.
greg [Thu, 18 Jun 2009 12:14:35 +0000 (14:14 +0200)]
Enlarge glyph size more for \blur to avoid artefacts.
greg [Thu, 18 Jun 2009 12:12:32 +0000 (14:12 +0200)]
Remove MAX_GLYPHS and MAX_LINES limits. Instead, dynamically allocate
memory and use reasonable initial sizes.
greg [Thu, 18 Jun 2009 12:09:35 +0000 (14:09 +0200)]
Remove cache globals; move cache data into a separate cache_store struct
that is part of ass_renderer.
greg [Thu, 18 Jun 2009 12:08:49 +0000 (14:08 +0200)]
Eliminate text_info global; move it into ass_renderer.
greg [Thu, 18 Jun 2009 12:08:27 +0000 (14:08 +0200)]
Eliminate render_context global; move it into ass_renderer.
greg [Thu, 18 Jun 2009 12:07:43 +0000 (14:07 +0200)]
Use ass_renderer to access settings instead of passing a pointer to
ass_settings, where appropriate.
greg [Thu, 18 Jun 2009 12:06:40 +0000 (14:06 +0200)]
Move frame_context into ass_renderer. This finishes the previous
elimination.
greg [Thu, 18 Jun 2009 12:06:16 +0000 (14:06 +0200)]
Eliminate frame_context global, started.
greg [Thu, 18 Jun 2009 12:05:52 +0000 (14:05 +0200)]
Eliminate global_settings global.
greg [Thu, 18 Jun 2009 12:00:06 +0000 (14:00 +0200)]
Eliminate ass_renderer global.
greg [Fri, 19 Jun 2009 03:16:30 +0000 (05:16 +0200)]
Warn on \pos, \move redefinitions
Optionally output a warning when a \pos or \move is redefined in a
single subtitle line.
greg [Fri, 19 Jun 2009 03:14:09 +0000 (05:14 +0200)]
ass_render.c: declare functions static
Declare some functions only used in this file static.
greg [Fri, 19 Jun 2009 03:13:07 +0000 (05:13 +0200)]
From uau: libass: Fix cache lookup problem causing memory bloat
The cache code did hash lookups by storing key values in struct fields
and then hashing and comparing the struct as a single memory block. In
at least one case such a struct contained uninitialized padding bytes
which prevented the complete memory area of the struct from matching
even though the fields did. As a result the code failed to find
existing objects in the cache and stored new versions of them, causing
gigabytes of memory use in some circumstances. Initializing the struct
memory to zero before writing the fields avoided such memory use in
tests but is not guaranteed to work if I interpret the C standard
correctly (the compiler is allowed to write garbage over padding bytes
when changing struct member values).
Change the code to use struct-specific hashing and comparison
functions that work field by field to guarantee correct behavior.
Create these by replacing the struct definition with a template that
lists the fields and can be used the generate each of struct
definition, hash function and compare function with some preprocessor
magic (otherwise every field would need to be listed separately in all
three).
greg [Thu, 18 Jun 2009 11:04:29 +0000 (13:04 +0200)]
Add autotools infrastructure.
greg [Thu, 18 Jun 2009 11:00:37 +0000 (13:00 +0200)]
Apply initial changes needed for standalone libass.
eugeni [Tue, 16 Jun 2009 17:58:12 +0000 (17:58 +0000)]
Add a missing check for a NULL return value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29367
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Wed, 13 May 2009 02:58:57 +0000 (02:58 +0000)]
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Tue, 21 Apr 2009 21:27:53 +0000 (21:27 +0000)]
Don't automatically wrap lines when WrapStyle==2.
\n and \N still work.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29219
b3059339 -0415-0410-9bf9-
f77b7e298cf2
reimar [Sat, 28 Mar 2009 19:24:08 +0000 (19:24 +0000)]
Document the ass_render_event event_images parameter.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29087
b3059339 -0415-0410-9bf9-
f77b7e298cf2
reimar [Sat, 28 Mar 2009 19:21:34 +0000 (19:21 +0000)]
Initialize all structs to 0 before using them.
This is consistent with the remaining code (which uses e.g. calloc) and makes
it easier to extend the structs in the future.
As a side effect it fixes several valgrind errors in hashmap_hash/hashmap_key_compare
caused by padding in the structures, but it is not a correct fix for that issue.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29086
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 16 Mar 2009 19:26:23 +0000 (19:26 +0000)]
Cosmetics: reindent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28977
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 16 Mar 2009 19:26:19 +0000 (19:26 +0000)]
Fix uninitialized memory access in ass_fontconfig.
This fixes hangups with plaintext subtitles happening when
the first subtitle is about to be displayed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28976
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Wed, 11 Mar 2009 22:55:23 +0000 (22:55 +0000)]
Use ScaledBorderAndShadow: yes by default.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28935
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 8 Mar 2009 16:13:26 +0000 (16:13 +0000)]
Cosmetics: reindent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28896
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 8 Mar 2009 16:13:21 +0000 (16:13 +0000)]
Treat -font/-subfont as Fontconfig pattern in libass.
Patch by Adrian Stutz (adrian sttz ch).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28895
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Sun, 8 Mar 2009 15:30:40 +0000 (15:30 +0000)]
Remove extraneous braces.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28892
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Sun, 8 Mar 2009 15:30:27 +0000 (15:30 +0000)]
Don't assume width == stride for bitmap composition.
Fixes http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1421
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28891
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Sun, 8 Mar 2009 04:03:28 +0000 (04:03 +0000)]
Fix clipping for pan-and-scan.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28876
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Sun, 8 Mar 2009 04:03:24 +0000 (04:03 +0000)]
Add a proper color check to the overlap compositing.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28875
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Sun, 8 Mar 2009 02:53:14 +0000 (02:53 +0000)]
Replace rotation functions with a simplified version adapted from
vsfilter.
This (mostly) fixes http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1394#c7
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28874
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Sat, 7 Mar 2009 23:56:03 +0000 (23:56 +0000)]
Only use first \org in a line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28873
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Fri, 6 Mar 2009 09:20:14 +0000 (09:20 +0000)]
Fix \be blur start position.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28837
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Fri, 6 Mar 2009 09:20:09 +0000 (09:20 +0000)]
Raise max. number of \be applications to 100, introduce #define for it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28836
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Fri, 6 Mar 2009 01:26:44 +0000 (01:26 +0000)]
Replace magic numbers (for subpixel accuracy masking) with a define.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28835
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Fri, 6 Mar 2009 01:17:05 +0000 (01:17 +0000)]
Use blur with kernel [[1,2,1], [2,4,2], [1,2,1]] for \be.
This is faster than gaussian blur and similar to vsfilter.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28834
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:47:33 +0000 (20:47 +0000)]
Combine adjacent overlapping, translucent glyph borders and shadows to
avoid luminance build-up, which looks ugly.
The resulting, modified bitmaps are stored in separate bitmap cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28824
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:59 +0000 (20:36 +0000)]
Fix positioned events' y-position when pan-and-scan is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28823
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:56 +0000 (20:36 +0000)]
Support for subpixel accuracy of 3 bits for \pos and \move.
Also, restrict advance subpixel accuracy to 3 bits to reduce cache
bloat.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28822
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:52 +0000 (20:36 +0000)]
Style override for ScaledBorderAndShadow.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28821
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:48 +0000 (20:36 +0000)]
Support ScaledBorderAndShadow property.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28820
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:44 +0000 (20:36 +0000)]
Scale shadow displacement and blur size like border size.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28819
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:41 +0000 (20:36 +0000)]
Round shadow displacement to nearest int.
Use double for shadow displacement parameter.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28818
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:39 +0000 (20:36 +0000)]
Support a vsfilter special case:
If PlayResX or Y is 1280/1024 respectively and the other
PlayRes attribute isn't provided, use 1280/1024 for it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28817
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:36:35 +0000 (20:36 +0000)]
Hack: half-merge glyph border with outline to avoid ugly anti-aliasing
in certain situations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28816
b3059339 -0415-0410-9bf9-
f77b7e298cf2
greg [Thu, 5 Mar 2009 20:05:56 +0000 (20:05 +0000)]
Ignore PlayResX/Y aspect ratio for font aspect ratio.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28814
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 1 Mar 2009 19:31:29 +0000 (19:31 +0000)]
Fix a memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28787
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sun, 1 Mar 2009 16:01:24 +0000 (16:01 +0000)]
With pan-and-scan, keep positioned events in their original positions
relative to video.
Patch by Grigori Goronzy (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28783
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Feb 2009 23:06:53 +0000 (23:06 +0000)]
Zero-fill glyph_info_t before use.
Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28754
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Feb 2009 23:06:50 +0000 (23:06 +0000)]
Remove unused function argument.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28753
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Feb 2009 23:06:47 +0000 (23:06 +0000)]
Support fractional arguments for some override tags.
Done by parsing all integers as doubles first and then converting them to the
nearest integer. Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28752
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Feb 2009 23:06:43 +0000 (23:06 +0000)]
Fix two gcc warnings.
Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28751
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Feb 2009 23:06:40 +0000 (23:06 +0000)]
Fix memory leak produced by the \blur patch.
Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28750
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Feb 2009 23:06:37 +0000 (23:06 +0000)]
Stronger blur.
Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28749
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 27 Feb 2009 23:06:34 +0000 (23:06 +0000)]
Allow shadow without border.
Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28748
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 7 Feb 2009 01:13:11 +0000 (01:13 +0000)]
In case of several \move or \pos in one line, prefer the first one.
Patch by Grigori G, greg at chown ath cx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28473
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 7 Feb 2009 01:13:07 +0000 (01:13 +0000)]
Add stubs for a few unimplemented tags.
Patch by Grigori G, greg at chown ath cx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28472
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Sat, 7 Feb 2009 01:13:02 +0000 (01:13 +0000)]
Allow \be with arguments other than 0 or 1. Implement \blur.
Patch by Grigori G, greg at chown ath cx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28471
b3059339 -0415-0410-9bf9-
f77b7e298cf2
compn [Thu, 29 Jan 2009 02:23:06 +0000 (02:23 +0000)]
increase max glyph and lines limit
patch by Scaevolus on irc
fixes http://samples.mplayerhq.hu/Matroska/subtitles/090128_gszs02.mkv
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28386
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Wed, 3 Dec 2008 23:01:03 +0000 (23:01 +0000)]
Get rid of pointless 'extern' keywords.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085
b3059339 -0415-0410-9bf9-
f77b7e298cf2
reimar [Sun, 2 Nov 2008 11:48:20 +0000 (11:48 +0000)]
Consistently use NULL for pointers instead of 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27876
b3059339 -0415-0410-9bf9-
f77b7e298cf2
reimar [Sun, 2 Nov 2008 09:57:22 +0000 (09:57 +0000)]
Fallback to non-fontconfig behaviour when fontconfig initialization fails.
Also fixes a memleak in that case, bug #1313.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27875
b3059339 -0415-0410-9bf9-
f77b7e298cf2
aurel [Fri, 5 Sep 2008 22:59:01 +0000 (22:59 +0000)]
libass: fix type mismatch between size parameter and the way it's used
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27531
b3059339 -0415-0410-9bf9-
f77b7e298cf2
aurel [Fri, 5 Sep 2008 15:07:06 +0000 (15:07 +0000)]
libass: add a new ass_process_data() to process demuxed subtitle packets
conforming to the ASS spec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27530
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Fri, 8 Aug 2008 20:08:02 +0000 (20:08 +0000)]
Don't print drawing commands on screen.
Drawing mode is not implemented in libass.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27442
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 7 Aug 2008 22:20:58 +0000 (22:20 +0000)]
If (has outline) blur(outline) else blur(glyph).
If there is an outline, the glyph itself should not be blurred. Keeps
the border between glyph and outline clear (unblurred), which is
probably how it should be.
Patch by Diogo Franco (diogomfranco gmail com).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27441
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 7 Aug 2008 22:20:56 +0000 (22:20 +0000)]
\org turns off collision detection.
Patch by Diogo Franco (diogomfranco gmail com).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27440
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 7 Aug 2008 22:20:54 +0000 (22:20 +0000)]
Treat \h as space character.
Patch by Robert Rudd (robrudd at users sourceforge net).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27439
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 7 Aug 2008 22:20:52 +0000 (22:20 +0000)]
Calculate subtitle origin in floating point.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27438
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 7 Aug 2008 22:20:50 +0000 (22:20 +0000)]
Calculate subtitle position in floating point.
Improves subtitle position precision from a unit of script coordinates
to a screen pixel.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27437
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Thu, 7 Aug 2008 10:36:07 +0000 (10:36 +0000)]
Rename font-related preprocessor directives.
Switch them from a HAVE_ to a CONFIG_ prefix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27425
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Fri, 1 Aug 2008 20:28:58 +0000 (20:28 +0000)]
Rename some preprocessor directives from CONFIG_* to HAVE_* where appropriate;
CONFIG_ prefix for configurable options, HAVE_ for system-dependent stuff.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27391
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Wed, 30 Jul 2008 12:01:30 +0000 (12:01 +0000)]
Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Wed, 9 Jul 2008 15:05:56 +0000 (15:05 +0000)]
Fix \fn without an argument consuming the next '\'.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27242
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 23 Jun 2008 14:46:55 +0000 (14:46 +0000)]
Check if the font set returned from FcFontSort in not NULL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27128
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 23 Jun 2008 14:46:52 +0000 (14:46 +0000)]
Reindent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27127
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 23 Jun 2008 14:46:50 +0000 (14:46 +0000)]
Only use application font dir if library->fonts_dir is not NULL.
This can be the case if ass_set_fonts_dir() call is omitted, results in
segfault. Never happens in the current MPlayer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27126
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 29 May 2008 18:35:22 +0000 (18:35 +0000)]
The size of output buffer is stored in 'osize', not 'size'.
This is just for readability, the code behaviour is not changed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26924
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 29 May 2008 18:35:21 +0000 (18:35 +0000)]
Clear iconv conversion state also in libass.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26923
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 29 May 2008 18:35:18 +0000 (18:35 +0000)]
Offset should be size_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26922
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 22 May 2008 22:52:58 +0000 (22:52 +0000)]
Cosmetics: reindent after the last commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26857
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 22 May 2008 22:52:57 +0000 (22:52 +0000)]
Read all faces of a memory font, not just the first one.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26856
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Thu, 22 May 2008 08:58:06 +0000 (08:58 +0000)]
Fix compilation with FontConfig <= 2.2.96.
It lacks FcPatternRemove function. The code will work fine, but produce an
incorrect "Selected font is not the requested one" warning in rare cases.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26851
b3059339 -0415-0410-9bf9-
f77b7e298cf2
eugeni [Mon, 19 May 2008 18:37:27 +0000 (18:37 +0000)]
In case 2 styles have the same name, prefer the latest one.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26839
b3059339 -0415-0410-9bf9-
f77b7e298cf2
diego [Fri, 16 May 2008 09:42:28 +0000 (09:42 +0000)]
cosmetics: Remove useless parentheses from return statements.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26791
b3059339 -0415-0410-9bf9-
f77b7e298cf2