It makes the following changes:
* Changes to vout_subpictures.c to create some new variables which
renderers are free to use to render time-specific subtitling
information, such as karaoke. One of these variables allows for the text
region to not be permanently converted to YUVA/YUVP - so that more than
one pass can be made on the subtitle - so that it will update correctly
over time. If a rendering module doesn't use or change any of the
variables it behaves the same as usual, with the text region being
rendered just the once to a YUVA/YUVP region and then just blended to
the video on future passes.
* Changes to alignment implementation: no longer use the i_text_align
field of font_style_t at all; require the alignment to be correctly
setup solely in the subpicture_region_t's i_align field (this is so that
the alignment initially inherited from a style can be overridden). This
meant minor changes to freetype.c and quartztext.c as well as the
deletion of the i_text_align field in vlc_osd.h. It also involved some
changes in subsdec.c, where most of the work in this patch occurs.
* Minor change to quartztext.c to correct the interpretation of font
size parameter, making it consistent with a similar change being made in
subsdec.c, and to strip out multiple whitespace in html subtitles
(Similar changes to the freetype.c module have already been made as part
of a separate larger patch submission to fix problems with bidirectional
styled text in that module)
* Adds 2 new fields for carrying karaoke specific information to the
text_style_t struct in vlc_osd.h. Changed the default_text_style's
definition to agree with the changes made in the fields of text_style_t
struct.
* Support for <image> and <karaoke> subtitles in subsdec.c. (Full
working karaoke also requires an as-yet unsubmitted patch to the
renderers to implement)
* Support for more than one subpicture_region_t per timestamp, with each
subpicture region being able to have its own alignment and margins and
type: text or image
* Better calculation of plain-text versions of html subtitles
NB: This patch still makes use of a mechanism of explicitly requesting
the sdl_image module to decode any images it wants. The main reason for
this is that the bmp decoder in ffmpeg (the image decoder with the
highest score) presently only handles 16, 24 and 32 bit depths. An
alternative is for us to switch off the bmp support in ffmpeg for the
time being and the segment of code in subsdec.c that explicitly requests
this module (along with one line added to sdl_image.c) can be removed.
I'm not fussed by either implementation, but this way probably affects
fewer other modules, so have submitted it this way.
Jean-Paul Saman [Fri, 6 Jul 2007 21:32:38 +0000 (21:32 +0000)]
Added transparency to vbi pages and added a callback to vbi-opaque setting to change it at runtime from the gui. Threw some compiler fixes and cleanup in the mix.
Jean-Paul Saman [Fri, 6 Jul 2007 21:32:25 +0000 (21:32 +0000)]
This patch is a hack to force usage of zvbi teletext decoder. It cannot be resolved cleanly because the codec telx.c and zvbi.c require different offsets in the input buffer, while using the same FOURCC. This is a conflict which should be resolved in another way.
* "%i objekt i spellistan" as translation for "No items in the playlist" may trigger unexpected UI strings on OSX. I've removed that translation for now, but we should get a correct translation for the release. Fixes #1234 (forward-porting [20737])
Freetype:
This patch:
* try to solve the fribidi styles problems that have occured
* introduces ft_style_t, to solve the precedent problem,
* solves a few errors from precedent commits,
* split some big functions on my request to avoid many imbrications.
D-Bus: The MPRIS uses a new services behavior to allow multiple mpris-enabled
players to run simultaneously.
Thus the dbus service name is now org.mpris.vlc instead of org.freedesktop.MediaPlayer.
Patch by Mirsal ENNAIME.
Add option to format strings to prevent displaying dashes if the meta info was unavailable (ie: if time is unavailable, "$T" will display "--:--:--" while "$ T" won't display anything). This is of course completely untested :)
Ken Self [Sun, 1 Jul 2007 12:35:00 +0000 (12:35 +0000)]
Add BDA shortcuts dvbt, dvbc, dvbs (without hyphens) to conform to rev 20427: only allow letters, digits and slash in access/demux. Also an extra error message if graph does not start running.
Laurent Aimar [Fri, 29 Jun 2007 22:41:49 +0000 (22:41 +0000)]
Fixed potential sscanf buffer overflow in :
- ParseMicroDvd
- ParseSubRip
- ParseSubViewer
- ParseSSA
(Reported by Michal Luczaj)
Fixed memory leak in ParseSSA
Fixed invalid memory access in
- ParseSSA
- ParseVplayer
Improve a bit MPL2 support (remove italic format + initial space on
first subtitle)
All: simplify
check malloc (what a boring thing)
do not allocate up to 160ko on the stack
( I have tested all formats with a small sample but please test/report any
regression on your files. )
Felix Paul Kühne [Tue, 26 Jun 2007 18:59:05 +0000 (18:59 +0000)]
* make sure that VLC-release.app includes permissions which allow it to run on restricted accounts. Credit Michael C. Haller <michael --at.- cilly com>. Additionally, don't create bogus links to the AppleScript library, which moved a while ago.
Damien Fouilleul [Tue, 26 Jun 2007 17:53:05 +0000 (17:53 +0000)]
activex: remove logo when control runs in usermode and fill canvas with background color instead, which is settable as "BackColor" property (or bgcolor for web).
Damien Fouilleul [Mon, 25 Jun 2007 18:06:52 +0000 (18:06 +0000)]
- libvlc APIs: bug fixing, and please note that exception argument is OPTIONAL (can be null), do not use exception to control API flow unless you created your own
Qt4 - Add a folder opening option with an icon, due to popular request,
Clean some code, comment it and cosmetics.
Fix also a cosmetic button bug spotted by funman.
Libvlc: Implement media_instance_[get|set]_media_descriptor. Now, media_instance_new creates an empty object. The old _new is now _new_from_media_descriptor.