summaryrefslogtreecommitdiffstats
path: root/libvo/sub.c
Commit message (Collapse)AuthorAgeFilesLines
* Translation system changes part 1: wrap translated stringsAmar Takhar2009-07-071-13/+13
| | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
* Merge svn changes up to r28641Uoti Urpala2009-02-181-2/+2
|\ | | | | | | | | | | | | | | Convert vo_x11_border (used in vo_gl/gl2 though the vo_gl_border macro) to use a wrapper macro in old-style VOs which do not provide a VO object argument. Before this function had an explicit global_vo argument in vo_gl/gl2. New vo_vdpau uses it too so use the same mechanism as most other functions.
| * Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:diego2009-02-171-1/+1
| | | | | | | | | | | | | | mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
| * The CONFIG_TV_TELETEXT preprocessor directive is defined/undefined,diego2009-02-171-1/+1
| | | | | | | | | | | | | | | | so use it with #ifdef instead of #if; fixes the warning: libvo/sub.c:1233:5: warning: "CONFIG_TV_TELETEXT" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28621 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28537Uoti Urpala2009-02-121-0/+17
|\|
| * Add standard license headers, unify header formatting.diego2009-02-081-0/+17
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28481 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28461Uoti Urpala2009-02-041-4/+0
|\|
| * Remove pointless #ifdef around internal header includes.diego2009-02-011-4/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28436 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28310Uoti Urpala2009-01-151-13/+52
|\| | | | | | | | | | | | | | | The libdvdread4 and libdvdnav directories, which are externals in the svn repository, are at least for now not included in any form. I added configure checks to automatically disable internal libdvdread and libdvdnav if the corresponding directories are not present; if they're added manually then things work the same as in svn.
| * Change vo_draw_text to a vo_draw_text_ext function which draws DVD navigationreimar2009-01-101-10/+40
| | | | | | | | | | | | | | highlights at the correct position with the high-resolution OSD of -vo gl. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28290 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28087Uoti Urpala2008-12-041-3/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: command.c libao2/ao_ivtv.c libao2/ao_v4l2.c libmpcodecs/dec_video.h libvo/aspect.h libvo/sub.c libvo/sub.h libvo/vo_directx.c libvo/vo_macosx.m libvo/vo_quartz.c mp_core.h mplayer.c mplayer.h osdep/getch2.h osdep/timer.h
| * Get rid of pointless 'extern' keywords.diego2008-12-031-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove unused declarations and references to vo_draw_text_osd(),diego2008-12-031-2/+0
| | | | | | | | | | | | | | vo_draw_text_progbar(), vo_draw_text_sub(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28083 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r27441Uoti Urpala2008-08-081-9/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cfg-common-opts.h command.c configure input/input.c libmpcodecs/dec_video.c libmpcodecs/vd.c libmpdemux/stheader.h libvo/sub.c libvo/video_out.c libvo/vo_xv.c libvo/vosub_vidix.c libvo/x11_common.c libvo/x11_common.h mp_core.h mplayer.c stream/stream.h
| * Rename font-related preprocessor directives.diego2008-08-071-3/+3
| | | | | | | | | | | | | | Switch them from a HAVE_ to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27425 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Change a bunch of video/audio-output-specific preprocessor directives fromdiego2008-08-031-6/+6
| | | | | | | | | | | | | | a HAVE_ prefix to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27402 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r27374Uoti Urpala2008-07-301-6/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cfg-common-opts.h cfg-mplayer.h command.c configure libmpcodecs/dec_video.c libmpcodecs/vd.c libmpcodecs/vf_vo.c libmpdemux/demuxer.h libmpdemux/stheader.h mp_core.h mplayer.c stream/stream_radio.c
| * Start unifying names of internal preprocessor directives.diego2008-07-301-6/+6
| | | | | | | | | | | | | | | | 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
* | Move global sub_font to OSD structUoti Urpala2008-06-241-10/+10
| |
* | Create a context struct for OSD stateUoti Urpala2008-06-241-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit creates the struct and passes it to some functions that needs to access OSD state but does not yet move much data from globals to it. vf_expand accesses the OSD state for rendering purposes outside of the normal OSD draw time. The way this currently works is suboptimal, but I did not attempt to clean it up now. To keep things working the same way vf_expand needs to know the address of the state object to be able to access the data even in the functions that should normally not need it. For that purpose this commit adds a VFCTRL to tell vf_expand the address of the object.
* | sub.c: Make tables constUoti Urpala2008-05-011-2/+2
| |
* | Add context variable to vo_draw_text callbackUoti Urpala2008-04-231-7/+10
|/ | | | | Add a context variable and rename the function to osd_draw_text. Create a new vo_draw_text that is a wrapper for VOs using old API.
* Allow independent scaling of vo_font and sub_font.reimar2008-01-271-6/+6
| | | | | | | Patch by Guillaume LECERF (foxcore gmail com). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25879 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: misc typo fixesdiego2007-09-251-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24615 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-09-241-1/+2
| | | | | | | | sub.c: In function 'vo_update_osd': sub.c:1104: warning: suggest explicit braces to avoid ambiguous 'else' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24602 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-09-101-0/+1
| | | | | | | | sub.c: In function 'vo_update_text_teletext': sub.c:293: warning: implicit declaration of function 'GetTimer' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24398 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement boxes for subtitle teletext pages.voroshil2007-09-081-0/+1
| | | | | | | | | | Text is shown in opaque boxes inside transparent teletext page. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24364 b3059339-0415-0410-9bf9-f77b7e298cf2
* Proper support for flashing chars in teletext pages.voroshil2007-09-011-2/+4
| | | | | | | | Patch from Otvos Attila oattila at chello dot hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24312 b3059339-0415-0410-9bf9-f77b7e298cf2
* Identifiers should not start with two underscores.diego2007-08-151-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24066 b3059339-0415-0410-9bf9-f77b7e298cf2
* Teletext supportvoroshil2007-07-291-0/+263
| | | | | | | | Part 4/5: teletext page rendering git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23923 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use -font for subtitles when -subfont is not given, patch by kiriujazuxy2007-07-111-2/+8
| | | | | | | <mplayer-patches AT en-directo DOT net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23762 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert r23530.voroshil2007-06-211-130/+0
| | | | | | | | | r23530 breaks policy: notification was not sent to mailing list, agreements of other devs were not received. Code also should be reviewed/cleaned up/fixed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23593 b3059339-0415-0410-9bf9-f77b7e298cf2
* The audio balance feature implemented with af_pan.zuxy2007-06-201-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23588 b3059339-0415-0410-9bf9-f77b7e298cf2
* Teletext support for tv:// (v4l and v4l2 only)voroshil2007-06-101-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | modified patch from Otvos Attila oattila at chello dot hu Module uses zvbi library for all low-level VBI operations (like I/O with vbi device, converting vbi pages into usefull vbi_page stuctures, rendering them into RGB32 images). All teletext related stuff (except properties, slave commands and rendering osd in text mode or RGB32 rendered teletext pages in spu mode) is implemented in tvi_vbi.c New properties: teletext_page - switching between pages teletext_mode - switch between on/off/opaque/transparent modes teletext_format - (currently read-only) allows to get format info (black/white,gray,text) teletext_half_page - trivial zooming (displaying top/bottom half of teletext page) New slave commands: teletext_add_dec - user interface for jumping to any page by editing page number interactively teletext_go_link - goes though links, specified on current page git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23530 b3059339-0415-0410-9bf9-f77b7e298cf2
* add new -subfont option, that allows having a different font for OSD ↵ben2007-05-201-28/+36
| | | | | | (controls and menu) and subtitles git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23356 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark utf8_get_char parameter as const and fix a compiler warningreimar2006-12-111-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21598 b3059339-0415-0410-9bf9-f77b7e298cf2
* Another simplificationreimar2006-12-111-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21597 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse utf8_get_char in subtitle rendering code.reimar2006-12-111-13/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21596 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l typo in 21380 disabled OSD with at least xvmc.reimar2006-12-031-1/+1
| | | | | | | Patch by Andrew Cohen [cohen bu edu] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21459 b3059339-0415-0410-9bf9-f77b7e298cf2
* EMISSINGBRAIN: No, OSD objects of size 0 sure are _not_ visible.reimar2006-11-291-2/+6
| | | | | | | | Fixes massive slowdown after adding dvdnav highlight support, at least with -vo xvmc, potentially others too. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21380 b3059339-0415-0410-9bf9-f77b7e298cf2
* keep nav highlight event in dvdnav priv structureben2006-11-251-6/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21235 b3059339-0415-0410-9bf9-f77b7e298cf2
* better nav highlight handlingben2006-11-251-6/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21216 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for dvdnav menu buttons overlay as simple alpha boxes (rework from ↵ben2006-11-251-0/+34
| | | | | | Otvos Attila's series of patches) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21209 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse UTF-8 reading code in libavutilreimar2006-08-121-17/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19372 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make some functions static.uau2006-07-081-1/+1
| | | | | | | Patch by Stefan Huehner, stefan at huehner org. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18955 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make utf8_get_char non-static.eugeni2006-07-071-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18940 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support UTF8 in OSD textreimar2006-06-151-2/+31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18720 b3059339-0415-0410-9bf9-f77b7e298cf2
* Missing free for malloced char_seq in OSD codereimar2006-06-151-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18719 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \rathann2006-02-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added translatable messages for OSD localization to help/help_mp-en.hptt2005-11-061-12/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16924 b3059339-0415-0410-9bf9-f77b7e298cf2
* make bottom alignment the default since it's the only sane mode when sub_pos ↵rfelker2005-10-231-1/+1
| | | | | | is near bottom (default) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16840 b3059339-0415-0410-9bf9-f77b7e298cf2
* reverse incorrect sub alignment change, ok'd by diegorfelker2005-10-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16839 b3059339-0415-0410-9bf9-f77b7e298cf2
* The conditions for bottom (2) and top (1) subtitle alignment are reversed.diego2005-10-231-1/+1
| | | | | | | patch by Paul TT < paultt == at -- hackerjournal == dot -- it > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16835 b3059339-0415-0410-9bf9-f77b7e298cf2
* defer loading of the font after display size change to avoid uselesshenry2005-04-101-4/+26
| | | | | | | | reloading - hack, but needed because for most of the vo's the panscan information and screen size are updated asynchronously git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15086 b3059339-0415-0410-9bf9-f77b7e298cf2
* reload font on each change of the display sizehenry2005-04-091-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15079 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.diego2004-10-281-1/+1
| | | | | | | Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
* This time is a patch to improve subtitle alignment management. Itfaust32004-09-151-5/+12
| | | | | | | | | | | implements SSA alignment styles; note that alignment for SSA files is not actually supported, but for SAMI files (which use the same alignment codes) it is. patch by Salvatore Falco <sfalco at studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13344 b3059339-0415-0410-9bf9-f77b7e298cf2
* don't use uninitialized font descriptionsfaust32004-07-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12795 b3059339-0415-0410-9bf9-f77b7e298cf2
* prevent lockups on words which do not fit on the screen - temporary fixhenry2003-10-271-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11298 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of the annoying and useless "Subtitles requested but not found" message.mosu2003-10-211-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11202 b3059339-0415-0410-9bf9-f77b7e298cf2
* Subtitle alignment & smart splitting by Salvatore Falcohenry2003-09-211-83/+303
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10917 b3059339-0415-0410-9bf9-f77b7e298cf2
* TiVo demuxer and sub-cc/osd decoderarpi2003-06-091-0/+3
| | | | | | | | | | | |