* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* common.h: common definitions
|
|
|
|
* Collection of useful common types and macros definitions
|
|
|
|
*****************************************************************************
|
2004-06-15 22:43:26 +08:00
|
|
|
* Copyright (C) 1998-2004 VideoLAN
|
2004-03-10 04:46:43 +08:00
|
|
|
* $Id$
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
*
|
|
|
|
* Authors: Samuel Hocevar <sam@via.ecp.fr>
|
|
|
|
* Vincent Seguin <seguin@via.ecp.fr>
|
2004-10-05 00:03:30 +08:00
|
|
|
* Gildas Bazin <gbazin@videolan.org>
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +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.
|
2002-12-18 19:47:35 +08:00
|
|
|
*
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +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
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2003-09-19 01:54:02 +08:00
|
|
|
/**
|
2003-10-25 08:49:14 +08:00
|
|
|
* \file
|
2003-09-19 01:54:02 +08:00
|
|
|
* This file is a collection of common definitions and types
|
|
|
|
*/
|
|
|
|
|
2002-06-08 07:53:44 +08:00
|
|
|
/*****************************************************************************
|
2002-08-27 07:36:20 +08:00
|
|
|
* Required vlc headers
|
2002-06-08 07:53:44 +08:00
|
|
|
*****************************************************************************/
|
2002-08-27 07:36:20 +08:00
|
|
|
#if defined( __BORLANDC__ )
|
|
|
|
# undef PACKAGE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2004-08-28 04:46:35 +08:00
|
|
|
#if defined(PACKAGE)
|
|
|
|
# undef PACKAGE_NAME
|
2004-08-28 03:30:37 +08:00
|
|
|
# define PACKAGE_NAME PACKAGE
|
|
|
|
#endif
|
2004-08-28 04:46:35 +08:00
|
|
|
#if defined(VERSION)
|
|
|
|
# undef PACKAGE_VERSION
|
2004-08-28 03:30:37 +08:00
|
|
|
# define PACKAGE_VERSION VERSION
|
|
|
|
#endif
|
|
|
|
|
2002-06-08 07:53:44 +08:00
|
|
|
#if defined( __BORLANDC__ )
|
|
|
|
# undef HAVE_VARIADIC_MACROS
|
|
|
|
# undef HAVE_STDINT_H
|
2002-11-25 11:12:42 +08:00
|
|
|
# undef HAVE_INTTYPES_H
|
2003-01-16 17:02:46 +08:00
|
|
|
# undef off_t
|
2004-02-29 21:08:56 +08:00
|
|
|
#elif defined( _MSC_VER )
|
|
|
|
# pragma warning( disable : 4244 )
|
2002-06-08 07:53:44 +08:00
|
|
|
#endif
|
|
|
|
|
2002-08-27 07:36:20 +08:00
|
|
|
#include "vlc_config.h"
|
|
|
|
#include "modules_inner.h"
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* Required system headers
|
|
|
|
*****************************************************************************/
|
2003-11-21 08:38:01 +08:00
|
|
|
#include <stdlib.h>
|
2003-08-01 08:00:12 +08:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2002-04-17 19:43:31 +08:00
|
|
|
#ifdef HAVE_STRING_H
|
|
|
|
# include <string.h> /* strerror() */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
|
|
# include <sys/types.h>
|
|
|
|
#endif
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Basic types definitions
|
|
|
|
*****************************************************************************/
|
2002-10-25 17:21:09 +08:00
|
|
|
#if defined( HAVE_STDINT_H )
|
* 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
|
|
|
# include <stdint.h>
|
2002-10-25 17:21:09 +08:00
|
|
|
#elif defined( HAVE_INTTYPES_H )
|
|
|
|
# include <inttypes.h>
|
2002-11-08 06:56:08 +08:00
|
|
|
#elif defined( SYS_CYGWIN )
|
|
|
|
# include <sys/types.h>
|
|
|
|
/* Cygwin only defines half of these... */
|
|
|
|
typedef u_int8_t uint8_t;
|
|
|
|
typedef u_int16_t uint16_t;
|
|
|
|
typedef u_int32_t uint32_t;
|
|
|
|
typedef u_int64_t uint64_t;
|
2002-03-03 12:37:29 +08:00
|
|
|
#else
|
2002-10-25 17:21:09 +08:00
|
|
|
/* Fallback types (very x86-centric, sorry) */
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef signed char int8_t;
|
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef signed short int16_t;
|
|
|
|
typedef unsigned int uint32_t;
|
|
|
|
typedef signed int int32_t;
|
2002-11-11 22:39:12 +08:00
|
|
|
# if defined( _MSC_VER ) \
|
|
|
|
|| defined( UNDER_CE ) \
|
|
|
|
|| ( defined( WIN32 ) && !defined( __MINGW32__ ) )
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef unsigned __int64 uint64_t;
|
|
|
|
typedef signed __int64 int64_t;
|
* 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
|
|
|
# else
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef unsigned long long uint64_t;
|
|
|
|
typedef signed long long int64_t;
|
* 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
|
|
|
# endif
|
2003-12-05 00:02:54 +08:00
|
|
|
typedef uint32_t uintptr_t;
|
|
|
|
typedef int32_t intptr_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#endif
|
|
|
|
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef uint8_t byte_t;
|
* 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
|
|
|
|
2005-03-09 08:43:46 +08:00
|
|
|
/* Systems that don't have stdint.h may not define INT64_MIN and
|
|
|
|
INT64_MAX */
|
|
|
|
#ifndef INT64_MIN
|
|
|
|
#define INT64_MIN (-9223372036854775807LL-1)
|
|
|
|
#endif
|
|
|
|
#ifndef INT64_MAX
|
|
|
|
#define INT64_MAX (9223372036854775807LL)
|
|
|
|
#endif
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* ptrdiff_t definition */
|
|
|
|
#ifdef HAVE_STDDEF_H
|
|
|
|
# include <stddef.h>
|
|
|
|
#else
|
|
|
|
# include <malloc.h>
|
|
|
|
# ifndef _PTRDIFF_T
|
|
|
|
# define _PTRDIFF_T
|
|
|
|
/* Not portable in a 64-bit environment. */
|
|
|
|
typedef int ptrdiff_t;
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2004-10-05 01:22:52 +08:00
|
|
|
#if defined( WIN32 ) || defined( UNDER_CE )
|
2003-03-05 05:12:04 +08:00
|
|
|
# include <malloc.h>
|
2003-11-22 21:56:21 +08:00
|
|
|
# ifndef PATH_MAX
|
|
|
|
# define PATH_MAX MAX_PATH
|
|
|
|
# endif
|
2003-03-05 05:12:04 +08:00
|
|
|
#endif
|
|
|
|
|
2003-09-21 18:23:59 +08:00
|
|
|
#if (defined( WIN32 ) || defined( UNDER_CE )) && !defined( _SSIZE_T_ )
|
2002-03-02 17:34:23 +08:00
|
|
|
typedef int ssize_t;
|
2002-03-02 11:53:55 +08:00
|
|
|
#endif
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* Counter for statistics and profiling */
|
|
|
|
typedef unsigned long count_t;
|
|
|
|
|
|
|
|
/* DCT elements types */
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef int16_t dctelem_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
|
|
|
/* Video buffer types */
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef uint8_t yuv_data_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2002-09-19 05:21:24 +08:00
|
|
|
/* Audio volume */
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef uint16_t audio_volume_t;
|
|
|
|
|
2002-11-29 07:24:15 +08:00
|
|
|
#ifndef HAVE_SOCKLEN_T
|
|
|
|
typedef int socklen_t;
|
|
|
|
#endif
|
|
|
|
|
2003-12-04 05:50:50 +08:00
|
|
|
/**
|
|
|
|
* High precision date or time interval
|
|
|
|
*
|
2002-10-25 17:21:09 +08:00
|
|
|
* Store a high precision date or time interval. The maximum precision is the
|
|
|
|
* microsecond, and a 64 bits integer is used to avoid overflows (maximum
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
* time interval is then 292271 years, which should be long enough for any
|
2002-10-25 17:21:09 +08:00
|
|
|
* video). Dates are stored as microseconds since a common date (usually the
|
|
|
|
* epoch). Note that date and time intervals can be manipulated using regular
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
* arithmetic operators, and that no special functions are required.
|
2003-12-04 05:50:50 +08:00
|
|
|
*/
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef int64_t mtime_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2003-12-04 05:50:50 +08:00
|
|
|
/**
|
2002-07-23 08:39:17 +08:00
|
|
|
* The vlc_fourcc_t type.
|
2003-12-04 05:50:50 +08:00
|
|
|
*
|
2002-07-23 08:39:17 +08:00
|
|
|
* See http://www.webartz.com/fourcc/ for a very detailed list.
|
2003-12-04 05:50:50 +08:00
|
|
|
*/
|
2002-10-25 17:21:09 +08:00
|
|
|
typedef uint32_t vlc_fourcc_t;
|
2002-07-23 08:39:17 +08:00
|
|
|
|
2002-08-31 06:22:24 +08:00
|
|
|
#ifdef WORDS_BIGENDIAN
|
|
|
|
# define VLC_FOURCC( a, b, c, d ) \
|
2002-10-25 17:21:09 +08:00
|
|
|
( ((uint32_t)d) | ( ((uint32_t)c) << 8 ) \
|
|
|
|
| ( ((uint32_t)b) << 16 ) | ( ((uint32_t)a) << 24 ) )
|
2002-08-31 06:22:24 +08:00
|
|
|
# define VLC_TWOCC( a, b ) \
|
2002-10-25 17:21:09 +08:00
|
|
|
( (uint16_t)(b) | ( (uint16_t)(a) << 8 ) )
|
2002-07-23 08:39:17 +08:00
|
|
|
|
2002-08-31 06:22:24 +08:00
|
|
|
#else
|
|
|
|
# define VLC_FOURCC( a, b, c, d ) \
|
2002-10-25 17:21:09 +08:00
|
|
|
( ((uint32_t)a) | ( ((uint32_t)b) << 8 ) \
|
|
|
|
| ( ((uint32_t)c) << 16 ) | ( ((uint32_t)d) << 24 ) )
|
2002-08-31 06:22:24 +08:00
|
|
|
# define VLC_TWOCC( a, b ) \
|
2002-10-25 17:21:09 +08:00
|
|
|
( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) )
|
2002-08-31 06:22:24 +08:00
|
|
|
|
|
|
|
#endif
|
2002-07-23 08:39:17 +08:00
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* Classes declaration
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2002-10-03 21:21:55 +08:00
|
|
|
/* Internal types */
|
|
|
|
typedef struct libvlc_t libvlc_t;
|
Changes to the libvlc API:
* ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
exported functions start with VLC_ instead of vlc_ to avoid conflicts.
* ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
and vlc_t types; they are now internal types only.
* ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
calls. In non-reentrant mode, we just use 0 as the first argument. In
reentrant mode, we use an object's ID. (see below)
Internal changes:
* ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
pointers, we manipulate their i_object_id. When needed, an object is
retrieved using vlc_object_get (I hope the lookup isn't too expensive,
that's why I designed the pp_objects layout to allow log2(n) seeks).
* ./src/misc/objects.c: activated the per-object variable storage. Unused
yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
* ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
here.
Misc:
* ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
code portions not part of libvlc; it was just required for the
COPYRIGHT_MESSAGE string which is now available from VLC_Version().
2002-10-12 06:32:56 +08:00
|
|
|
typedef struct vlc_t vlc_t;
|
|
|
|
typedef struct variable_t variable_t;
|
2004-07-11 02:08:09 +08:00
|
|
|
typedef struct date_t date_t;
|
2002-10-03 21:21:55 +08:00
|
|
|
|
* 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
|
|
|
/* Messages */
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct msg_bank_t msg_bank_t;
|
|
|
|
typedef struct msg_subscription_t msg_subscription_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2002-04-03 07:43:57 +08:00
|
|
|
/* Playlist */
|
2004-06-06 00:09:00 +08:00
|
|
|
|
|
|
|
/* FIXME */
|
|
|
|
/**
|
|
|
|
* Playlist commands
|
|
|
|
*/
|
|
|
|
typedef enum {
|
2004-11-06 19:17:46 +08:00
|
|
|
PLAYLIST_PLAY, /**< No arg. res=can fail*/
|
2004-11-20 21:59:39 +08:00
|
|
|
PLAYLIST_AUTOPLAY, /**< No arg. res=cant fail*/
|
2004-11-06 19:17:46 +08:00
|
|
|
PLAYLIST_VIEWPLAY, /**< arg1= int, arg2= playlist_item_t*,*/
|
|
|
|
/** arg3 = playlist_item_t* , res=can fail */
|
|
|
|
PLAYLIST_ITEMPLAY, /** <arg1 = playlist_item_t * , res=can fail */
|
|
|
|
PLAYLIST_PAUSE, /**< No arg res=can fail*/
|
|
|
|
PLAYLIST_STOP, /**< No arg res=can fail*/
|
|
|
|
PLAYLIST_SKIP, /**< arg1=int, res=can fail*/
|
|
|
|
PLAYLIST_GOTO, /**< arg1=int res=can fail */
|
|
|
|
PLAYLIST_VIEWGOTO, /**< arg1=int res=can fail */
|
2004-06-06 00:09:00 +08:00
|
|
|
} playlist_command_t;
|
|
|
|
|
|
|
|
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct playlist_t playlist_t;
|
|
|
|
typedef struct playlist_item_t playlist_item_t;
|
2004-11-06 19:17:46 +08:00
|
|
|
typedef struct playlist_view_t playlist_view_t;
|
2004-01-11 08:45:06 +08:00
|
|
|
typedef struct playlist_export_t playlist_export_t;
|
2004-11-09 02:19:51 +08:00
|
|
|
typedef struct services_discovery_t services_discovery_t;
|
|
|
|
typedef struct services_discovery_sys_t services_discovery_sys_t;
|
2004-11-14 07:06:53 +08:00
|
|
|
typedef struct playlist_add_t playlist_add_t;
|
2004-12-11 02:58:22 +08:00
|
|
|
typedef struct playlist_preparse_t playlist_preparse_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
* 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
|
|
|
/* Modules */
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct module_bank_t module_bank_t;
|
|
|
|
typedef struct module_t module_t;
|
|
|
|
typedef struct module_config_t module_config_t;
|
|
|
|
typedef struct module_symbols_t module_symbols_t;
|
2004-05-30 05:41:57 +08:00
|
|
|
typedef struct module_cache_t module_cache_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2004-12-11 22:45:46 +08:00
|
|
|
typedef struct config_category_t config_category_t;
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* Interface */
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct intf_thread_t intf_thread_t;
|
|
|
|
typedef struct intf_sys_t intf_sys_t;
|
|
|
|
typedef struct intf_console_t intf_console_t;
|
|
|
|
typedef struct intf_msg_t intf_msg_t;
|
|
|
|
typedef struct intf_channel_t intf_channel_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
|
|
|
/* Input */
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct input_thread_t input_thread_t;
|
2003-09-14 01:42:16 +08:00
|
|
|
typedef struct input_thread_sys_t input_thread_sys_t;
|
2004-04-01 04:52:31 +08:00
|
|
|
typedef struct input_item_t input_item_t;
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct input_area_t input_area_t;
|
|
|
|
typedef struct input_buffers_t input_buffers_t;
|
|
|
|
typedef struct input_socket_t input_socket_t;
|
|
|
|
typedef struct access_sys_t access_sys_t;
|
|
|
|
typedef struct demux_sys_t demux_sys_t;
|
|
|
|
typedef struct es_descriptor_t es_descriptor_t;
|
|
|
|
typedef struct es_sys_t es_sys_t;
|
|
|
|
typedef struct pgrm_descriptor_t pgrm_descriptor_t;
|
|
|
|
typedef struct pgrm_sys_t pgrm_sys_t;
|
|
|
|
typedef struct stream_descriptor_t stream_descriptor_t;
|
2004-03-24 07:44:49 +08:00
|
|
|
typedef struct seekpoint_t seekpoint_t;
|
2004-04-01 04:52:31 +08:00
|
|
|
typedef struct info_t info_t;
|
|
|
|
typedef struct info_category_t info_category_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2003-11-21 23:32:09 +08:00
|
|
|
/* Format */
|
|
|
|
typedef struct audio_format_t audio_format_t;
|
|
|
|
typedef struct video_format_t video_format_t;
|
|
|
|
typedef struct subs_format_t subs_format_t;
|
2004-01-26 05:39:37 +08:00
|
|
|
typedef struct es_format_t es_format_t;
|
|
|
|
typedef struct video_palette_t video_palette_t;
|
2003-11-21 23:32:09 +08:00
|
|
|
|
2003-08-01 08:00:12 +08:00
|
|
|
/* NInput */
|
2004-01-27 04:48:10 +08:00
|
|
|
typedef struct stream_sys_t stream_sys_t;
|
|
|
|
typedef struct stream_t stream_t;
|
2003-09-13 02:34:45 +08:00
|
|
|
typedef struct es_out_t es_out_t;
|
|
|
|
typedef struct es_out_id_t es_out_id_t;
|
|
|
|
typedef struct es_out_sys_t es_out_sys_t;
|
2003-12-01 01:29:03 +08:00
|
|
|
typedef struct demux_t demux_t;
|
2004-05-30 07:52:49 +08:00
|
|
|
typedef struct access_t access_t;
|
2003-08-01 08:00:12 +08:00
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* Audio */
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct aout_instance_t aout_instance_t;
|
|
|
|
typedef struct aout_sys_t aout_sys_t;
|
2002-08-22 07:19:58 +08:00
|
|
|
typedef struct aout_fifo_t aout_fifo_t;
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct aout_input_t aout_input_t;
|
|
|
|
typedef struct aout_buffer_t aout_buffer_t;
|
2003-11-17 05:07:31 +08:00
|
|
|
typedef audio_format_t audio_sample_format_t;
|
2002-08-22 06:41:59 +08:00
|
|
|
typedef struct audio_date_t audio_date_t;
|
2003-11-17 05:07:31 +08:00
|
|
|
typedef struct aout_filter_t aout_filter_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
|
|
|
/* Video */
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct vout_thread_t vout_thread_t;
|
|
|
|
typedef struct vout_sys_t vout_sys_t;
|
2004-09-15 23:50:54 +08:00
|
|
|
typedef struct vout_synchro_t vout_synchro_t;
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct chroma_sys_t chroma_sys_t;
|
2004-09-15 23:50:54 +08:00
|
|
|
|
2003-11-17 05:07:31 +08:00
|
|
|
typedef video_format_t video_frame_format_t;
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct picture_t picture_t;
|
|
|
|
typedef struct picture_sys_t picture_sys_t;
|
|
|
|
typedef struct picture_heap_t picture_heap_t;
|
2004-09-15 23:50:54 +08:00
|
|
|
|
|
|
|
typedef struct spu_t spu_t;
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct subpicture_t subpicture_t;
|
|
|
|
typedef struct subpicture_sys_t subpicture_sys_t;
|
2004-08-03 08:11:32 +08:00
|
|
|
typedef struct subpicture_region_t subpicture_region_t;
|
2003-07-15 04:36:55 +08:00
|
|
|
typedef struct text_style_t text_style_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2004-12-14 00:47:18 +08:00
|
|
|
typedef struct image_handler_t image_handler_t;
|
|
|
|
|
2002-08-13 06:12:51 +08:00
|
|
|
/* Stream output */
|
|
|
|
typedef struct sout_instance_t sout_instance_t;
|
2004-07-11 01:22:10 +08:00
|
|
|
typedef struct sout_instance_sys_t sout_instance_sys_t;
|
|
|
|
|
2002-12-15 05:32:42 +08:00
|
|
|
typedef struct sout_input_t sout_input_t;
|
2003-03-12 03:02:31 +08:00
|
|
|
typedef struct sout_packetizer_input_t sout_packetizer_input_t;
|
2004-07-11 01:22:10 +08:00
|
|
|
|
2003-02-16 22:10:44 +08:00
|
|
|
typedef struct sout_access_out_t sout_access_out_t;
|
2004-07-11 01:22:10 +08:00
|
|
|
typedef struct sout_access_out_sys_t sout_access_out_sys_t;
|
|
|
|
|
2003-03-12 03:02:31 +08:00
|
|
|
typedef struct sout_mux_t sout_mux_t;
|
2004-07-11 01:22:10 +08:00
|
|
|
typedef struct sout_mux_sys_t sout_mux_sys_t;
|
|
|
|
|
* all: new sout scheme. Now a chain of module are created that can
modify/apply on all streams, --sout has the same behavour expect when
starting with a '#'.
With a starting '#' you can specify a chain of modules, it's still
unstable but a lot more powerfull.
You have access to duplicate(that duplicate all stream), transcode
(using only ffmpeg), standard/std and es (that apply muxers and access),
and display. You could chain them with ':' and specify options with
{option1=value,option2=value[,...]}.
ex: * to stream and see the stream to udp/ts:ip
--sout '#duplicate{dst=display,dst=std{access=udp,mux=ts,url=ip}}'
* to transcode,see and stream
--sout '#transcode{acodec=mpga}:duplicate{dst=display,dst=std{access=udp,mux=ts,url=ip}}'
Without a starting '#', the url is converted into '#std{acces=,mux=,url}'
Test and report bugs :)
2003-04-14 04:00:21 +08:00
|
|
|
typedef struct sout_stream_t sout_stream_t;
|
2004-07-11 01:22:10 +08:00
|
|
|
typedef struct sout_stream_sys_t sout_stream_sys_t;
|
|
|
|
|
* all: new sout scheme. Now a chain of module are created that can
modify/apply on all streams, --sout has the same behavour expect when
starting with a '#'.
With a starting '#' you can specify a chain of modules, it's still
unstable but a lot more powerfull.
You have access to duplicate(that duplicate all stream), transcode
(using only ffmpeg), standard/std and es (that apply muxers and access),
and display. You could chain them with ':' and specify options with
{option1=value,option2=value[,...]}.
ex: * to stream and see the stream to udp/ts:ip
--sout '#duplicate{dst=display,dst=std{access=udp,mux=ts,url=ip}}'
* to transcode,see and stream
--sout '#transcode{acodec=mpga}:duplicate{dst=display,dst=std{access=udp,mux=ts,url=ip}}'
Without a starting '#', the url is converted into '#std{acces=,mux=,url}'
Test and report bugs :)
2003-04-14 04:00:21 +08:00
|
|
|
typedef struct sout_cfg_t sout_cfg_t;
|
* ALL: Better announce system
- The SAP handler now runs in a separate thread.
- RTP sessions can be announced with sap (sdp=sap://,name=...)
TODO: Make this more configurable
- Better SDP generation (the timestamp problem is not resolved)
About this, there is a problem : as, for a RTP session, the URI
is the complete SDP, if the session is recreated, as the URI has
changed, a new item is added to the playlist
- Experimental flow control algorithm :
It does not follow the "Recommended" implementation, as it needs
to count the sessions (to achieve this, we should make this work
together with the SAP listener)
It is disabled by default (use --sap-flow-control to enable).
When it is disabled, sap announcement interval is set by --sap-interval
* src/misc/net.c : created net_ReadNonBlock
* sap.c : Fixed memory problem
2004-04-19 02:21:09 +08:00
|
|
|
typedef struct sap_session_t sap_session_t;
|
|
|
|
typedef struct sap_address_t sap_address_t;
|
|
|
|
typedef struct session_descriptor_t session_descriptor_t;
|
|
|
|
typedef struct announce_method_t announce_method_t;
|
|
|
|
typedef struct announce_handler_t announce_handler_t;
|
|
|
|
typedef struct sap_handler_t sap_handler_t;
|
|
|
|
//typedef struct slp_session_t slp_session_t;
|
2003-08-13 22:17:26 +08:00
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* Decoders */
|
2003-09-03 04:19:26 +08:00
|
|
|
typedef struct decoder_t decoder_t;
|
|
|
|
typedef struct decoder_sys_t decoder_sys_t;
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2003-10-09 03:40:42 +08:00
|
|
|
/* Encoders */
|
|
|
|
typedef struct encoder_t encoder_t;
|
|
|
|
typedef struct encoder_sys_t encoder_sys_t;
|
|
|
|
|
2004-08-03 08:11:32 +08:00
|
|
|
/* Filters */
|
|
|
|
typedef struct filter_t filter_t;
|
|
|
|
typedef struct filter_sys_t filter_sys_t;
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* Misc */
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct data_packet_t data_packet_t;
|
|
|
|
typedef struct data_buffer_t data_buffer_t;
|
|
|
|
typedef struct stream_ctrl_t stream_ctrl_t;
|
|
|
|
typedef struct pes_packet_t pes_packet_t;
|
|
|
|
typedef struct network_socket_t network_socket_t;
|
2004-11-07 19:02:59 +08:00
|
|
|
typedef struct virtual_socket_t v_socket_t;
|
2002-08-08 08:35:11 +08:00
|
|
|
typedef struct iso639_lang_t iso639_lang_t;
|
* 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
|
|
|
|
2003-08-24 06:49:50 +08:00
|
|
|
/* block */
|
|
|
|
typedef struct block_t block_t;
|
|
|
|
typedef struct block_fifo_t block_fifo_t;
|
|
|
|
|
2004-03-03 21:25:00 +08:00
|
|
|
/* httpd */
|
|
|
|
typedef struct httpd_t httpd_t;
|
|
|
|
typedef struct httpd_host_t httpd_host_t;
|
|
|
|
typedef struct httpd_url_t httpd_url_t;
|
|
|
|
typedef struct httpd_client_t httpd_client_t;
|
|
|
|
typedef struct httpd_callback_sys_t httpd_callback_sys_t;
|
|
|
|
typedef struct httpd_message_t httpd_message_t;
|
|
|
|
typedef int (*httpd_callback_t)( httpd_callback_sys_t *, httpd_client_t *, httpd_message_t *answer, httpd_message_t *query );
|
|
|
|
typedef struct httpd_file_t httpd_file_t;
|
|
|
|
typedef struct httpd_file_sys_t httpd_file_sys_t;
|
|
|
|
typedef int (*httpd_file_callback_t)( httpd_file_sys_t*, httpd_file_t *, uint8_t *psz_request, uint8_t **pp_data, int *pi_data );
|
|
|
|
typedef struct httpd_redirect_t httpd_redirect_t;
|
|
|
|
typedef struct httpd_stream_t httpd_stream_t;
|
|
|
|
|
2004-11-06 18:48:15 +08:00
|
|
|
/* TLS support */
|
|
|
|
typedef struct tls_t tls_t;
|
|
|
|
typedef struct tls_server_t tls_server_t;
|
|
|
|
typedef struct tls_session_t tls_session_t;
|
|
|
|
|
2004-11-26 18:04:08 +08:00
|
|
|
/* XML */
|
|
|
|
typedef struct xml_t xml_t;
|
|
|
|
typedef struct xml_sys_t xml_sys_t;
|
|
|
|
typedef struct xml_reader_t xml_reader_t;
|
|
|
|
typedef struct xml_reader_sys_t xml_reader_sys_t;
|
|
|
|
|
2004-09-11 21:15:18 +08:00
|
|
|
/* vod server */
|
|
|
|
typedef struct vod_t vod_t;
|
|
|
|
typedef struct vod_sys_t vod_sys_t;
|
2004-09-15 04:30:12 +08:00
|
|
|
typedef struct vod_media_t vod_media_t;
|
2004-09-11 21:15:18 +08:00
|
|
|
|
2004-07-22 06:38:49 +08:00
|
|
|
/* opengl */
|
|
|
|
typedef struct opengl_t opengl_t;
|
|
|
|
typedef struct opengl_sys_t opengl_sys_t;
|
|
|
|
|
2005-01-24 01:53:40 +08:00
|
|
|
/* VLM */
|
2004-03-21 20:26:20 +08:00
|
|
|
typedef struct vlm_t vlm_t;
|
|
|
|
typedef struct vlm_message_t vlm_message_t;
|
2005-01-24 01:53:40 +08:00
|
|
|
typedef struct vlm_media_t vlm_media_t;
|
|
|
|
typedef struct vlm_schedule_t vlm_schedule_t;
|
|
|
|
|
|
|
|
/* divers */
|
|
|
|
typedef struct vlc_meta_t vlc_meta_t;
|
2004-03-11 05:54:28 +08:00
|
|
|
|
2004-03-03 21:25:00 +08:00
|
|
|
|
2002-10-17 03:39:42 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* Variable callbacks
|
|
|
|
*****************************************************************************/
|
|
|
|
typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
|
|
|
|
char const *, /* variable name */
|
|
|
|
vlc_value_t, /* old value */
|
|
|
|
vlc_value_t, /* new value */
|
|
|
|
void * ); /* callback data */
|
|
|
|
|
2002-06-02 21:38:03 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* Plug-in stuff
|
|
|
|
*****************************************************************************/
|
|
|
|
#ifndef __PLUGIN__
|
2002-08-08 08:35:11 +08:00
|
|
|
# define VLC_EXPORT( type, name, args ) type name args
|
2002-06-02 21:38:03 +08:00
|
|
|
#else
|
2002-08-08 08:35:11 +08:00
|
|
|
# define VLC_EXPORT( type, name, args ) struct _u_n_u_s_e_d_
|
2002-06-02 21:38:03 +08:00
|
|
|
extern module_symbols_t* p_symbols;
|
|
|
|
#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
|
|
|
/*****************************************************************************
|
|
|
|
* OS-specific headers and thread types
|
|
|
|
*****************************************************************************/
|
2002-11-11 22:39:12 +08:00
|
|
|
#if defined( WIN32 ) || defined( UNDER_CE )
|
2002-06-01 22:31:32 +08:00
|
|
|
# define WIN32_LEAN_AND_MEAN
|
|
|
|
# include <windows.h>
|
2004-10-05 00:03:30 +08:00
|
|
|
# if defined( UNDER_CE )
|
|
|
|
# define IS_WINNT 0
|
|
|
|
# else
|
|
|
|
# define IS_WINNT ( GetVersion() < 0x80000000 )
|
|
|
|
# endif
|
2002-06-01 22:31:32 +08:00
|
|
|
#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
|
|
|
#include "vlc_threads.h"
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Common structure members
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
/* VLC_COMMON_MEMBERS : members common to all basic vlc objects */
|
|
|
|
#define VLC_COMMON_MEMBERS \
|
2003-07-15 04:36:55 +08:00
|
|
|
/** \name VLC_COMMON_MEMBERS \
|
|
|
|
* these members are common for all vlc objects \
|
|
|
|
*/ \
|
|
|
|
/**@{*/ \
|
* 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
|
|
|
int i_object_id; \
|
|
|
|
int i_object_type; \
|
|
|
|
char *psz_object_type; \
|
|
|
|
char *psz_object_name; \
|
|
|
|
\
|
|
|
|
/* Thread properties, if any */ \
|
|
|
|
vlc_bool_t b_thread; \
|
|
|
|
vlc_thread_t thread_id; \
|
2002-06-04 08:11:12 +08:00
|
|
|
\
|
|
|
|
/* Object access lock */ \
|
|
|
|
vlc_mutex_t object_lock; \
|
|
|
|
vlc_cond_t object_wait; \
|
* 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
|
|
|
\
|
Changes to the libvlc API:
* ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
exported functions start with VLC_ instead of vlc_ to avoid conflicts.
* ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
and vlc_t types; they are now internal types only.
* ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
calls. In non-reentrant mode, we just use 0 as the first argument. In
reentrant mode, we use an object's ID. (see below)
Internal changes:
* ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
pointers, we manipulate their i_object_id. When needed, an object is
retrieved using vlc_object_get (I hope the lookup isn't too expensive,
that's why I designed the pp_objects layout to allow log2(n) seeks).
* ./src/misc/objects.c: activated the per-object variable storage. Unused
yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
* ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
here.
Misc:
* ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
code portions not part of libvlc; it was just required for the
COPYRIGHT_MESSAGE string which is now available from VLC_Version().
2002-10-12 06:32:56 +08:00
|
|
|
/* Object properties */ \
|
2003-07-15 04:36:55 +08:00
|
|
|
volatile vlc_bool_t b_error; /**< set by the object */ \
|
|
|
|
volatile vlc_bool_t b_die; /**< set by the outside */ \
|
|
|
|
volatile vlc_bool_t b_dead; /**< set by the object */ \
|
|
|
|
volatile vlc_bool_t b_attached; /**< set by the object */ \
|
2004-08-09 05:14:38 +08:00
|
|
|
vlc_bool_t b_force; /**< set by the outside (eg. module_Need()) */ \
|
* 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
|
|
|
\
|
Changes to the libvlc API:
* ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
exported functions start with VLC_ instead of vlc_ to avoid conflicts.
* ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
and vlc_t types; they are now internal types only.
* ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
calls. In non-reentrant mode, we just use 0 as the first argument. In
reentrant mode, we use an object's ID. (see below)
Internal changes:
* ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
pointers, we manipulate their i_object_id. When needed, an object is
retrieved using vlc_object_get (I hope the lookup isn't too expensive,
that's why I designed the pp_objects layout to allow log2(n) seeks).
* ./src/misc/objects.c: activated the per-object variable storage. Unused
yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
* ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
here.
Misc:
* ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
code portions not part of libvlc; it was just required for the
COPYRIGHT_MESSAGE string which is now available from VLC_Version().
2002-10-12 06:32:56 +08:00
|
|
|
/* Object variables */ \
|
|
|
|
vlc_mutex_t var_lock; \
|
|
|
|
int i_vars; \
|
|
|
|
variable_t * p_vars; \
|
|
|
|
\
|
|
|
|
/* Stuff related to the libvlc structure */ \
|
2003-07-15 04:36:55 +08:00
|
|
|
libvlc_t * p_libvlc; /**< root of all evil */ \
|
|
|
|
vlc_t * p_vlc; /**< (root of all evil) - 1 */ \
|
* 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
|
|
|
\
|
2003-07-15 04:36:55 +08:00
|
|
|
volatile int i_refcount; /**< usage count */ \
|
|
|
|
vlc_object_t * p_parent; /**< our parent */ \
|
|
|
|
vlc_object_t ** pp_children; /**< our children */ \
|
* 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
|
|
|
volatile int i_children; \
|
|
|
|
\
|
2002-08-01 04:56:53 +08:00
|
|
|
/* Private data */ \
|
|
|
|
void * p_private; \
|
|
|
|
\
|
2003-07-15 04:36:55 +08:00
|
|
|
/** Just a reminder so that people don't cast garbage */ \
|
* 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
|
|
|
int be_sure_to_add_VLC_COMMON_MEMBERS_to_struct; \
|
2003-07-15 04:36:55 +08:00
|
|
|
/**@}*/ \
|
* 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
|
|
|
|
2002-08-01 04:56:53 +08:00
|
|
|
/* VLC_OBJECT: attempt at doing a clever cast */
|
|
|
|
#define VLC_OBJECT( x ) \
|
* 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_object_t *)(x))+0*(x)->be_sure_to_add_VLC_COMMON_MEMBERS_to_struct
|
2002-05-15 03:33:54 +08:00
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* Macros and inline functions
|
|
|
|
*****************************************************************************/
|
|
|
|
#ifdef NTOHL_IN_SYS_PARAM_H
|
|
|
|
# include <sys/param.h>
|
|
|
|
|
2002-11-11 22:39:12 +08:00
|
|
|
#elif !defined(WIN32) && !defined( UNDER_CE )
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# include <netinet/in.h>
|
|
|
|
|
|
|
|
#endif /* NTOHL_IN_SYS_PARAM_H || WIN32 */
|
|
|
|
|
|
|
|
/* CEIL: division with round to nearest greater integer */
|
|
|
|
#define CEIL(n, d) ( ((n) / (d)) + ( ((n) % (d)) ? 1 : 0) )
|
|
|
|
|
|
|
|
/* PAD: PAD(n, d) = CEIL(n ,d) * d */
|
|
|
|
#define PAD(n, d) ( ((n) % (d)) ? ((((n) / (d)) + 1) * (d)) : (n) )
|
|
|
|
|
2002-02-27 11:47:56 +08:00
|
|
|
/* __MAX and __MIN: self explanatory */
|
|
|
|
#ifndef __MAX
|
|
|
|
# define __MAX(a, b) ( ((a) > (b)) ? (a) : (b) )
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#endif
|
2002-02-27 11:47:56 +08:00
|
|
|
#ifndef __MIN
|
|
|
|
# define __MIN(a, b) ( ((a) < (b)) ? (a) : (b) )
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#endif
|
|
|
|
|
2004-09-09 21:04:12 +08:00
|
|
|
static int64_t GCD( int64_t a, int64_t b )
|
|
|
|
{
|
|
|
|
if( b ) return GCD( b, a % b );
|
|
|
|
else return a;
|
|
|
|
}
|
|
|
|
|
2002-10-29 21:22:48 +08:00
|
|
|
/* Dynamic array handling: realloc array, move data, increment position */
|
2005-02-08 22:18:05 +08:00
|
|
|
#if defined( _MSC_VER )
|
|
|
|
# define VLCCVP (void**) /* Work-around for broken compiler */
|
|
|
|
#else
|
|
|
|
# define VLCCVP
|
|
|
|
#endif
|
2002-10-29 21:22:48 +08:00
|
|
|
#define INSERT_ELEM( p_ar, i_oldsize, i_pos, elem ) \
|
|
|
|
do \
|
|
|
|
{ \
|
2005-02-08 22:18:05 +08:00
|
|
|
if( !i_oldsize ) (p_ar) = NULL; \
|
|
|
|
(p_ar) = VLCCVP realloc( p_ar, ((i_oldsize) + 1) * sizeof(*(p_ar)) ); \
|
2003-05-13 03:11:53 +08:00
|
|
|
if( (i_oldsize) - (i_pos) ) \
|
|
|
|
{ \
|
2005-02-08 22:18:05 +08:00
|
|
|
memmove( (p_ar) + (i_pos) + 1, (p_ar) + (i_pos), \
|
2003-05-13 03:11:53 +08:00
|
|
|
((i_oldsize) - (i_pos)) * sizeof( *(p_ar) ) ); \
|
|
|
|
} \
|
2002-10-29 21:22:48 +08:00
|
|
|
(p_ar)[i_pos] = elem; \
|
|
|
|
(i_oldsize)++; \
|
|
|
|
} \
|
|
|
|
while( 0 )
|
|
|
|
|
|
|
|
#define REMOVE_ELEM( p_ar, i_oldsize, i_pos ) \
|
|
|
|
do \
|
|
|
|
{ \
|
2003-05-13 03:11:53 +08:00
|
|
|
if( (i_oldsize) - (i_pos) - 1 ) \
|
|
|
|
{ \
|
|
|
|
memmove( (p_ar) + (i_pos), \
|
|
|
|
(p_ar) + (i_pos) + 1, \
|
|
|
|
((i_oldsize) - (i_pos) - 1) * sizeof( *(p_ar) ) ); \
|
|
|
|
} \
|
2002-10-29 21:22:48 +08:00
|
|
|
if( i_oldsize > 1 ) \
|
|
|
|
{ \
|
|
|
|
(p_ar) = realloc( p_ar, ((i_oldsize) - 1) * sizeof( *(p_ar) ) ); \
|
|
|
|
} \
|
|
|
|
else \
|
|
|
|
{ \
|
|
|
|
free( p_ar ); \
|
|
|
|
(p_ar) = NULL; \
|
|
|
|
} \
|
|
|
|
(i_oldsize)--; \
|
|
|
|
} \
|
|
|
|
while( 0 )
|
|
|
|
|
|
|
|
|
2003-09-13 02:34:45 +08:00
|
|
|
#define TAB_APPEND( count, tab, p ) \
|
|
|
|
if( (count) > 0 ) \
|
|
|
|
{ \
|
2004-03-30 02:58:28 +08:00
|
|
|
(tab) = realloc( tab, sizeof( void ** ) * ( (count) + 1 ) ); \
|
2003-09-13 02:34:45 +08:00
|
|
|
} \
|
|
|
|
else \
|
|
|
|
{ \
|
2004-03-30 02:58:28 +08:00
|
|
|
(tab) = malloc( sizeof( void ** ) ); \
|
2003-09-13 02:34:45 +08:00
|
|
|
} \
|
2004-03-30 02:58:28 +08:00
|
|
|
(tab)[count] = (p); \
|
2003-09-13 02:34:45 +08:00
|
|
|
(count)++
|
|
|
|
|
|
|
|
#define TAB_FIND( count, tab, p, index ) \
|
|
|
|
{ \
|
|
|
|
int _i_; \
|
|
|
|
(index) = -1; \
|
|
|
|
for( _i_ = 0; _i_ < (count); _i_++ ) \
|
|
|
|
{ \
|
2004-03-30 02:58:28 +08:00
|
|
|
if( (tab)[_i_] == (p) ) \
|
2003-09-13 02:34:45 +08:00
|
|
|
{ \
|
|
|
|
(index) = _i_; \
|
|
|
|
break; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define TAB_REMOVE( count, tab, p ) \
|
|
|
|
{ \
|
|
|
|
int _i_index_; \
|
|
|
|
TAB_FIND( count, tab, p, _i_index_ ); \
|
|
|
|
if( _i_index_ >= 0 ) \
|
|
|
|
{ \
|
|
|
|
if( (count) > 1 ) \
|
|
|
|
{ \
|
|
|
|
memmove( ((void**)(tab) + _i_index_), \
|
|
|
|
((void**)(tab) + _i_index_+1), \
|
|
|
|
( (count) - _i_index_ - 1 ) * sizeof( void* ) );\
|
|
|
|
} \
|
2004-03-10 04:46:43 +08:00
|
|
|
(count)--; \
|
|
|
|
if( (count) == 0 ) \
|
2003-09-13 02:34:45 +08:00
|
|
|
{ \
|
|
|
|
free( tab ); \
|
|
|
|
(tab) = NULL; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* MSB (big endian)/LSB (little endian) conversions - network order is always
|
|
|
|
* MSB, and should be used for both network communications and files. Note that
|
|
|
|
* byte orders other than little and big endians are not supported, but only
|
2002-07-13 05:57:25 +08:00
|
|
|
* the VAX seems to have such exotic properties. */
|
2004-01-21 01:44:30 +08:00
|
|
|
static inline uint16_t U16_AT( void const * _p )
|
2002-07-13 05:57:25 +08:00
|
|
|
{
|
2002-10-25 17:21:09 +08:00
|
|
|
uint8_t * p = (uint8_t *)_p;
|
|
|
|
return ( ((uint16_t)p[0] << 8) | p[1] );
|
2002-07-13 05:57:25 +08:00
|
|
|
}
|
2004-01-21 01:44:30 +08:00
|
|
|
static inline uint32_t U32_AT( void const * _p )
|
2002-07-13 05:57:25 +08:00
|
|
|
{
|
2002-10-25 17:21:09 +08:00
|
|
|
uint8_t * p = (uint8_t *)_p;
|
|
|
|
return ( ((uint32_t)p[0] << 24) | ((uint32_t)p[1] << 16)
|
|
|
|
| ((uint32_t)p[2] << 8) | p[3] );
|
2002-07-13 05:57:25 +08:00
|
|
|
}
|
2004-01-21 01:44:30 +08:00
|
|
|
static inline uint64_t U64_AT( void const * _p )
|
2002-07-13 05:57:25 +08:00
|
|
|
{
|
2002-10-25 17:21:09 +08:00
|
|
|
uint8_t * p = (uint8_t *)_p;
|
|
|
|
return ( ((uint64_t)p[0] << 56) | ((uint64_t)p[1] << 48)
|
|
|
|
| ((uint64_t)p[2] << 40) | ((uint64_t)p[3] << 32)
|
|
|
|
| ((uint64_t)p[4] << 24) | ((uint64_t)p[5] << 16)
|
|
|
|
| ((uint64_t)p[6] << 8) | p[7] );
|
2002-07-13 05:57:25 +08:00
|
|
|
}
|
2003-08-18 07:02:52 +08:00
|
|
|
|
2004-01-21 01:44:30 +08:00
|
|
|
static inline uint16_t GetWLE( void const * _p )
|
2003-08-18 07:02:52 +08:00
|
|
|
{
|
|
|
|
uint8_t * p = (uint8_t *)_p;
|
|
|
|
return ( ((uint16_t)p[1] << 8) | p[0] );
|
|
|
|
}
|
2004-01-21 01:44:30 +08:00
|
|
|
static inline uint32_t GetDWLE( void const * _p )
|
2003-08-18 07:02:52 +08:00
|
|
|
{
|
|
|
|
uint8_t * p = (uint8_t *)_p;
|
|
|
|
return ( ((uint32_t)p[3] << 24) | ((uint32_t)p[2] << 16)
|
|
|
|
| ((uint32_t)p[1] << 8) | p[0] );
|
|
|
|
}
|
2004-01-21 01:44:30 +08:00
|
|
|
static inline uint64_t GetQWLE( void const * _p )
|
2003-08-18 07:02:52 +08:00
|
|
|
{
|
|
|
|
uint8_t * p = (uint8_t *)_p;
|
|
|
|
return ( ((uint64_t)p[7] << 56) | ((uint64_t)p[6] << 48)
|
|
|
|
| ((uint64_t)p[5] << 40) | ((uint64_t)p[4] << 32)
|
|
|
|
| ((uint64_t)p[3] << 24) | ((uint64_t)p[2] << 16)
|
|
|
|
| ((uint64_t)p[1] << 8) | p[0] );
|
|
|
|
}
|
|
|
|
|
|
|
|
#define GetWBE( p ) U16_AT( p )
|
|
|
|
#define GetDWBE( p ) U32_AT( p )
|
|
|
|
#define GetQWBE( p ) U64_AT( p )
|
|
|
|
|
2004-02-07 04:06:55 +08:00
|
|
|
/* Helper writer functions */
|
|
|
|
#define SetWLE( p, v ) _SetWLE( (uint8_t*)p, v)
|
|
|
|
static inline void _SetWLE( uint8_t *p, uint16_t i_dw )
|
|
|
|
{
|
|
|
|
p[1] = ( i_dw >> 8 )&0xff;
|
|
|
|
p[0] = ( i_dw )&0xff;
|
|
|
|
}
|
|
|
|
|
|
|
|
#define SetDWLE( p, v ) _SetDWLE( (uint8_t*)p, v)
|
|
|
|
static inline void _SetDWLE( uint8_t *p, uint32_t i_dw )
|
|
|
|
{
|
|
|
|
p[3] = ( i_dw >> 24 )&0xff;
|
|
|
|
p[2] = ( i_dw >> 16 )&0xff;
|
|
|
|
p[1] = ( i_dw >> 8 )&0xff;
|
|
|
|
p[0] = ( i_dw )&0xff;
|
|
|
|
}
|
|
|
|
#define SetQWLE( p, v ) _SetQWLE( (uint8_t*)p, v)
|
|
|
|
static inline void _SetQWLE( uint8_t *p, uint64_t i_qw )
|
|
|
|
{
|
|
|
|
SetDWLE( p, i_qw&0xffffffff );
|
|
|
|
SetDWLE( p+4, ( i_qw >> 32)&0xffffffff );
|
|
|
|
}
|
2004-08-14 02:58:25 +08:00
|
|
|
#define SetWBE( p, v ) _SetWBE( (uint8_t*)p, v)
|
|
|
|
static inline void _SetWBE( uint8_t *p, uint16_t i_dw )
|
|
|
|
{
|
|
|
|
p[0] = ( i_dw >> 8 )&0xff;
|
|
|
|
p[1] = ( i_dw )&0xff;
|
|
|
|
}
|
|
|
|
|
|
|
|
#define SetDWBE( p, v ) _SetDWBE( (uint8_t*)p, v)
|
|
|
|
static inline void _SetDWBE( uint8_t *p, uint32_t i_dw )
|
|
|
|
{
|
|
|
|
p[0] = ( i_dw >> 24 )&0xff;
|
|
|
|
p[1] = ( i_dw >> 16 )&0xff;
|
|
|
|
p[2] = ( i_dw >> 8 )&0xff;
|
|
|
|
p[3] = ( i_dw )&0xff;
|
|
|
|
}
|
|
|
|
#define SetQWBE( p, v ) _SetQWBE( (uint8_t*)p, v)
|
|
|
|
static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
|
|
|
|
{
|
|
|
|
SetDWBE( p+4, i_qw&0xffffffff );
|
|
|
|
SetDWBE( p, ( i_qw >> 32)&0xffffffff );
|
|
|
|
}
|
2003-08-18 07:02:52 +08:00
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#if WORDS_BIGENDIAN
|
2002-07-13 05:57:25 +08:00
|
|
|
# define hton16(i) ( i )
|
|
|
|
# define hton32(i) ( i )
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# define hton64(i) ( i )
|
2002-07-13 05:57:25 +08:00
|
|
|
# define ntoh16(i) ( i )
|
|
|
|
# define ntoh32(i) ( i )
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# define ntoh64(i) ( i )
|
|
|
|
#else
|
2002-07-13 05:57:25 +08:00
|
|
|
# define hton16(i) U16_AT(&i)
|
|
|
|
# define hton32(i) U32_AT(&i)
|
|
|
|
# define hton64(i) U64_AT(&i)
|
|
|
|
# define ntoh16(i) U16_AT(&i)
|
|
|
|
# define ntoh32(i) U32_AT(&i)
|
|
|
|
# define ntoh64(i) U64_AT(&i)
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#endif
|
|
|
|
|
2002-12-18 19:47:35 +08:00
|
|
|
/* Format string sanity checks */
|
|
|
|
#ifdef HAVE_ATTRIBUTE_FORMAT
|
|
|
|
# define ATTRIBUTE_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
|
|
|
|
#else
|
|
|
|
# define ATTRIBUTE_FORMAT(x,y)
|
|
|
|
#endif
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* Alignment of critical static data structures */
|
|
|
|
#ifdef ATTRIBUTE_ALIGNED_MAX
|
|
|
|
# define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align)))
|
|
|
|
#else
|
|
|
|
# define ATTR_ALIGN(align)
|
|
|
|
#endif
|
|
|
|
|
2002-04-05 09:05:22 +08:00
|
|
|
/* Alignment of critical dynamic data structure
|
|
|
|
*
|
|
|
|
* Not all platforms support memalign so we provide a vlc_memalign wrapper
|
|
|
|
* void *vlc_memalign( size_t align, size_t size, void **pp_orig )
|
|
|
|
* *pp_orig is the pointer that has to be freed afterwards.
|
|
|
|
*/
|
|
|
|
#if 0
|
|
|
|
#ifdef HAVE_POSIX_MEMALIGN
|
|
|
|
# define vlc_memalign(align,size,pp_orig) \
|
|
|
|
( !posix_memalign( pp_orig, align, size ) ? *(pp_orig) : NULL )
|
|
|
|
#endif
|
|
|
|
#endif
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#ifdef HAVE_MEMALIGN
|
|
|
|
/* Some systems have memalign() but no declaration for it */
|
|
|
|
void * memalign( size_t align, size_t size );
|
2002-04-05 09:05:22 +08:00
|
|
|
|
2002-04-26 05:52:42 +08:00
|
|
|
# define vlc_memalign(pp_orig,align,size) \
|
2002-04-05 09:05:22 +08:00
|
|
|
( *(pp_orig) = memalign( align, size ) )
|
|
|
|
|
|
|
|
#else /* We don't have any choice but to align manually */
|
2002-04-26 05:52:42 +08:00
|
|
|
# define vlc_memalign(pp_orig,align,size) \
|
|
|
|
(( *(pp_orig) = malloc( size + align - 1 )) \
|
|
|
|
? (void *)( (((unsigned long)*(pp_orig)) + (unsigned long)(align-1) ) \
|
2002-04-27 02:12:28 +08:00
|
|
|
& (~(unsigned long)(align-1)) ) \
|
2002-04-26 05:52:42 +08:00
|
|
|
: NULL )
|
2002-04-05 09:05:22 +08:00
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#endif
|
|
|
|
|
2002-11-20 16:58:24 +08:00
|
|
|
/* Stuff defined in src/extras/libc.c */
|
2002-11-11 07:41:54 +08:00
|
|
|
#ifndef HAVE_STRDUP
|
2002-11-20 16:58:24 +08:00
|
|
|
# define strdup vlc_strdup
|
|
|
|
VLC_EXPORT( char *, vlc_strdup, ( const char *s ) );
|
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_strdup NULL
|
2002-11-11 07:41:54 +08:00
|
|
|
#endif
|
2002-11-20 16:58:24 +08:00
|
|
|
|
2004-01-08 18:27:07 +08:00
|
|
|
#if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS)
|
2004-01-08 07:39:41 +08:00
|
|
|
# define vasprintf vlc_vasprintf
|
2004-01-08 19:18:27 +08:00
|
|
|
VLC_EXPORT( int, vlc_vasprintf, (char **, const char *, va_list ) );
|
2004-01-08 07:39:41 +08:00
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_vasprintf NULL
|
|
|
|
#endif
|
|
|
|
|
2004-01-10 02:32:04 +08:00
|
|
|
#if !defined(HAVE_ASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS)
|
|
|
|
# define asprintf vlc_asprintf
|
|
|
|
VLC_EXPORT( int, vlc_asprintf, (char **, const char *, ... ) );
|
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_asprintf NULL
|
|
|
|
#endif
|
|
|
|
|
2002-07-05 19:18:56 +08:00
|
|
|
#ifndef HAVE_STRNDUP
|
2003-01-28 06:42:36 +08:00
|
|
|
# if defined(STRNDUP_IN_GNOME_H) && \
|
2003-03-18 02:02:11 +08:00
|
|
|
(defined(MODULE_NAME_IS_gnome)||defined(MODULE_NAME_IS_gnome_main)||\
|
|
|
|
defined(MODULE_NAME_IS_gnome2)||defined(MODULE_NAME_IS_gnome2_main))
|
2003-01-28 06:42:36 +08:00
|
|
|
/* Do nothing: gnome.h defines strndup for us */
|
|
|
|
# else
|
|
|
|
# define strndup vlc_strndup
|
|
|
|
VLC_EXPORT( char *, vlc_strndup, ( const char *s, size_t n ) );
|
|
|
|
# endif
|
2002-11-20 16:58:24 +08:00
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_strndup NULL
|
2002-11-11 07:41:54 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_ATOF
|
2002-11-20 16:58:24 +08:00
|
|
|
# define atof vlc_atof
|
|
|
|
VLC_EXPORT( double, vlc_atof, ( const char *nptr ) );
|
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_atof NULL
|
2002-11-11 07:41:54 +08:00
|
|
|
#endif
|
|
|
|
|
2004-10-18 14:00:41 +08:00
|
|
|
#ifndef HAVE_STRTOF
|
|
|
|
# ifdef HAVE_STRTOD
|
|
|
|
# define strtof strtod
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2003-08-14 19:47:32 +08:00
|
|
|
#ifndef HAVE_ATOLL
|
|
|
|
# define atoll vlc_atoll
|
|
|
|
VLC_EXPORT( int64_t, vlc_atoll, ( const char *nptr ) );
|
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_atoll NULL
|
2004-10-01 19:11:37 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRTOLL
|
|
|
|
# define strtoll vlc_strtoll
|
|
|
|
VLC_EXPORT( int64_t, vlc_strtoll, ( const char *nptr, char **endptr, int base ) );
|
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_strtoll NULL
|
2003-08-14 19:47:32 +08:00
|
|
|
#endif
|
|
|
|
|
2002-11-11 07:41:54 +08:00
|
|
|
#ifndef HAVE_GETENV
|
2002-11-20 16:58:24 +08:00
|
|
|
# define getenv vlc_getenv
|
|
|
|
VLC_EXPORT( char *, vlc_getenv, ( const char *name ) );
|
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_getenv NULL
|
2002-11-11 07:41:54 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRCASECMP
|
2004-06-15 23:41:53 +08:00
|
|
|
# ifndef HAVE_STRICMP
|
|
|
|
# define strcasecmp vlc_strcasecmp
|
|
|
|
VLC_EXPORT( int, vlc_strcasecmp, ( const char *s1, const char *s2 ) );
|
|
|
|
# else
|
2002-11-11 07:41:54 +08:00
|
|
|
# define strcasecmp stricmp
|
2003-04-16 19:47:08 +08:00
|
|
|
# if !defined(__PLUGIN__)
|
|
|
|
# define vlc_strcasecmp NULL
|
|
|
|
# endif
|
2002-11-11 07:41:54 +08:00
|
|
|
# endif
|
2002-11-20 16:58:24 +08:00
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_strcasecmp NULL
|
2002-11-11 07:41:54 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRNCASECMP
|
2004-06-15 23:41:53 +08:00
|
|
|
# ifndef HAVE_STRNICMP
|
|
|
|
# define strncasecmp vlc_strncasecmp
|
|
|
|
VLC_EXPORT( int, vlc_strncasecmp, ( const char *s1, const char *s2, size_t n ) );
|
|
|
|
# else
|
2002-11-11 07:41:54 +08:00
|
|
|
# define strncasecmp strnicmp
|
2003-04-16 19:47:08 +08:00
|
|
|
# if !defined(__PLUGIN__)
|
|
|
|
# define vlc_strncasecmp NULL
|
|
|
|
# endif
|
2002-11-11 07:41:54 +08:00
|
|
|
# endif
|
2002-11-20 16:58:24 +08:00
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_strncasecmp NULL
|
2002-07-05 19:18:56 +08:00
|
|
|
#endif
|
|
|
|
|
2004-06-15 22:43:26 +08:00
|
|
|
#ifndef HAVE_STRCASESTR
|
2004-06-15 23:41:53 +08:00
|
|
|
# ifndef HAVE_STRISTR
|
|
|
|
# define strcasestr vlc_strcasestr
|
|
|
|
VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) );
|
|
|
|
# else
|
2004-06-15 22:43:26 +08:00
|
|
|
# define strcasestr stristr
|
|
|
|
# if !defined(__PLUGIN__)
|
|
|
|
# define vlc_strcasestr NULL
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_strcasestr NULL
|
|
|
|
#endif
|
|
|
|
|
2005-02-21 21:00:20 +08:00
|
|
|
#ifndef HAVE_DIRENT_H
|
2005-02-21 21:50:17 +08:00
|
|
|
typedef void DIR;
|
2005-02-21 21:00:20 +08:00
|
|
|
# ifndef FILENAME_MAX
|
|
|
|
# define FILENAME_MAX (260)
|
|
|
|
# endif
|
|
|
|
struct dirent
|
|
|
|
{
|
|
|
|
long d_ino; /* Always zero. */
|
|
|
|
unsigned short d_reclen; /* Always zero. */
|
|
|
|
unsigned short d_namlen; /* Length of name in d_name. */
|
|
|
|
char d_name[FILENAME_MAX]; /* File name. */
|
|
|
|
};
|
|
|
|
# define opendir vlc_opendir
|
|
|
|
# define readdir vlc_readdir
|
|
|
|
# define closedir vlc_closedir
|
2005-02-21 21:50:17 +08:00
|
|
|
VLC_EXPORT( void *, vlc_opendir, ( const char * ) );
|
|
|
|
VLC_EXPORT( void *, vlc_readdir, ( void * ) );
|
|
|
|
VLC_EXPORT( int, vlc_closedir, ( void * ) );
|
2005-02-21 21:00:20 +08:00
|
|
|
#elif !defined(__PLUGIN__)
|
|
|
|
# define vlc_opendir NULL
|
|
|
|
# define vlc_readdir NULL
|
|
|
|
# define vlc_closedir NULL
|
|
|
|
#endif
|
|
|
|
|
2002-11-08 18:26:54 +08:00
|
|
|
/* Format type specifiers for 64 bits numbers */
|
2002-11-11 22:39:12 +08:00
|
|
|
#if !defined(WIN32) && !defined(UNDER_CE)
|
2002-11-08 18:26:54 +08:00
|
|
|
# define I64Fd "%lld"
|
|
|
|
# define I64Fi "%lli"
|
|
|
|
# define I64Fo "%llo"
|
|
|
|
# define I64Fu "%llu"
|
|
|
|
# define I64Fx "%llx"
|
|
|
|
# define I64FX "%llX"
|
|
|
|
#else
|
|
|
|
# define I64Fd "%I64d"
|
|
|
|
# define I64Fi "%I64i"
|
|
|
|
# define I64Fo "%I64o"
|
|
|
|
# define I64Fu "%I64u"
|
|
|
|
# define I64Fx "%I64x"
|
|
|
|
# define I64FX "%I64X"
|
2002-11-11 22:39:12 +08:00
|
|
|
#endif /* defined(WIN32)||defined(UNDER_CE) */
|
2002-11-08 18:26:54 +08:00
|
|
|
|
|
|
|
/* 64 bits integer constant suffix */
|
2003-06-05 19:52:19 +08:00
|
|
|
#if defined( __MINGW32__ ) || (!defined(WIN32) && !defined(UNDER_CE))
|
2002-11-08 18:26:54 +08:00
|
|
|
# define I64C(x) x##LL
|
2004-02-24 04:34:47 +08:00
|
|
|
# define UI64C(x) x##ULL
|
2002-11-08 18:26:54 +08:00
|
|
|
#else
|
|
|
|
# define I64C(x) x##i64
|
2004-02-24 04:34:47 +08:00
|
|
|
# define UI64C(x) x##ui64
|
2002-11-11 22:39:12 +08:00
|
|
|
#endif /* defined(WIN32)||defined(UNDER_CE) */
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
|
2002-11-13 23:28:24 +08:00
|
|
|
#if defined(WIN32) || defined(UNDER_CE)
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/* win32, cl and icl support */
|
2002-03-03 12:37:29 +08:00
|
|
|
# if defined( _MSC_VER ) || !defined( __MINGW32__ )
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# define __attribute__(x)
|
|
|
|
# define __inline__ __inline
|
2002-04-02 05:54:26 +08:00
|
|
|
# define S_IFBLK 0x3000 /* Block */
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# define S_ISBLK(m) (0)
|
|
|
|
# define S_ISCHR(m) (0)
|
|
|
|
# define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO)
|
|
|
|
# define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG)
|
|
|
|
# endif
|
|
|
|
|
|
|
|
/* several type definitions */
|
|
|
|
# if defined( __MINGW32__ )
|
|
|
|
# if !defined( _OFF_T_ )
|
|
|
|
typedef long long _off_t;
|
|
|
|
typedef _off_t off_t;
|
|
|
|
# define _OFF_T_
|
|
|
|
# else
|
2002-12-31 01:36:01 +08:00
|
|
|
# ifdef off_t
|
|
|
|
# undef off_t
|
|
|
|
# endif
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# define off_t long long
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# if defined( _MSC_VER )
|
|
|
|
# if !defined( _OFF_T_DEFINED )
|
|
|
|
typedef __int64 off_t;
|
|
|
|
# define _OFF_T_DEFINED
|
|
|
|
# else
|
|
|
|
# define off_t __int64
|
2005-02-07 18:44:49 +08:00
|
|
|
/* for wx compatibility typedef long off_t; */
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
2002-03-19 12:22:02 +08:00
|
|
|
# if defined( __BORLANDC__ )
|
2002-03-19 11:42:31 +08:00
|
|
|
# undef off_t
|
2002-03-26 07:36:57 +08:00
|
|
|
# define off_t unsigned __int64
|
2002-03-19 11:42:31 +08:00
|
|
|
# endif
|
|
|
|
|
2002-01-14 02:13:07 +08:00
|
|
|
# ifndef O_NONBLOCK
|
|
|
|
# define O_NONBLOCK 0
|
2003-03-04 00:49:14 +08:00
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifndef alloca
|
|
|
|
# define alloca _alloca
|
2002-01-14 02:13:07 +08:00
|
|
|
# endif
|
|
|
|
|
2002-08-11 03:23:06 +08:00
|
|
|
/* These two are not defined in mingw32 (bug?) */
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# ifndef snprintf
|
2002-08-11 03:23:06 +08:00
|
|
|
# define snprintf _snprintf
|
|
|
|
# endif
|
|
|
|
# ifndef vsnprintf
|
|
|
|
# define vsnprintf _vsnprintf
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
# endif
|
|
|
|
|
2005-02-07 18:44:49 +08:00
|
|
|
# include <tchar.h>
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#endif
|
|
|
|
|
2004-09-09 21:04:12 +08:00
|
|
|
VLC_EXPORT( vlc_bool_t, vlc_reduce, ( int *, int *, int64_t, int64_t, int64_t ) );
|
2004-11-12 16:10:19 +08:00
|
|
|
VLC_EXPORT( char **, vlc_parse_cmdline, ( const char *, int * ) );
|
2004-09-09 21:04:12 +08:00
|
|
|
|
2003-10-09 03:40:42 +08:00
|
|
|
/* vlc_wraptext (defined in src/extras/libc.c) */
|
|
|
|
#define wraptext vlc_wraptext
|
|
|
|
VLC_EXPORT( char *, vlc_wraptext, ( const char *, int, vlc_bool_t ) );
|
|
|
|
|
2004-09-08 05:46:16 +08:00
|
|
|
/* iconv wrappers (defined in src/extras/libc.c) */
|
|
|
|
typedef void *vlc_iconv_t;
|
|
|
|
VLC_EXPORT( vlc_iconv_t, vlc_iconv_open, ( const char *, const char * ) );
|
|
|
|
VLC_EXPORT( size_t, vlc_iconv, ( vlc_iconv_t, char **, size_t *, char **, size_t * ) );
|
|
|
|
VLC_EXPORT( int, vlc_iconv_close, ( vlc_iconv_t ) );
|
|
|
|
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* CPU capabilities
|
|
|
|
*****************************************************************************/
|
|
|
|
#define CPU_CAPABILITY_NONE 0
|
|
|
|
#define CPU_CAPABILITY_486 (1<<0)
|
|
|
|
#define CPU_CAPABILITY_586 (1<<1)
|
|
|
|
#define CPU_CAPABILITY_PPRO (1<<2)
|
|
|
|
#define CPU_CAPABILITY_MMX (1<<3)
|
|
|
|
#define CPU_CAPABILITY_3DNOW (1<<4)
|
|
|
|
#define CPU_CAPABILITY_MMXEXT (1<<5)
|
|
|
|
#define CPU_CAPABILITY_SSE (1<<6)
|
2004-01-29 22:39:08 +08:00
|
|
|
#define CPU_CAPABILITY_SSE2 (1<<7)
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#define CPU_CAPABILITY_ALTIVEC (1<<16)
|
|
|
|
#define CPU_CAPABILITY_FPU (1<<31)
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* I18n stuff
|
|
|
|
*****************************************************************************/
|
2002-12-27 23:31:56 +08:00
|
|
|
VLC_EXPORT( char *, vlc_dgettext, ( const char *package, const char *msgid ) );
|
|
|
|
|
2003-01-28 11:11:02 +08:00
|
|
|
#if defined( ENABLE_NLS ) && \
|
2003-03-18 02:02:11 +08:00
|
|
|
(defined(MODULE_NAME_IS_gnome)||defined(MODULE_NAME_IS_gnome_main)||\
|
2003-12-07 06:45:53 +08:00
|
|
|
defined(MODULE_NAME_IS_gnome2)||defined(MODULE_NAME_IS_gnome2_main)||\
|
|
|
|
defined(MODULE_NAME_IS_pda))
|
2003-01-29 01:11:38 +08:00
|
|
|
/* Declare nothing: gnome.h will do it for us */
|
2003-05-26 01:27:13 +08:00
|
|
|
#elif defined( ENABLE_NLS )
|
2004-08-28 03:30:37 +08:00
|
|
|
# if defined( HAVE_INCLUDED_GETTEXT )
|
|
|
|
# include "libintl.h"
|
|
|
|
# else
|
|
|
|
# include <libintl.h>
|
|
|
|
# endif
|
2002-12-27 23:31:56 +08:00
|
|
|
# undef _
|
2004-08-28 03:30:37 +08:00
|
|
|
# define _(String) vlc_dgettext (PACKAGE_NAME, String)
|
2002-12-27 23:31:56 +08:00
|
|
|
# define N_(String) ((char*)(String))
|
2003-01-28 11:11:02 +08:00
|
|
|
#else
|
2002-12-27 23:31:56 +08:00
|
|
|
# define _(String) ((char*)(String))
|
|
|
|
# define N_(String) ((char*)(String))
|
* ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
add more details to make this file really useful.
* ./doc/bugreport-howto.txt: wishful thinking...
* ./Makefile: added a workaround for the fact that .c files don't depend
on <videolan/vlc.h>.
* ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
single file.
* ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
and --noaltivec options to vlc.
* ./configure.in: removed the --disable-mmx option, now useless because
of the vlc --no* options.
* ./src/interface/main.c: fixed a crash caused by the memcpy module
being released too early.
* ./include/video.h: more vout4 changes, including margin support, more
FOURCC formats recognized, transparent support of identical or almost
identical FOURCC formats.
* ./include/video_output.h: added a vout_Render function to video output
modules which is to be executed before vout_Display.
* ./include/common.h: this header is back.
* ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
functions, mostly taken from vout3's yuv functions, but heavily modified
to use FAST_MEMCPY and to handle image dimensions which are not multiples
of 16. Not all functions have been written yet, though.
* ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
with accelerated MMX versions.
* ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
makes it possible to display 4:2:2 files on most video cards without the
quality loss of 4:2:0 downsampling.
* ./plugins/filter/*: thanks to the vout_Render function, all filters now
output their data perfectly in sync.
* ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
* ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
* ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 22:01:35 +08:00
|
|
|
#endif
|
|
|
|
|
2002-04-26 05:52:42 +08:00
|
|
|
/*****************************************************************************
|
2002-08-27 07:36:20 +08:00
|
|
|
* Additional vlc stuff
|
2002-04-26 05:52:42 +08:00
|
|
|
*****************************************************************************/
|
* 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
|
|
|
#include "vlc_symbols.h"
|
2002-08-27 07:36:20 +08:00
|
|
|
#include "os_specific.h"
|
|
|
|
#include "vlc_messages.h"
|
Changes to the libvlc API:
* ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
exported functions start with VLC_ instead of vlc_ to avoid conflicts.
* ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
and vlc_t types; they are now internal types only.
* ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
calls. In non-reentrant mode, we just use 0 as the first argument. In
reentrant mode, we use an object's ID. (see below)
Internal changes:
* ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
pointers, we manipulate their i_object_id. When needed, an object is
retrieved using vlc_object_get (I hope the lookup isn't too expensive,
that's why I designed the pp_objects layout to allow log2(n) seeks).
* ./src/misc/objects.c: activated the per-object variable storage. Unused
yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
* ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
here.
Misc:
* ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
code portions not part of libvlc; it was just required for the
COPYRIGHT_MESSAGE string which is now available from VLC_Version().
2002-10-12 06:32:56 +08:00
|
|
|
#include "variables.h"
|
|
|
|
#include "vlc_objects.h"
|
2002-08-30 07:53:22 +08:00
|
|
|
#include "vlc_threads_funcs.h"
|
2002-08-27 07:36:20 +08:00
|
|
|
#include "mtime.h"
|
|
|
|
#include "modules.h"
|
|
|
|
#include "main.h"
|
|
|
|
#include "configuration.h"
|
|
|
|
|
|
|
|
#if defined( __BORLANDC__ )
|
|
|
|
# undef PACKAGE
|
|
|
|
# define PACKAGE
|
|
|
|
#endif
|
|
|
|
|