2001-11-08 01:37:16 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* 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$
|
2001-11-08 01:37:16 +08:00
|
|
|
*
|
2006-02-02 03:20:17 +08:00
|
|
|
* Author: Stéphane Borel <stef@via.ecp.fr>
|
2002-05-15 03:33:54 +08:00
|
|
|
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
|
2001-11-08 01:37:16 +08:00
|
|
|
*
|
|
|
|
* 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.
|
2003-10-25 01:41:58 +08:00
|
|
|
*
|
2001-11-08 01:37:16 +08:00
|
|
|
* 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.
|
2001-11-08 01:37:16 +08:00
|
|
|
*****************************************************************************/
|
|
|
|
|
2006-12-03 21:48:21 +08:00
|
|
|
#if !defined( __LIBVLC__ )
|
|
|
|
#error You are not libvlc or one of its plugins. You cannot include this file
|
|
|
|
#endif
|
|
|
|
|
2002-07-21 02:01:43 +08:00
|
|
|
struct iso639_lang_t
|
2002-05-15 03:33:54 +08:00
|
|
|
{
|
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 */
|
2002-05-15 03:33:54 +08:00
|
|
|
};
|
|
|
|
|
2003-10-25 01:41:58 +08:00
|
|
|
#if defined( __cplusplus )
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
|
|
|
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 * ) );
|
2002-11-11 22:39:12 +08:00
|
|
|
VLC_EXPORT( const char *, DecodeLanguage, ( uint16_t ) );
|
2003-10-25 01:41:58 +08:00
|
|
|
#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
|
|
|
|