Commit b6188286 authored by Gildas Bazin's avatar Gildas Bazin

 * Big clean-up to allow compiling every module as plugins.
 * Added bytes_swap.h to provide ntoh() and htol() on Win32. With this
     change we don't have to link winsock2 with every plugin anymore. This
     should also give us a slight speed increase.
 * Added #define WIN32_LEAN_AND_MEAN in threads.h to speed-up compilation
     on Win32.
 * Modified ac_downmix_3dn and sse so they compile with the latest gcc for
     Win32.

(PS: the dvdread plugin doesn't compile yet on Win32)
parent b8ff945d
...@@ -70,6 +70,7 @@ LIB_ALTIVEC = @LIB_ALTIVEC@ ...@@ -70,6 +70,7 @@ LIB_ALTIVEC = @LIB_ALTIVEC@
LIB_ARTS = @LIB_ARTS@ LIB_ARTS = @LIB_ARTS@
LIB_BEOS = @LIB_BEOS@ LIB_BEOS = @LIB_BEOS@
LIB_DARWIN = @LIB_DARWIN@ LIB_DARWIN = @LIB_DARWIN@
LIB_DIRECTX = @LIB_DIRECTX@
LIB_DVD = @LIB_DVD@ LIB_DVD = @LIB_DVD@
LIB_DVD_PLUGIN = @LIB_DVD_PLUGIN@ LIB_DVD_PLUGIN = @LIB_DVD_PLUGIN@
LIB_DVDREAD = @LIB_DVDREAD@ LIB_DVDREAD = @LIB_DVDREAD@
...@@ -79,15 +80,15 @@ LIB_GGI = @LIB_GGI@ ...@@ -79,15 +80,15 @@ LIB_GGI = @LIB_GGI@
LIB_GLIDE = @LIB_GLIDE@ LIB_GLIDE = @LIB_GLIDE@
LIB_GNOME = @LIB_GNOME@ LIB_GNOME = @LIB_GNOME@
LIB_GTK = @LIB_GTK@ LIB_GTK = @LIB_GTK@
LIB_LIBDVDCSS = @LIB_LIBDVDCSS@
LIB_KDE = @LIB_KDE@ LIB_KDE = @LIB_KDE@
LIB_LIBDVDCSS = @LIB_LIBDVDCSS@
LIB_MACOSX = @LIB_MACOSX@ LIB_MACOSX = @LIB_MACOSX@
LIB_QNX = @LIB_QNX@
LIB_NCURSES = @LIB_NCURSES@ LIB_NCURSES = @LIB_NCURSES@
LIB_QNX = @LIB_QNX@
LIB_QT = @LIB_QT@ LIB_QT = @LIB_QT@
LIB_TS = @LIB_TS@ LIB_RC = @LIB_RC@
LIB_SDL = @LIB_SDL@ LIB_SDL = @LIB_SDL@
LIB_DIRECTX = @LIB_DIRECTX@ LIB_TS = @LIB_TS@
LIB_X11 = @LIB_X11@ LIB_X11 = @LIB_X11@
LIB_XVIDEO = @LIB_XVIDEO@ LIB_XVIDEO = @LIB_XVIDEO@
LIB_YUV = @LIB_YUV@ LIB_YUV = @LIB_YUV@
......
This diff is collapsed.
...@@ -411,6 +411,8 @@ dnl Windoze specific section ...@@ -411,6 +411,8 @@ dnl Windoze specific section
dnl dnl
if test $SYS = mingw32; then if test $SYS = mingw32; then
AC_CHECK_TOOL(WINDRES, windres, :) AC_CHECK_TOOL(WINDRES, windres, :)
LIB_TS="-lws2_32"
LIB_RC="-lws2_32"
fi fi
dnl dnl
...@@ -940,23 +942,16 @@ AC_ARG_ENABLE(directx, ...@@ -940,23 +942,16 @@ AC_ARG_ENABLE(directx,
[ --disable-directx Windows DirectX support (default enabled on WIN32)], [ --disable-directx Windows DirectX support (default enabled on WIN32)],
[ if test "x$enableval" != "xno" [ if test "x$enableval" != "xno"
then then
PLUGINS="${PLUGINS} directx"
if test "x$enableval" = "xyes" if test "x$enableval" = "xyes"
then then
AC_ARG_WITH(directx, AC_CHECK_HEADERS(directx.h,
[--with-directx=[name] Windows DirectX support (default enabled)]) [ PLUGINS="${PLUGINS} directx"
if test "x$withval" = "x" LIB_DIRECTX="-lgdi32 -ldxguid" ] )
then
AC_CHECK_HEADERS(directx.h, [LIB_DIRECTX="-lgdi32 -ldxguid"],
AC_MSG_ERROR([Cannot find DirectX headers !]))
else
LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
INCLUDE="${INCLUDE} -I"$withval"/include"
fi
else else
AC_MSG_CHECKING(for directX headers in ${enableval}) AC_MSG_CHECKING(for directX headers in ${enableval})
if test -f ${enableval}/include/directx.h if test -f ${enableval}/include/directx.h
then then
PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="-L${enableval}/lib -lgdi32 -ldxguid" LIB_DIRECTX="-L${enableval}/lib -lgdi32 -ldxguid"
INCLUDE="${INCLUDE} -I${enableval}/include" INCLUDE="${INCLUDE} -I${enableval}/include"
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
...@@ -967,11 +962,27 @@ AC_ARG_ENABLE(directx, ...@@ -967,11 +962,27 @@ AC_ARG_ENABLE(directx,
fi fi
fi ], fi ],
[ if test $SYS = mingw32 [ if test $SYS = mingw32
then
AC_ARG_WITH(directx-path,
[ --with-directx-path=path Windows DirectX headers and libraries])
if test "x$with_directx_path" = "x"
then then
AC_CHECK_HEADERS(directx.h, AC_CHECK_HEADERS(directx.h,
[ PLUGINS="${PLUGINS} directx" [ PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="-lgdi32 -ldxguid" ], LIB_DIRECTX="-lgdi32 -ldxguid" ])
[ echo "Cannot find DirectX headers !" ]) else
AC_MSG_CHECKING(for directX headers in ${withval})
if test -f ${with_directx_path}/include/directx.h
then
PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="-L${with_directx_path}/lib -lgdi32 -ldxguid"
INCLUDE="${INCLUDE} -I${with_directx_path}/include"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([Cannot find ${with_directx_path}/include/directx.h!])
fi
fi
fi ]) fi ])
dnl dnl
...@@ -1203,6 +1214,7 @@ AC_SUBST(LIB_ALTIVEC) ...@@ -1203,6 +1214,7 @@ AC_SUBST(LIB_ALTIVEC)
AC_SUBST(LIB_ARTS) AC_SUBST(LIB_ARTS)
AC_SUBST(LIB_BEOS) AC_SUBST(LIB_BEOS)
AC_SUBST(LIB_DARWIN) AC_SUBST(LIB_DARWIN)
AC_SUBST(LIB_DIRECTX)
AC_SUBST(LIB_DVD) AC_SUBST(LIB_DVD)
AC_SUBST(LIB_DVD_PLUGIN) AC_SUBST(LIB_DVD_PLUGIN)
AC_SUBST(LIB_DVDREAD) AC_SUBST(LIB_DVDREAD)
...@@ -1212,15 +1224,15 @@ AC_SUBST(LIB_GGI) ...@@ -1212,15 +1224,15 @@ AC_SUBST(LIB_GGI)
AC_SUBST(LIB_GLIDE) AC_SUBST(LIB_GLIDE)
AC_SUBST(LIB_GNOME) AC_SUBST(LIB_GNOME)
AC_SUBST(LIB_GTK) AC_SUBST(LIB_GTK)
AC_SUBST(LIB_LIBDVDCSS)
AC_SUBST(LIB_KDE) AC_SUBST(LIB_KDE)
AC_SUBST(LIB_LIBDVDCSS)
AC_SUBST(LIB_MACOSX) AC_SUBST(LIB_MACOSX)
AC_SUBST(LIB_QNX)
AC_SUBST(LIB_NCURSES) AC_SUBST(LIB_NCURSES)
AC_SUBST(LIB_QNX)
AC_SUBST(LIB_QT) AC_SUBST(LIB_QT)
AC_SUBST(LIB_TS) AC_SUBST(LIB_RC)
AC_SUBST(LIB_SDL) AC_SUBST(LIB_SDL)
AC_SUBST(LIB_DIRECTX) AC_SUBST(LIB_TS)
AC_SUBST(LIB_X11) AC_SUBST(LIB_X11)
AC_SUBST(LIB_XVIDEO) AC_SUBST(LIB_XVIDEO)
AC_SUBST(LIB_YUV) AC_SUBST(LIB_YUV)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ioctl.h: DVD ioctl replacement function * ioctl.h: DVD ioctl replacement function
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: ioctl.h,v 1.8 2001/11/02 13:30:38 massiot Exp $ * $Id: ioctl.h,v 1.9 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -125,8 +125,12 @@ typedef u_int8_t dvd_key[5]; ...@@ -125,8 +125,12 @@ typedef u_int8_t dvd_key[5];
typedef u_int8_t dvd_challenge[10]; typedef u_int8_t dvd_challenge[10];
#endif #endif
#if defined( WIN32 ) #if defined( WIN32 )
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
/***************************************************************************** /*****************************************************************************
* win32 ioctl specific * win32 ioctl specific
*****************************************************************************/ *****************************************************************************/
......
/*****************************************************************************
* bytes_swap.h: fast routines to swap bytes order.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: bytes_swap.h,v 1.1 2001/11/25 22:52:21 gbazin Exp $
*
* Authors: This code was borrowed from the GNU C Library.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
/* Swap bytes in 16 bit value. */
#define __bswap_constant_16(x) \
((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
#if defined __GNUC__ && __GNUC__ >= 2
# define __bswap_16(x) \
(__extension__ \
({ register unsigned short int __v; \
if (__builtin_constant_p (x)) \
__v = __bswap_constant_16 (x); \
else \
__asm__ __volatile__ ("rorw $8, %w0" \
: "=r" (__v) \
: "0" ((unsigned short int) (x)) \
: "cc"); \
__v; }))
#else
/* This is better than nothing. */
# define __bswap_16(x) __bswap_constant_16 (x)
#endif
/* Swap bytes in 32 bit value. */
#define __bswap_constant_32(x) \
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
#if defined __GNUC__ && __GNUC__ >= 2
/* To swap the bytes in a word the i486 processors and up provide the
`bswap' opcode. On i386 we have to use three instructions. */
# if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__
# define __bswap_32(x) \
(__extension__ \
({ register unsigned int __v; \
if (__builtin_constant_p (x)) \
__v = __bswap_constant_32 (x); \
else \
__asm__ __volatile__ ("rorw $8, %w0;" \
"rorl $16, %0;" \
"rorw $8, %w0" \
: "=r" (__v) \
: "0" ((unsigned int) (x)) \
: "cc"); \
__v; }))
# else
# define __bswap_32(x) \
(__extension__ \
({ register unsigned int __v; \
if (__builtin_constant_p (x)) \
__v = __bswap_constant_32 (x); \
else \
__asm__ __volatile__ ("bswap %0" \
: "=r" (__v) \
: "0" ((unsigned int) (x))); \
__v; }))
# endif
#else
# define __bswap_32(x) __bswap_constant_32 (x)
#endif
#if defined __GNUC__ && __GNUC__ >= 2
/* Swap bytes in 64 bit value. */
#define __bswap_constant_64(x) \
((((x) & 0xff00000000000000ull) >> 56) \
| (((x) & 0x00ff000000000000ull) >> 40) \
| (((x) & 0x0000ff0000000000ull) >> 24) \
| (((x) & 0x000000ff00000000ull) >> 8) \
| (((x) & 0x00000000ff000000ull) << 8) \
| (((x) & 0x0000000000ff0000ull) << 24) \
| (((x) & 0x000000000000ff00ull) << 40) \
| (((x) & 0x00000000000000ffull) << 56))
# define __bswap_64(x) \
(__extension__ \
({ union { __extension__ unsigned long long int __ll; \
unsigned long int __l[2]; } __w, __r; \
if (__builtin_constant_p (x)) \
__r.__ll = __bswap_constant_64 (x); \
else \
{ \
__w.__ll = (x); \
__r.__l[0] = __bswap_32 (__w.__l[1]); \
__r.__l[1] = __bswap_32 (__w.__l[0]); \
} \
__r.__ll; }))
#endif
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions * Collection of useful common types and macros definitions
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.49 2001/11/21 10:47:20 massiot Exp $ * $Id: common.h,v 1.50 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@via.ecp.fr> * Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -153,7 +153,7 @@ struct decoder_fifo_s; ...@@ -153,7 +153,7 @@ struct decoder_fifo_s;
#ifdef NTOHL_IN_SYS_PARAM_H #ifdef NTOHL_IN_SYS_PARAM_H
# include <sys/param.h> # include <sys/param.h>
#elif defined(WIN32) #elif defined(WIN32)
# include <winsock.h> # include "bytes_swap.h"
#else #else
# include <netinet/in.h> # include <netinet/in.h>
#endif #endif
...@@ -220,44 +220,13 @@ struct decoder_fifo_s; ...@@ -220,44 +220,13 @@ struct decoder_fifo_s;
/* Assume malloc alignment is sufficient */ /* Assume malloc alignment is sufficient */
# define memalign(align,size) malloc(size) # define memalign(align,size) malloc(size)
# endif # endif
#endif
#endif #define I64C(x) x##LL
/* win32, cl and icl support */
#if defined( _MSC_VER )
# define __attribute__(x)
# define __inline__ __inline
# define strncasecmp strnicmp
# define strcasecmp stricmp
# 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)
# define I64C(x) x##i64
#else
# define I64C(x) x##LL
#endif
/* The win32 specific stuff was getting really big so it has been moved */
#if defined( WIN32 ) #if defined( WIN32 )
# if defined( __MINGW32__ ) # include "common_win32.h"
# if !defined( _OFF_T_ )
typedef long long _off_t;
typedef _off_t off_t;
# define _OFF_T_
# else
# define off_t long long
# endif
# elif defined( _MSC_VER )
# if !defined( _OFF_T_DEFINED )
typedef __int64 off_t;
# define _OFF_T_DEFINED
# else
# define off_t __int64
# endif
# endif
# define stat _stati64
# ifndef snprintf
# define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */
# endif
#endif #endif
/*****************************************************************************
* common_win32.h: common definitions specific to Win32
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common_win32.h,v 1.1 2001/11/25 22:52:21 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
/* The ntoh* and hton* bytes swapping functions are provided by winsock
* but for conveniency and speed reasons it is better to implement them
* ourselves. ( several plugins use them and it is too much assle to link
* winsock with each of them ;-)
*/
#undef ntoh32(x)
#undef ntoh16(x)
#undef ntoh64(x)
#undef hton32(x)
#undef hton16(x)
#undef hton64(x)
#ifdef WORDS_BIGENDIAN
# define ntoh32(x) (x)
# define ntoh16(x) (x)
# define ntoh64(x) (x)
# define hton32(x) (x)
# define hton16(x) (x)
# define hton64(x) (x)
#else
# define ntoh32(x) __bswap_32 (x)
# define ntoh16(x) __bswap_16 (x)
# define ntoh64(x) __bswap_32 (x)
# define hton32(x) __bswap_32 (x)
# define hton16(x) __bswap_16 (x)
# define hton64(x) __bswap_32 (x)
#endif
/* win32, cl and icl support */
#if defined( _MSC_VER )
# define __attribute__(x)
# define __inline__ __inline
# define strncasecmp strnicmp
# define strcasecmp stricmp
# 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)
# undef I64C(x)
# define I64C(x) x##i64
#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
# 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
# endif
# define stat _stati64
#endif
#ifndef snprintf
# define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */
#endif
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* control the pace of reading. * control the pace of reading.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: input_ext-intf.h,v 1.48 2001/11/15 17:39:12 sam Exp $ * $Id: input_ext-intf.h,v 1.49 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -321,6 +321,7 @@ typedef struct input_thread_s ...@@ -321,6 +321,7 @@ typedef struct input_thread_s
/***************************************************************************** /*****************************************************************************
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
#ifndef PLUGIN
struct input_thread_s * input_CreateThread ( struct playlist_item_s *, struct input_thread_s * input_CreateThread ( struct playlist_item_s *,
int *pi_status ); int *pi_status );
void input_DestroyThread( struct input_thread_s *, int *pi_status ); void input_DestroyThread( struct input_thread_s *, int *pi_status );
...@@ -337,4 +338,4 @@ int input_ChangeArea( struct input_thread_s *, struct input_area_s * ); ...@@ -337,4 +338,4 @@ int input_ChangeArea( struct input_thread_s *, struct input_area_s * );
int input_ToggleGrayscale( struct input_thread_s * ); int input_ToggleGrayscale( struct input_thread_s * );
int input_ToggleMute( struct input_thread_s * ); int input_ToggleMute( struct input_thread_s * );
int input_SetSMP( struct input_thread_s *, int ); int input_SetSMP( struct input_thread_s *, int );
#endif
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* but exported to plug-ins * but exported to plug-ins
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: input_ext-plugins.h,v 1.5 2001/11/15 17:39:12 sam Exp $ * $Id: input_ext-plugins.h,v 1.6 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -40,15 +40,18 @@ ...@@ -40,15 +40,18 @@
/***************************************************************************** /*****************************************************************************
* Prototypes from input_ext-dec.c * Prototypes from input_ext-dec.c
*****************************************************************************/ *****************************************************************************/
#ifndef PLUGIN
void InitBitstream ( struct bit_stream_s *, struct decoder_fifo_s *, void InitBitstream ( struct bit_stream_s *, struct decoder_fifo_s *,
void (* pf_bitstream_callback)( struct bit_stream_s *, void (* pf_bitstream_callback)( struct bit_stream_s *,
boolean_t ), boolean_t ),
void * p_callback_arg ); void * p_callback_arg );
void NextDataPacket ( struct bit_stream_s * ); void NextDataPacket ( struct bit_stream_s * );
#endif
/***************************************************************************** /*****************************************************************************
* Prototypes from input_programs.c * Prototypes from input_programs.c
*****************************************************************************/ *****************************************************************************/
#ifndef PLUGIN
int input_InitStream( struct input_thread_s *, size_t ); int input_InitStream( struct input_thread_s *, size_t );
void input_EndStream ( struct input_thread_s * ); void input_EndStream ( struct input_thread_s * );
struct pgrm_descriptor_s * input_FindProgram( struct input_thread_s *, u16 ); struct pgrm_descriptor_s * input_FindProgram( struct input_thread_s *, u16 );
...@@ -64,10 +67,12 @@ struct es_descriptor_s * input_AddES ( struct input_thread_s *, ...@@ -64,10 +67,12 @@ struct es_descriptor_s * input_AddES ( struct input_thread_s *,
void input_DelES ( struct input_thread_s *, struct es_descriptor_s * ); void input_DelES ( struct input_thread_s *, struct es_descriptor_s * );
int input_SelectES ( struct input_thread_s *, struct es_descriptor_s * ); int input_SelectES ( struct input_thread_s *, struct es_descriptor_s * );
int input_UnselectES( struct input_thread_s *, struct es_descriptor_s * ); int input_UnselectES( struct input_thread_s *, struct es_descriptor_s * );
#endif
/***************************************************************************** /*****************************************************************************
* Prototypes from input_dec.c * Prototypes from input_dec.c
*****************************************************************************/ *****************************************************************************/
#ifndef PLUGIN
//decoder_capabilities_s * input_ProbeDecoder( void ); //decoder_capabilities_s * input_ProbeDecoder( void );
vlc_thread_t input_RunDecoder( struct input_thread_s *, vlc_thread_t input_RunDecoder( struct input_thread_s *,
struct es_descriptor_s * ); struct es_descriptor_s * );
...@@ -76,10 +81,12 @@ void input_DecodePES ( struct decoder_fifo_s *, struct pes_packet_s * ); ...@@ -76,10 +81,12 @@ void input_DecodePES ( struct decoder_fifo_s *, struct pes_packet_s * );
void input_EscapeDiscontinuity( struct input_thread_s *, void input_EscapeDiscontinuity( struct input_thread_s *,
struct pgrm_descriptor_s * ); struct pgrm_descriptor_s * );
void input_EscapeAudioDiscontinuity( struct input_thread_s * ); void input_EscapeAudioDiscontinuity( struct input_thread_s * );
#endif
/***************************************************************************** /*****************************************************************************
* Prototypes from input_clock.c * Prototypes from input_clock.c
*****************************************************************************/ *****************************************************************************/
#ifndef PLUGIN
void input_ClockInit( struct pgrm_descriptor_s * ); void input_ClockInit( struct pgrm_descriptor_s * );
int input_ClockManageControl( struct input_thread_s *, int input_ClockManageControl( struct input_thread_s *,
struct pgrm_descriptor_s *, mtime_t ); struct pgrm_descriptor_s *, mtime_t );
...@@ -87,6 +94,7 @@ void input_ClockManageRef( struct input_thread_s *, ...@@ -87,6 +94,7 @@ void input_ClockManageRef( struct input_thread_s *,
struct pgrm_descriptor_s *, mtime_t ); struct pgrm_descriptor_s *, mtime_t );
mtime_t input_ClockGetTS( struct input_thread_s *, mtime_t input_ClockGetTS( struct input_thread_s *,
struct pgrm_descriptor_s *, mtime_t ); struct pgrm_descriptor_s *, mtime_t );
#endif
/***************************************************************************** /*****************************************************************************
* Create a NULL packet for padding in case of a data loss * Create a NULL packet for padding in case of a data loss
...@@ -176,6 +184,7 @@ typedef struct netlist_s ...@@ -176,6 +184,7 @@ typedef struct netlist_s
/***************************************************************************** /*****************************************************************************
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
#ifndef PLUGIN
int input_NetlistInit( struct input_thread_s *, int input_NetlistInit( struct input_thread_s *,
int i_nb_iovec, int i_nb_iovec,
int i_nb_data, int i_nb_data,
...@@ -194,6 +203,7 @@ void input_NetlistDeletePacket( void *, ...@@ -194,6 +203,7 @@ void input_NetlistDeletePacket( void *,
void input_NetlistDeletePES( void *, void input_NetlistDeletePES( void *,
struct pes_packet_s * ); struct pes_packet_s * );
void input_NetlistEnd( struct input_thread_s * ); void input_NetlistEnd( struct input_thread_s * );
#endif
/* /*
...@@ -293,6 +303,7 @@ typedef struct stream_ps_data_s ...@@ -293,6 +303,7 @@ typedef struct stream_ps_data_s
/***************************************************************************** /*****************************************************************************
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
#ifndef PLUGIN
void input_ParsePES ( struct input_thread_s *, struct es_descriptor_s * ); void input_ParsePES ( struct input_thread_s *, struct es_descriptor_s * );
void input_GatherPES ( struct input_thread_s *, struct data_packet_s *, void input_GatherPES ( struct input_thread_s *, struct data_packet_s *,
struct es_descriptor_s *, boolean_t, boolean_t ); struct es_descriptor_s *, boolean_t, boolean_t );
...@@ -302,4 +313,4 @@ void input_DemuxPS ( struct input_thread_s *, struct data_packet_s * ); ...@@ -302,4 +313,4 @@ void input_DemuxPS ( struct input_thread_s *, struct data_packet_s * );
void input_DemuxTS ( struct input_thread_s *, struct data_packet_s * ); void input_DemuxTS ( struct input_thread_s *, struct data_packet_s * );
void input_DemuxPSI ( struct input_thread_s *, struct data_packet_s *, void input_DemuxPSI ( struct input_thread_s *, struct data_packet_s *,
struct es_descriptor_s *, boolean_t, boolean_t ); struct es_descriptor_s *, boolean_t, boolean_t );
#endif
...@@ -158,11 +158,12 @@ typedef struct module_symbols_s ...@@ -158,11 +158,12 @@ typedef struct module_symbols_s
void ( * vout_DatePicture ) ( struct vout_thread_s *p_vout, void ( * vout_DatePicture ) ( struct vout_thread_s *p_vout,
struct picture_s *p_pic, mtime_t ); struct picture_s *p_pic, mtime_t );
u32 ( * UnalignedShowBits ) ( struct bit_stream_s *, unsigned int ); u32 ( * UnalignedShowBits ) ( struct bit_stream_s *, unsigned int );
void ( * UnalignedRemoveBits ) ( struct bit_stream_s * ); void ( * UnalignedRemoveBits ) ( struct bit_stream_s * );
u32 ( * UnalignedGetBits ) ( struct bit_stream_s *, unsigned int ); u32 ( * UnalignedGetBits ) ( struct bit_stream_s *, unsigned int );
char * ( * DecodeLanguage ) ( u16 );
struct module_s * ( * module_Need ) ( int, void * ); struct module_s * ( * module_Need ) ( int, void * );
void ( * module_Unneed ) ( struct module_s * ); void ( * module_Unneed ) ( struct module_s * );
} module_symbols_t; } module_symbols_t;
...@@ -247,6 +248,7 @@ typedef struct module_symbols_s ...@@ -247,6 +248,7 @@ typedef struct module_symbols_s
(p_symbols)->UnalignedGetBits = UnalignedGetBits; \ (p_symbols)->UnalignedGetBits = UnalignedGetBits; \
(p_symbols)->UnalignedRemoveBits = UnalignedRemoveBits; \ (p_symbols)->UnalignedRemoveBits = UnalignedRemoveBits; \
(p_symbols)->UnalignedShowBits = UnalignedShowBits; \ (p_symbols)->UnalignedShowBits = UnalignedShowBits; \
(p_symbols)->DecodeLanguage = DecodeLanguage; \
(p_symbols)->module_Need = module_Need; \ (p_symbols)->module_Need = module_Need; \
(p_symbols)->module_Unneed = module_Unneed; (p_symbols)->module_Unneed = module_Unneed;
...@@ -338,6 +340,7 @@ extern module_symbols_t* p_symbols; ...@@ -338,6 +340,7 @@ extern module_symbols_t* p_symbols;
# define input_NetlistGetiovec p_symbols->input_NetlistGetiovec # define input_NetlistGetiovec p_symbols->input_NetlistGetiovec
# define input_NetlistMviovec p_symbols->input_NetlistMviovec # define input_NetlistMviovec p_symbols->input_NetlistMviovec
# define input_NetlistNewPacket p_symbols->input_NetlistNewPacket # define input_NetlistNewPacket p_symbols->input_NetlistNewPacket
# define input_NetlistNewPtr p_symbols->input_NetlistNewPtr
# define input_NetlistNewPES p_symbols->input_NetlistNewPES # define input_NetlistNewPES p_symbols->input_NetlistNewPES
# define input_NetlistDeletePacket p_symbols->input_NetlistDeletePacket # define input_NetlistDeletePacket p_symbols->input_NetlistDeletePacket
# define input_NetlistDeletePES p_symbols->input_NetlistDeletePES # define input_NetlistDeletePES p_symbols->input_NetlistDeletePES
...@@ -360,6 +363,9 @@ extern module_symbols_t* p_symbols; ...@@ -360,6 +363,9 @@ extern module_symbols_t* p_symbols;
# define UnalignedShowBits p_symbols->UnalignedShowBits # define UnalignedShowBits p_symbols->UnalignedShowBits
# define UnalignedRemoveBits p_symbols->UnalignedRemoveBits # define UnalignedRemoveBits p_symbols->UnalignedRemoveBits
# define UnalignedGetBits p_symbols->UnalignedGetBits # define UnalignedGetBits p_symbols->UnalignedGetBits
# define DecodeLanguage p_symbols->DecodeLanguage
# define module_Need p_symbols->module_Need # define module_Need p_symbols->module_Need
# define module_Unneed p_symbols->module_Unneed # define module_Unneed p_symbols->module_Unneed
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* This header provides a portable threads implementation. * This header provides a portable threads implementation.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: threads.h,v 1.26 2001/11/14 00:01:36 jlj Exp $ * $Id: threads.h,v 1.27 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr> * Samuel Hocevar <sam@via.ecp.fr>
...@@ -48,6 +48,7 @@ int pthread_mutexattr_setkind_np( pthread_mutexattr_t *attr, int kind ); ...@@ -48,6 +48,7 @@ int pthread_mutexattr_setkind_np( pthread_mutexattr_t *attr, int kind );
# include <byteorder.h> # include <byteorder.h>
#elif defined( WIN32 ) #elif defined( WIN32 )
#define WIN32_LEAN_AND_MEAN
# include <windows.h> # include <windows.h>
# include <process.h> # include <process.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_bit_allocate.c: ac3 allocation tables * ac3_bit_allocate.c: ac3 allocation tables
***************************************************************************** *****************************************************************************
* Copyright (C) 2000 VideoLAN * Copyright (C) 2000 VideoLAN
* $Id: ac3_bit_allocate.c,v 1.1 2001/11/13 12:09:17 henri Exp $ * $Id: ac3_bit_allocate.c,v 1.2 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca> * Aaron Holtzman <aholtzma@engr.uvic.ca>
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
#include "threads.h" #include "threads.h"
#include "mtime.h" #include "mtime.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_decoder.c: core ac3 decoder * ac3_decoder.c: core ac3 decoder
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_decoder.c,v 1.1 2001/11/13 12:09:17 henri Exp $ * $Id: ac3_decoder.c,v 1.2 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Michel Lespinasse <walken@zoy.org> * Michel Lespinasse <walken@zoy.org>
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "audio_output.h" #include "audio_output.h"
#include "modules.h"
#include "modules_export.h" #include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_exponent.c: ac3 exponent calculations * ac3_exponent.c: ac3 exponent calculations
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_exponent.c,v 1.1 2001/11/13 12:09:17 henri Exp $ * $Id: ac3_exponent.c,v 1.2 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Michel Lespinasse <walken@zoy.org> * Michel Lespinasse <walken@zoy.org>
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "audio_output.h" #include "audio_output.h"
#include "modules.h"
#include "modules_export.h" #include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_imdct.c: ac3 DCT * ac3_imdct.c: ac3 DCT
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_imdct.c,v 1.2 2001/11/13 18:10:38 sam Exp $ * $Id: ac3_imdct.c,v 1.3 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca> * Aaron Holtzman <aholtzma@engr.uvic.ca>
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
#include "threads.h" #include "threads.h"
#include "mtime.h" #include "mtime.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_mantissa.c: ac3 mantissa computation * ac3_mantissa.c: ac3 mantissa computation
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ac3_mantissa.c,v 1.1 2001/11/13 12:09:17 henri Exp $ * $Id: ac3_mantissa.c,v 1.2 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca> * Aaron Holtzman <aholtzma@engr.uvic.ca>
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "audio_output.h" #include "audio_output.h"
#include "modules.h"
#include "modules_export.h" #include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_parse.c: ac3 parsing procedures * ac3_parse.c: ac3 parsing procedures
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ac3_parse.c,v 1.1 2001/11/13 12:09:17 henri Exp $ * $Id: ac3_parse.c,v 1.2 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca> * Aaron Holtzman <aholtzma@engr.uvic.ca>
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "audio_output.h" #include "audio_output.h"
#include "modules.h"
#include "modules_export.h" #include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_rematrix.c: ac3 audio rematrixing * ac3_rematrix.c: ac3 audio rematrixing
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_rematrix.c,v 1.1 2001/11/13 12:09:17 henri Exp $ * $Id: ac3_rematrix.c,v 1.2 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca> * Aaron Holtzman <aholtzma@engr.uvic.ca>
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
#include "threads.h" #include "threads.h"
#include "mtime.h" #include "mtime.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_downmix_3dn.c: accelerated 3D Now! ac3 downmix functions * ac3_downmix_3dn.c: accelerated 3D Now! ac3 downmix functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ac3_downmix_3dn.c,v 1.4 2001/07/08 23:15:11 reno Exp $ * $Id: ac3_downmix_3dn.c,v 1.5 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Renaud Dartus <reno@videolan.org> * Authors: Renaud Dartus <reno@videolan.org>
* *
...@@ -37,11 +37,7 @@ ...@@ -37,11 +37,7 @@
#include "ac3_downmix.h" #include "ac3_downmix.h"
void sqrt2_3dn (void) __asm__ ("sqrt2_3dn"); static const float sqrt2_3dn __asm__ ("sqrt2_3dn") = 0.7071068;
void sqrt2_3dn (void)
{
__asm__ (".float 0f0.7071068");
}
void _M( downmix_3f_2r_to_2ch ) (float * samples, dm_par_t * dm_par) void _M( downmix_3f_2r_to_2ch ) (float * samples, dm_par_t * dm_par)
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ac3_downmix_sse.c: accelerated SSE ac3 downmix functions * ac3_downmix_sse.c: accelerated SSE ac3 downmix functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ac3_downmix_sse.c,v 1.4 2001/07/08 23:15:11 reno Exp $ * $Id: ac3_downmix_sse.c,v 1.5 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Renaud Dartus <reno@videolan.org> * Authors: Renaud Dartus <reno@videolan.org>
* Aaron Holtzman <aholtzma@engr.uvic.ca> * Aaron Holtzman <aholtzma@engr.uvic.ca>
...@@ -38,12 +38,7 @@ ...@@ -38,12 +38,7 @@
#include "ac3_downmix.h" #include "ac3_downmix.h"
void sqrt2_sse (void) __asm__ ("sqrt2_sse"); static const float sqrt2_sse __asm__ ("sqrt2_sse") __attribute__ ((aligned (16))) = 0.7071068;
void sqrt2_sse (void)
{
__asm__ (".align 16\n"
".float 0f0.7071068");
}
void _M( downmix_3f_2r_to_2ch ) (float * samples, dm_par_t * dm_par) void _M( downmix_3f_2r_to_2ch ) (float * samples, dm_par_t * dm_par)
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_dummy.c: dummy input plugin, to manage "vlc:***" special options * input_dummy.c: dummy input plugin, to manage "vlc:***" special options
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: input_dummy.c,v 1.6 2001/11/07 22:58:13 jlj Exp $ * $Id: input_dummy.c,v 1.7 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -50,14 +50,14 @@ ...@@ -50,14 +50,14 @@
#include "main.h" #include "main.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
#include "input_ext-plugins.h" #include "input_ext-plugins.h"
#include "modules.h"
#include "modules_export.h"
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* -dvd_udf to find files * -dvd_udf to find files
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input_dvd.c,v 1.98 2001/11/19 15:13:11 stef Exp $ * $Id: input_dvd.c,v 1.99 2001/11/25 22:52:21 gbazin Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -80,6 +80,9 @@ ...@@ -80,6 +80,9 @@
#include "main.h" #include "main.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
...@@ -91,9 +94,6 @@ ...@@ -91,9 +94,6 @@
#include "debug.h" #include "debug.h"
#include "modules.h"
#include "modules_export.h"
/* how many blocks DVDRead will read in each loop */ /* how many blocks DVDRead will read in each loop */
#define DVD_BLOCK_READ_ONCE 64 #define DVD_BLOCK_READ_ONCE 64
#define DVD_DATA_READ_ONCE (4 * DVD_BLOCK_READ_ONCE) #define DVD_DATA_READ_ONCE (4 * DVD_BLOCK_READ_ONCE)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_es.c: Elementary Stream demux and packet management * input_es.c: Elementary Stream demux and packet management
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: input_es.c,v 1.12 2001/11/11 01:32:03 stef Exp $ * $Id: input_es.c,v 1.13 2001/11/25 22:52:21 gbazin Exp $
* *
* Author: Christophe Massiot <massiot@via.ecp.fr> * Author: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -62,6 +62,9 @@ ...@@ -62,6 +62,9 @@
#include "main.h" #include "main.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
...@@ -71,9 +74,6 @@ ...@@ -71,9 +74,6 @@
#include "debug.h" #include "debug.h"
#include "modules.h"
#include "modules_export.h"
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ps.c: PS demux and packet management * input_ps.c: PS demux and packet management
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input_ps.c,v 1.37 2001/10/03 14:41:08 massiot Exp $ * $Id: input_ps.c,v 1.38 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr> * Cyril Deguet <asmax@via.ecp.fr>
...@@ -60,6 +60,9 @@ ...@@ -60,6 +60,9 @@
#include "main.h" #include "main.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
...@@ -69,9 +72,6 @@ ...@@ -69,9 +72,6 @@
#include "debug.h" #include "debug.h"
#include "modules.h"
#include "modules_export.h"
/***************************************************************************** /*****************************************************************************
* fseeko: fseeko replacement for BSDI. * fseeko: fseeko replacement for BSDI.
*****************************************************************************/ *****************************************************************************/
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ts.c: TS demux and netlist management * input_ts.c: TS demux and netlist management
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input_ts.c,v 1.37 2001/11/23 18:47:51 massiot Exp $ * $Id: input_ts.c,v 1.38 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Henri Fallon <henri@videolan.org> * Authors: Henri Fallon <henri@videolan.org>
* *
...@@ -74,6 +74,9 @@ ...@@ -74,6 +74,9 @@
#include "intf_msg.h" #include "intf_msg.h"
#include "modules.h"
#include "modules_export.h"
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
...@@ -81,9 +84,6 @@ ...@@ -81,9 +84,6 @@
#include "input_ts.h" #include "input_ts.h"
#include "modules.h"
#include "modules_export.h"
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
......
...@@ -34,7 +34,7 @@ include ../../Makefile.modules ...@@ -34,7 +34,7 @@ include ../../Makefile.modules
$(RANLIB) $@ $(RANLIB) $@
../rc.so: $(PLUGIN_RC) ../rc.so: $(PLUGIN_RC)
$(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_RC)
../rc.a: $(BUILTIN_RC) ../rc.a: $(BUILTIN_RC)
ar r $@ $^ ar r $@ $^
......
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#if defined( WIN32 )
#include <winsock2.h> /* select() */
#endif
#include "config.h" #include "config.h"
#include "common.h" #include "common.h"
#include "threads.h" #include "threads.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.c : Built-in and plugin modules management functions * modules.c : Built-in and plugin modules management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.41 2001/10/02 16:46:59 massiot Exp $ * $Id: modules.c,v 1.42 2001/11/25 22:52:21 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com> * Ethan C. Baldridge <BaldridgeE@cadmus.com>
...@@ -80,6 +80,8 @@ ...@@ -80,6 +80,8 @@
#include "audio_output.h" #include "audio_output.h"
#include "iso_lang.h"
#ifdef HAVE_DYNAMIC_PLUGINS #ifdef HAVE_DYNAMIC_PLUGINS
# include "modules_core.h" # include "modules_core.h"
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment