vlc/include/iso_lang.h

49 lines
2.0 KiB
C
Raw Normal View History

/*****************************************************************************
* iso_lang.h: function to decode language code (in dvd or a52 for instance).
*****************************************************************************
2005-07-09 14:17:09 +08:00
* Copyright (C) 1998-2001 the VideoLAN team
2005-03-03 00:47:31 +08:00
* $Id$
*
2006-02-02 03:20:17 +08:00
* Author: Stéphane Borel <stef@via.ecp.fr>
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
2006-01-13 07:10:04 +08:00
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#if !defined( __LIBVLC__ )
#error You are not libvlc or one of its plugins. You cannot include this file
#endif
struct iso639_lang_t
{
2006-10-22 01:28:22 +08:00
const char * psz_eng_name; /* Description in English */
const char * psz_native_name; /* Description in native language */
const char * psz_iso639_1; /* ISO-639-1 (2 characters) code */
const char * psz_iso639_2T; /* ISO-639-2/T (3 characters) English code */
const char * psz_iso639_2B; /* ISO-639-2/B (3 characters) native code */
};
#if defined( __cplusplus )
extern "C" {
#endif
VLC_EXPORT( const iso639_lang_t *, GetLang_1, ( const char * ) );
VLC_EXPORT( const iso639_lang_t *, GetLang_2T, ( const char * ) );
VLC_EXPORT( const iso639_lang_t *, GetLang_2B, ( const char * ) );
VLC_EXPORT( const char *, DecodeLanguage, ( uint16_t ) );
#if defined( __cplusplus )
}
#endif
Some heavy changes today: * Removed duplicate function checks from configure.in. * Added extra magic to Makefile.modules so that the module Makefiles are now ridiculously simple. And I mean *simple*. Check it! This will make a possible switch to full autoconf/automake a lot easier. * Added the vlc version name to the plugin symbols, to be sure we only load plugins with the same version number. A nasty consequence is that you need to rebuild your tree after midnight if you are using a CVS tree :-) * Got rid of modules_export.h by #defining exported functions in the same header as their prototype. * Added modules_inner.h and other commonly used .h files to common.h so there are less and less files to include, and renamed common.h to <videolan/vlc.h>. * First modifications to the module handling system towards my ultimate goal to get rid of the *_Probe functions. Got rid of TestMethod and TestCPU, as well as src/misc/tests.c. * Wrote the chroma plugin handling functions. No YUV functions have been ported yet because it'ls a lot of work, but the core system works, I tried it with a naive yv12->rgb16 plugin (which will disappear when the real functions are ready). * Made a lot of functions in dvd_summary.c one-liners to avoid wasting too many output lines. * Fixed a segfault in input_dvd.c:DVDInit. * Added a fixfiles.sh script in plugins/gtk to be run after Glade has generated its C files. * Did some work on the KDE interface to make it suck a bit less. It still segfaults, but at least it runs and it looks less ugly. * RGB SDL rendering works again, though in 16bpp only. * Made plugins/vcd/linux_cdrom_tools.c independent of any vlc structure so that it'll be easily put in a library. Maybe libdvdcss? * Fixed VCD date display. * Merged vout_xvideo.c, vout_x11.c and vout_common.c into xcommon.c. * Wrote non-Shm XVideo output. * Made X11 output work again. Still pretty unstable, only works for 16bpp. * Additional french translation in po/fr.po. Any taker for the rest? * Fixed a segfault in video_output.c when the allocated pictures were not direct buffers. * If $DISPLAY isn't set, don't try to run the Gtk+ interface. * Replaced 48x48 .xpm images with 32x32 ones to conform to Debian policy (Closes Debian bug #126939). * Removed the automatic ./configure launch when running `make all' for the first time. Stuff currently more broken than it ought to be: * The wall filter. Being fixed. * x11 and sdl plugins for depth != 16bpp. * Software YUV. * gvlc, gnome-vlc, kvlc shortcuts. Use --intf instead for the moment.
2001-12-30 15:09:56 +08:00