[vlc-devel] CVS Commit (sigmunau)

cvs at videolan.org cvs at videolan.org
Mon Jul 14 23:32:59 CEST 2003


Update of /var/cvs/videolan/vlc
Modified Files:
	configure.ac 

Update of /var/cvs/videolan/vlc/include
Modified Files:
	osd.h video_output.h 

Update of /var/cvs/videolan/vlc/modules/codec/spudec
Modified Files:
	spudec.c spudec.h text.c 

Update of /var/cvs/videolan/vlc/modules/control/lirc
Modified Files:
	lirc.c 

Update of /var/cvs/videolan/vlc/modules/demux/util
Modified Files:
	sub.c 

Update of /var/cvs/videolan/vlc/modules/misc
Modified Files:
	Modules.am 
Added Files:
	freetype.c 

Update of /var/cvs/videolan/vlc/modules/misc/dummy
Modified Files:
	Modules.am dummy.c dummy.h 

Update of /var/cvs/videolan/vlc/modules/video_filter
Modified Files:
	Modules.am 
Removed Files:
	osd_text.c 

Update of /var/cvs/videolan/vlc/src/misc
Modified Files:
	modules.c 

Update of /var/cvs/videolan/vlc/src/video_output
Modified Files:
	video_output.c video_text.c 

Log Message:
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.



-- 
sigmunau
-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list