• Sigmund Augdal Helberg's avatar
    All: My shot at improving subtitle rendering in vlc. Now each vout uses a... · 14b3f0cf
    Sigmund Augdal Helberg authored
    All: My shot at improving subtitle rendering in vlc. Now each vout uses a "text renderer" module to render text on the video when needed. I decieded to make this a module type, because other api's (win32 and macosx) is supposed to do better than freetype under some circumstances.
    
    include/video_output.h: added some members needed by text renderer modules
    src/video_output/video_output.c: load and unload text renderer module when needed
    src/video_output/video_text.c: implemented some functions to show text on the video
    include/osd.h: exported the functions to show text
    modules/misc/Modules.am, module/misc/freetype.c: new text renderer module, largly based on the old osdtext module.
    modules/video_filter/Modules.am, modules/video_filter/osd_text.c: removed the osdtext module
    configure.ac: changes "osdtext" to "freetype" some places
    modules/codec/spudec/*: when iconv is available, use it to convert textual subtitles from the encoding given by --sub-encoding to utf8. Use new code to render subtitles
    modules/control/lirc/lirc.c: use new code to give feedback on buttons pressed. untested.
    modules/demux/util/sub.c: remove all traces of the ugly old osdtext module
    modules/misc/dummy/*: added a "text renderer" submodule in the dummy module
    src/misc/modules.c: included osd.h as it seems to be needed to export symbols
    
    
    final notes: you need to give a proper value to --freetype-font. This should be the path to a font file freetype2 can handle (almost any format afaik) with a unicode translation table in it. Windows ttf files will do. In linux at least openoffice distributes some fonts that work. I think macosx and beos also has useable fonts.
    
    14b3f0cf
Name
Last commit
Last update
autotools Loading commit data...
debian Loading commit data...
doc Loading commit data...
evc Loading commit data...
extras/MacOSX Loading commit data...
include Loading commit data...
ipkg Loading commit data...
lib Loading commit data...
lxdialog Loading commit data...
m4 Loading commit data...
modules Loading commit data...
mozilla Loading commit data...
msvc Loading commit data...
po Loading commit data...
python Loading commit data...
share Loading commit data...
src Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Doxyfile Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
INSTALL.win32 Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.MacOSX.rtf Loading commit data...
THANKS Loading commit data...
bootstrap Loading commit data...
build-vlc Loading commit data...
config.in Loading commit data...
configure.ac Loading commit data...
defconfig Loading commit data...
install-win32 Loading commit data...
menuconfig Loading commit data...
toolbox Loading commit data...
vlc-config.in.in Loading commit data...
vlc.ebuild Loading commit data...
vlc.spec Loading commit data...
vlc.spec.mdk Loading commit data...