Pflug <fgp@phlo.org>. Use it with -I macosx_qt.
D: Minor autoconf and Makefile fixes
N: Cyril Deguet
-C: asmax
E: asmax@via.ecp.fr
+C: asmax
D: PS input packet allocator
N: Colin Delacroix
D: MPEG PS input
D: bitstream and input core functions
D: MPEG video decoder
+D: Many ports
N: Arkadiusz Miskiewicz
E: misiek@pld.ORG.PL
D: autoconf and Makefile patches
+N: Florian G. Pflug
+E: fgp@phlo.org
+D: MacOS X port
+
N: Olivier Pomel
E: pomel@via.ecp.fr
C: pomel
#
# All possible plugin objects
#
-PLUGINS_TARGETS := alsa/alsa beos/beos darwin/darwin directx/directx dsp/dsp dummy/dummy dummy/null dvd/dvd esd/esd fb/fb ggi/ggi glide/glide gtk/gnome gtk/gtk downmix/downmix downmix/downmixsse downmix/downmix3dn idct/idct idct/idctclassic idct/idctmmx idct/idctmmxext idct/idctaltivec imdct/imdct imdct/imdct3dn imdct/imdctsse kde/kde macosx/macosx mga/mga motion/motion motion/motionmmx motion/motionmmxext motion/motion3dnow motion/motionaltivec mpeg/es mpeg/ps mpeg/ts qt/qt sdl/sdl text/ncurses text/rc x11/x11 x11/xvideo yuv/yuv yuv/yuvmmx
+PLUGINS_TARGETS := alsa/alsa beos/beos darwin/darwin directx/directx dsp/dsp dummy/dummy dummy/null dvd/dvd esd/esd fb/fb ggi/ggi glide/glide gtk/gnome gtk/gtk downmix/downmix downmix/downmixsse downmix/downmix3dn idct/idct idct/idctclassic idct/idctmmx idct/idctmmxext idct/idctaltivec imdct/imdct imdct/imdct3dn imdct/imdctsse kde/kde macosx/macosx macosx/macosx_qt mga/mga motion/motion motion/motionmmx motion/motionmmxext motion/motion3dnow motion/motionaltivec mpeg/es mpeg/ps mpeg/ts qt/qt sdl/sdl text/ncurses text/rc x11/x11 x11/xvideo yuv/yuv yuv/yuvmmx
#
# C Objects
if test "x$withval" != "x"; then
TUNING=$withval
else
- if test x$ARCH = xi686; then TUNING="pentiumpro"
+ if test x${target_cpu} = xi686; then TUNING="pentiumpro"
else
- if test x$ARCH = ppc; then TUNING="750"; fi
+ if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
fi
fi
enableval="$enable_macosx"
if test x$enable_macosx = xyes
then
- BUILTINS="${BUILTINS} macosx"
- LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
+ BUILTINS="${BUILTINS} macosx macosx_qt"
+ LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
fi
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
- BUILTINS="${BUILTINS} macosx"
- LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
+ BUILTINS="${BUILTINS} macosx macosx_qt"
+ LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
if test "x$withval" != "x"; then
TUNING=$withval
else
- if test x$ARCH = xi686; then TUNING="pentiumpro"
+ if test x${target_cpu} = xi686; then TUNING="pentiumpro"
else
- if test x$ARCH = ppc; then TUNING="750"; fi
+ if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
fi
fi
[ --enable-macosx MacOS X support (default enabled on MacOS X)],
[if test x$enable_macosx = xyes
then
- BUILTINS="${BUILTINS} macosx"
- LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
+ BUILTINS="${BUILTINS} macosx macosx_qt"
+ LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
fi],
[AC_CHECK_HEADERS(Carbon/Carbon.h,
- BUILTINS="${BUILTINS} macosx"
- LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
+ BUILTINS="${BUILTINS} macosx macosx_qt"
+ LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
)])
# Objects
#
-PLUGIN_MACOSX = macosx.o intf_macosx.o aout_macosx.o vout_macosx.o
-BUILTIN_MACOSX = $(PLUGIN_MACOSX:%.o=BUILTIN_%.o)
+PLUGIN_MACOSX = macosx.o intf_macosx.o vout_macosx.o
+PLUGIN_MACOSXQT = macosx_qt.o intf_macosx_qt.o vout_macosx_qt.o
+PLUGIN_MACOSXCOMMON = aout_macosx.o
-ALL_OBJ = $(PLUGIN_MACOSX) $(BUILTIN_MACOSX)
+BUILTIN_MACOSX = $(PLUGIN_MACOSX:%.o=BUILTIN_MACOSX_%.o) \
+ $(PLUGIN_MACOSXCOMMON:%.o=BUILTIN_MACOSX_%.o)
+BUILTIN_MACOSXQT = $(PLUGIN_MACOSXQT:%.o=BUILTIN_MACOSXQT_%.o) \
+ $(PLUGIN_MACOSXCOMMON:%.o=BUILTIN_MACOSXQT_%.o)
+
+ALL_OBJ = $(PLUGIN_MACOSX) $(BUILTIN_MACOSX) $(PLUGIN_MACOSXQT) $(BUILTIN_MACOSXQT) $(PLUGIN_MACOSXCOMMON)
#
# Virtual targets
include ../../Makefile.modules
-$(PLUGIN_MACOSX): %.o: .dep/%.d
+$(PLUGIN_MACOSX) $(PLUGIN_MACOSXQT) $(PLUGIN_MACOSXCOMMON): %.o: .dep/%.d
$(PLUGIN_MACOSX): %.o: %.c
$(CC) $(CFLAGS) $(PCFLAGS) -fpascal-strings -c -o $@ $<
-$(BUILTIN_MACOSX): BUILTIN_%.o: .dep/%.d
-$(BUILTIN_MACOSX): BUILTIN_%.o: %.c
- $(CC) $(CFLAGS) -DBUILTIN -fpascal-strings -c -o $@ $<
+$(BUILTIN_MACOSX): BUILTIN_MACOSX_%.o: .dep/%.d
+$(BUILTIN_MACOSX): BUILTIN_MACOSX_%.o: %.c
+ $(CC) $(CFLAGS) -DBUILTIN -DMODULE_NAME=macosx -fpascal-strings -c -o $@ $<
+
+$(BUILTIN_MACOSXQT): BUILTIN_MACOSXQT_%.o: .dep/%.d
+$(BUILTIN_MACOSXQT): BUILTIN_MACOSXQT_%.o: %.c
+ $(CC) $(CFLAGS) -DBUILTIN -DMODULE_NAME=macosx_qt -fpascal-strings -c -o $@ $<
#
# Real targets
#
-../macosx.so: $(PLUGIN_MACOSX)
+../macosx.so: $(PLUGIN_MACOSX) $(PLUGIN_MACOSXCOMMON)
$(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_MACOSX)
../macosx.a: $(BUILTIN_MACOSX)
ar r $@ $^
$(RANLIB) $@
+../macosx_qt.so: $(PLUGIN_MACOSXQT) $(PLUGIN_MACOSXCOMMON)
+ $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_MACOSX)
+
+../macosx_qt.a: $(BUILTIN_MACOSXQT)
+ ar r $@ $^
+ $(RANLIB) $@
+
* aout_darwin.c : Darwin audio output plugin
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: aout_macosx.c,v 1.3 2001/07/12 20:44:52 reno Exp $
+ * $Id: aout_macosx.c,v 1.4 2001/10/08 16:20:25 massiot Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
*
* Find 8 bits files and adapt output
*/
-#define MODULE_NAME macosx
#include "modules_inner.h"
/*****************************************************************************
byte_t *buffer, int i_size );
static void aout_Close ( aout_thread_t *p_aout );
-OSStatus appIOProc( AudioDeviceID inDevice, const AudioTimeStamp* inNow,
+static OSStatus appIOProc( AudioDeviceID inDevice, const AudioTimeStamp* inNow,
const void* inInputData, const AudioTimeStamp* inInputTime,
AudioBufferList* outOutputData,
const AudioTimeStamp* inOutputTime,
void* threadGlobals );
-void Convert16BitIntegerTo32Float( Ptr p_in16BitDataPtr, Ptr p_out32BitDataPtr,
+static void Convert16BitIntegerTo32Float( Ptr p_in16BitDataPtr, Ptr p_out32BitDataPtr,
UInt32 ui_totalBytes );
-void Convert16BitIntegerTo32FloatWithByteSwap( Ptr p_in16BitDataPtr,
+static void Convert16BitIntegerTo32FloatWithByteSwap( Ptr p_in16BitDataPtr,
Ptr p_out32BitDataPtr,
UInt32 p_totalBytes );
-void Convert8BitIntegerTo32Float( Ptr in8BitDataPtr, Ptr p_out32BitDataPtr,
+static void Convert8BitIntegerTo32Float( Ptr in8BitDataPtr, Ptr p_out32BitDataPtr,
UInt32 ui_totalBytes );
/*****************************************************************************
/*****************************************************************************
* appIOProc : callback for audio output
*****************************************************************************/
-OSStatus appIOProc( AudioDeviceID inDevice, const AudioTimeStamp* inNow,
+static OSStatus appIOProc( AudioDeviceID inDevice, const AudioTimeStamp* inNow,
const void* inInputData, const AudioTimeStamp* inInputTime,
AudioBufferList* outOutputData, const AudioTimeStamp* inOutputTime,
void* threadGlobals )
/*****************************************************************************
* Convert16BitIntegerTo32Float
*****************************************************************************/
-void Convert16BitIntegerTo32Float( Ptr p_in16BitDataPtr, Ptr p_out32BitDataPtr,
+static void Convert16BitIntegerTo32Float( Ptr p_in16BitDataPtr, Ptr p_out32BitDataPtr,
UInt32 ui_totalBytes )
{
UInt32 i, ui_samples = ui_totalBytes / 2 /* each 16 bit sample is 2 bytes */;
/*****************************************************************************
* Convert16BitIntegerTo32FloatWithByteSwap
*****************************************************************************/
-void Convert16BitIntegerTo32FloatWithByteSwap( Ptr p_in16BitDataPtr,
+static void Convert16BitIntegerTo32FloatWithByteSwap( Ptr p_in16BitDataPtr,
Ptr p_out32BitDataPtr,
UInt32 ui_totalBytes )
{
/*****************************************************************************
* Convert8BitIntegerTo32Float
*****************************************************************************/
-void Convert8BitIntegerTo32Float( Ptr p_in8BitDataPtr, Ptr p_out32BitDataPtr,
+static void Convert8BitIntegerTo32Float( Ptr p_in8BitDataPtr, Ptr p_out32BitDataPtr,
UInt32 ui_totalBytes )
{
UInt32 i, ui_samples = ui_totalBytes;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#define MODULE_NAME macosx
#include "modules_inner.h"
/*****************************************************************************
* macosx.c : MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: macosx.c,v 1.5 2001/05/30 17:03:12 sam Exp $
+ * $Id: macosx.c,v 1.6 2001/10/08 16:20:25 massiot Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Eugenio Jarosiewicz <ej0@cise.ufl.edu>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#define MODULE_NAME macosx
#include "modules_inner.h"
/*****************************************************************************
* macosx.c : MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $$
+ * $Id: macosx_common.h,v 1.3 2001/10/08 16:20:25 massiot Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#define MODULE_NAME macosx
#include "modules_inner.h"
/*****************************************************************************