summaryrefslogtreecommitdiffstats
path: root/ass_mp.c
Commit message (Collapse)AuthorAgeFilesLines
* sub/OSD: move some related files to sub/Uoti Urpala2011-01-261-355/+0
|
* subtitles: change default libass rendering styleUoti Urpala2011-01-261-18/+16
| | | | | | | | | | | | | | | | | | | | | | Change the default style used for rendering plaintext subtitles with libass. The following attributes change: * FontSize: Increase the size multiplier used with the default -subfont-autoscale 3 from 1.4 to 1.7, thus making the font 21% larger. Actually implementing the -subfont-autoscale modes other than 1 would give a multiplier of 5/3=1.67 for 4:3 aspect ratio video, sqrt(337)/9=2.04 for 16:9. * PrimaryColour: Change color from yellow to white. * Outline: Before this was 2 regardless of user font size choice. Make it FontSize/16 instead. With default font size this is about half the previous width. * Kerning: Enable kerning for the track. There won't be styling designed for VSFilter's lack of kerning, and hopefully people won't use broken fonts with bad kerning tables for the default font either.
* cleanup: rename ass_* functions to mp_ass_*Uoti Urpala2011-01-261-9/+10
| | | | | | | | The various ass_* functions were created when libass was part of the MPlayer tree and the distinction between MPlayer-specific and other functions was less clear. Now that libass is a clearly separate library, using the same ass_* namespace for player functions is ugly. Rename the functions to use mp_ass_ prefix instead.
* cleanup: some random minor code simplification and cleanupUoti Urpala2011-01-261-1/+2
|
* sd_ass: remove subreader use, support plaintext markupUoti Urpala2011-01-181-1/+1
| | | | | | | | | | | Originally, when rendering plaintext subs with libass, the subtitles were first converted to the "struct subtitle" form with sub_add_text() and then from that to libass events. Change sd_ass to convert the subtitles directly to libass events without using the old sub machinery. The new conversion at least fixes some timing issues. Also use the markup support added in the previous commit, so that HTML-style markup is also supported in "plaintext" subs rendered with libass.
* ass_mp.[ch]: #include "config.h"Uoti Urpala2010-11-021-0/+1
| | | | | It was indirectly included through subreader.h but better do it explicitly. ass_mp.h also included itself, remove that.
* Simplify code: make open_stream() accept NULL file_format argumentreimar2010-11-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31952 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge svn changes up to r30967Uoti Urpala2010-04-261-1/+1
|
* Merge svn changes up to r30748Uoti Urpala2010-03-101-1/+1
|
* subs: support loading external ASS subtitles via stream layerUoti Urpala2010-03-091-0/+52
| | | | | | | | | Previously the argument of the "-sub" option was always interpreted as a local filename when trying to read it as a libass file. Use the stream layer to read it instead, so that protocols like 'http://' are also supported like they are for the main video/audio file. Based on patch by Yuriy Kaminskiy <yumkam@mail.ru>
* Disable libass fallbacks for fontconfig < 2.4.2Grigori Goronzy2010-01-271-6/+2
| | | | | | | | | | libass doesn't support fontconfig < 2.4.2 so fallbacks for these ancient versions aren't needed anymore. Also update the man page (English, German) to reflect the change. Additionally note that -embeddedfonts controls the use of ASS script embedded fonts too. -embeddedfonts is now always enabled by default. Fonts are never extracted into a directory anymore but passed to libass via memory.
* options: Move ass_enabled to options structUoti Urpala2009-12-021-1/+0
|
* Use light autohinting by default in libassGrigori Goronzy2009-08-071-1/+1
| | | | | | | FreeType's native hinter causes rendering errors with many fonts, especially with broken fonts that unfortunately tend to be used a lot with SSA/ASS subtitles. Use the light autohinter for unscaled OSD by default to avoid these problems.
* Change type names to match upstream libassGrigori Goronzy2009-08-071-22/+22
|
* Remove internal libass treeUoti Urpala2009-07-261-0/+307
Remove the libass/ directory and use the newest standalone version of the library instead.