MPlayer-cvslog
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2002 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2001 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
August 2008
- 17 participants
- 121 discussions
Author: ben
Date: Thu Aug 7 14:28:28 2008
New Revision: 27430
Log:
Add NV12 colospace support to VIDIX driver.
Patch by Magnus Damm <magnus dot damm at gmail dot com>
Modified:
trunk/libvo/vosub_vidix.c
trunk/vidix/fourcc.h
Modified: trunk/libvo/vosub_vidix.c
==============================================================================
--- trunk/libvo/vosub_vidix.c (original)
+++ trunk/libvo/vosub_vidix.c Thu Aug 7 14:28:28 2008
@@ -212,6 +212,34 @@ static uint32_t vidix_draw_slice_packed(
return 0;
}
+static uint32_t vidix_draw_slice_nv12(uint8_t *image[], int stride[], int w,int h,int x,int y)
+{
+ uint8_t *src;
+ uint8_t *dest;
+ int i;
+
+ /* Plane Y */
+ dest = vidix_mem + vidix_play.offsets[next_frame] + vidix_play.offset.y;
+ dest += dstrides.y*y + x;
+ src = image[0];
+ for(i=0;i<h;i++){
+ memcpy(dest,src,w);
+ src+=stride[0];
+ dest += dstrides.y;
+ }
+
+ /* Plane UV */
+ dest = vidix_mem + vidix_play.offsets[next_frame] + vidix_play.offset.u;
+ dest += dstrides.u*y/2 + x;
+ src = image[1];
+ for(i=0;i<h/2;i++){
+ memcpy(dest,src,w);
+ src+=stride[1];
+ dest+=dstrides.u;
+ }
+ return 0;
+}
+
static uint32_t vidix_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
{
mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_SUB_VIDIX_DummyVidixdrawsliceWasCalled);
@@ -254,6 +282,7 @@ static void draw_alpha(int x0,int y0, in
lvo_mem = vidix_mem + vidix_play.offsets[next_frame] + vidix_play.offset.y;
apitch = vidix_play.dest.pitch.y-1;
switch(vidix_play.fourcc){
+ case IMGFMT_NV12:
case IMGFMT_YV12:
case IMGFMT_IYUV:
case IMGFMT_I420:
@@ -449,6 +478,7 @@ int vidix_init(unsigned src_width,u
switch(format)
{
+ case IMGFMT_NV12:
case IMGFMT_YV12:
case IMGFMT_I420:
case IMGFMT_IYUV:
@@ -495,6 +525,8 @@ int vidix_init(unsigned src_width,u
vo_server->draw_slice = vidix_draw_slice_420;
else if (src_format == IMGFMT_YVU9 || src_format == IMGFMT_IF09)
vo_server->draw_slice = vidix_draw_slice_410;
+ else if (src_format == IMGFMT_NV12)
+ vo_server->draw_slice = vidix_draw_slice_nv12;
else vo_server->draw_slice = vidix_draw_slice_packed;
}
return 0;
Modified: trunk/vidix/fourcc.h
==============================================================================
--- trunk/vidix/fourcc.h (original)
+++ trunk/vidix/fourcc.h Thu Aug 7 14:28:28 2008
@@ -51,6 +51,7 @@
#define IMGFMT_YV12 vid_fourcc('Y','V','1','2') /* 12 YVU 4:2:0 */
#define IMGFMT_I420 vid_fourcc('I','4','2','0') /* 12 YUV 4:2:0 */
#define IMGFMT_IYUV vid_fourcc('I','Y','U','V') /* 12 YUV 4:2:0 */
+#define IMGFMT_NV12 vid_fourcc('N','V','1','2')
#define IMGFMT_CLPL vid_fourcc('C','L','P','L') /* 12 */
#define IMGFMT_Y800 vid_fourcc('Y','8','0','0') /* 8 Y Grayscale */
#define IMGFMT_Y8 vid_fourcc('Y','8',' ',' ') /* 8 Y Grayscale */
1
0
Author: diego
Date: Thu Aug 7 14:20:50 2008
New Revision: 27429
Log:
Give a CONFIG_ prefix to preprocessor directives that lacked one and
change arbitrary prefixes to CONFIG_.
Modified:
trunk/Makefile
trunk/cfg-common-opts.h
trunk/cfg-mplayer.h
trunk/configure
trunk/get_path.c
trunk/libmpcodecs/ad_libvorbis.c
trunk/libmpcodecs/dec_audio.c
trunk/libmpcodecs/dec_video.c
trunk/libmpdemux/asfheader.c
trunk/libmpdemux/demux_ogg.c
trunk/libmpdemux/demuxer.c
trunk/libmpdemux/stheader.h
trunk/libmpdemux/video.c
trunk/libvo/vo_macosx.m
trunk/libvo/vo_quartz.c
trunk/mplayer.c
trunk/parser-mpcmd.c
trunk/stream/stream.c
trunk/stream/stream.h
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu Aug 7 14:20:50 2008
@@ -382,7 +382,7 @@ SRCS_COMMON-$(MP3LIB)-$(ARCH_X86_32)-$(H
SRCS_COMMON-$(MP3LIB)-$(HAVE_ALTIVEC) += mp3lib/dct64_altivec.c
SRCS_COMMON-$(MP3LIB)-$(HAVE_MMX) += mp3lib/decode_mmx.c
SRCS_COMMON-$(MP3LIB)-$(HAVE_SSE) += mp3lib/dct64_sse.c
-SRCS_COMMON-$(MPLAYER_NETWORK) += stream/stream_netstream.c \
+SRCS_COMMON-$(NETWORK) += stream/stream_netstream.c \
stream/asf_mmst_streaming.c \
stream/asf_streaming.c \
stream/cookies.c \
@@ -430,7 +430,7 @@ SRCS_COMMON-$(REAL_CODECS) +=
libmpcodecs/vd_realvid.c
SRCS_COMMON-$(SPEEX) += libmpcodecs/ad_speex.c
SRCS_COMMON-$(STREAM_CACHE) += stream/cache2.c
-SRCS_COMMON-$(STREAMING_LIVE555) += libmpdemux/demux_rtp.cpp \
+SRCS_COMMON-$(LIVE555) += libmpdemux/demux_rtp.cpp \
libmpdemux/demux_rtp_codec.cpp \
stream/stream_live555.c \
Modified: trunk/cfg-common-opts.h
==============================================================================
--- trunk/cfg-common-opts.h (original)
+++ trunk/cfg-common-opts.h Thu Aug 7 14:20:50 2008
@@ -51,7 +51,7 @@
{"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
{"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
@@ -74,25 +74,25 @@
{"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
-#endif /* MPLAYER_NETWORK */
+#endif /* CONFIG_NETWORK */
-#ifdef STREAMING_LIVE555
+#ifdef CONFIG_LIVE555
{"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
// -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
{"rtsp-stream-over-tcp", &rtspStreamOverTCP, CONF_TYPE_FLAG, 0, 0, 1, NULL},
-#elif defined (LIBNEMESI)
+#elif defined (CONFIG_LIBNEMESI)
{"rtsp-stream-over-tcp", &rtsp_transport_tcp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"rtsp-stream-over-sctp", &rtsp_transport_sctp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
#else
{"rtsp-stream-over-tcp", "-rtsp-stream-over-tcp requires the \"LIVE555 Streaming Media\" libraries.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
-#endif /* STREAMING_LIVE555 */
-#ifdef MPLAYER_NETWORK
+#endif /* CONFIG_LIVE555 */
+#ifdef CONFIG_NETWORK
{"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
{"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
#else
{"rtsp-port", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"rtsp-destination", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
-#endif /* MPLAYER_NETWORK */
+#endif /* CONFIG_NETWORK */
// ------------------------- demuxer options --------------------
Modified: trunk/cfg-mplayer.h
==============================================================================
--- trunk/cfg-mplayer.h (original)
+++ trunk/cfg-mplayer.h Thu Aug 7 14:20:50 2008
@@ -245,7 +245,7 @@ const m_option_t mplayer_opts[]={
{"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
{"nouse-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
-#ifdef CRASH_DEBUG
+#ifdef CONFIG_CRASH_DEBUG
{"crash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
{"nocrash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
#endif
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Aug 7 14:20:50 2008
@@ -2641,9 +2641,9 @@ echores "messages: $msg_lang - man pages
echocheck "enable sighandler"
if test "$_sighandler" = yes ; then
- _def_sighandler='#define ENABLE_SIGHANDLER 1'
+ _def_sighandler='#define CONFIG_SIGHANDLER 1'
else
- _def_sighandler='#undef ENABLE_SIGHANDLER'
+ _def_sighandler='#undef CONFIG_SIGHANDLER'
fi
echores "$_sighandler"
@@ -2882,12 +2882,12 @@ echores "$_socklen_t"
echocheck "network"
# FIXME network check
if test "$_network" = yes ; then
- _def_network='#define MPLAYER_NETWORK 1'
+ _def_network='#define CONFIG_NETWORK 1'
_ld_extra="$_ld_extra $_ld_sock"
_inputmodules="network $_inputmodules"
else
_noinputmodules="network $_noinputmodules"
- _def_network='#undef MPLAYER_NETWORK'
+ _def_network='#undef CONFIG_NETWORK'
_ftp=no
fi
echores "$_network"
@@ -3067,9 +3067,9 @@ if test "$_dl" = no ; then
_dynamic_plugins=no
fi
if test "$_dynamic_plugins" = yes ; then
- _def_dynamic_plugins='#define DYNAMIC_PLUGINS 1'
+ _def_dynamic_plugins='#define CONFIG_DYNAMIC_PLUGINS 1'
else
- _def_dynamic_plugins='#undef DYNAMIC_PLUGINS'
+ _def_dynamic_plugins='#undef CONFIG_DYNAMIC_PLUGINS'
fi
echores "$_dynamic_plugins"
@@ -3610,10 +3610,10 @@ if test "$_macosx_finder" = auto ; then
_macosx_finder=$_macosx
fi
if test "$_macosx_finder" = yes; then
- _def_macosx_finder='#define MACOSX_FINDER 1'
+ _def_macosx_finder='#define CONFIG_MACOSX_FINDER 1'
_macosx_finder=yes
else
- _def_macosx_finder='#undef MACOSX_FINDER'
+ _def_macosx_finder='#undef CONFIG_MACOSX_FINDER'
_macosx_finder=no
fi
echores "$_macosx_finder"
@@ -3623,9 +3623,9 @@ if test "$_macosx_bundle" = auto ; then
_macosx_bundle=$_macosx_finder
fi
if test "$_macosx_bundle" = yes; then
- _def_macosx_bundle='#define MACOSX_BUNDLE 1'
+ _def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1'
else
- _def_macosx_bundle='#undef MACOSX_BUNDLE'
+ _def_macosx_bundle='#undef CONFIG_MACOSX_BUNDLE'
_macosx_bundle=no
fi
echores "$_macosx_bundle"
@@ -3723,10 +3723,10 @@ EOF
fi
if test "$_smb" = yes; then
- _def_smb="#define LIBSMBCLIENT"
+ _def_smb="#define CONFIG_LIBSMBCLIENT"
_inputmodules="smb $_inputmodules"
else
- _def_smb="#undef LIBSMBCLIENT"
+ _def_smb="#undef CONFIG_LIBSMBCLIENT"
_noinputmodules="smb $_noinputmodules"
fi
echores "$_smb"
@@ -5921,7 +5921,7 @@ fi
if test "$_tremor_internal" = yes ; then
_vorbis=yes
_def_vorbis='#define CONFIG_OGGVORBIS 1'
- _def_tremor='#define TREMOR 1'
+ _def_tremor='#define CONFIG_TREMOR 1'
_codecmodules="tremor(internal) $_codecmodules"
_res_comment="internal Tremor"
if test "$_tremor_low" = yes ; then
@@ -5931,7 +5931,7 @@ if test "$_tremor_internal" = yes ; then
elif test "$_tremor_external" = yes ; then
_vorbis=yes
_def_vorbis='#define CONFIG_OGGVORBIS 1'
- _def_tremor='#define TREMOR 1'
+ _def_tremor='#define CONFIG_TREMOR 1'
_codecmodules="tremor(external) $_codecmodules"
_res_comment="external Tremor"
_ld_extra="$_ld_extra -logg -lvorbisidec"
@@ -6340,12 +6340,12 @@ if test "$_nemesi" = auto && test "$_ne
fi
if test "$_nemesi" = yes; then
_native_rtsp=no
- _def_nemesi='#define LIBNEMESI 1'
+ _def_nemesi='#define CONFIG_LIBNEMESI 1'
_inputmodules="nemesi $_inputmodules"
else
_native_rtsp="$_network"
_nemesi=no
- _def_nemesi='#undef LIBNEMESI'
+ _def_nemesi='#undef CONFIG_LIBNEMESI'
_noinputmodules="nemesi $_noinputmodules"
fi
echores "$_nemesi"
@@ -6383,19 +6383,19 @@ EOF
fi
if test "$_live" = yes && test "$_network" = yes; then
_res_comment="using $_livelibdir"
- _def_live='#define STREAMING_LIVE555 1'
+ _def_live='#define CONFIG_LIVE555 1'
_inputmodules="live555 $_inputmodules"
elif test "$_live_dist" = yes && test "$_network" = yes; then
_res_comment="using distribution version"
_live="yes"
- _def_live='#define STREAMING_LIVE555 1'
+ _def_live='#define CONFIG_LIVE555 1'
_ld_extra="$_ld_extra -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++"
_inc_extraxx="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \
-I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock"
_inputmodules="live555 $_inputmodules"
else
_live=no
- _def_live='#undef STREAMING_LIVE555'
+ _def_live='#undef CONFIG_LIVE555'
_noinputmodules="live555 $_noinputmodules"
fi
echores "$_live"
@@ -7516,9 +7516,9 @@ fi
echocheck "automatic gdb attach"
if test "$_crash_debug" = yes ; then
- _def_crash_debug='#define CRASH_DEBUG 1'
+ _def_crash_debug='#define CONFIG_CRASH_DEBUG 1'
else
- _def_crash_debug='#undef CRASH_DEBUG'
+ _def_crash_debug='#undef CONFIG_CRASH_DEBUG'
_crash_debug=no
fi
echores "$_crash_debug"
@@ -7849,12 +7849,13 @@ LIBSMBCLIENT = $_smb
LIBTHEORA = $_theora
LIBVORBIS = $_vorbis
LIRC = $_lirc
+LIVE555 = $_live
MACOSX_BUNDLE = $_macosx_bundle
MACOSX_FINDER = $_macosx_finder
MP3LAME = $_mp3lame
-MPLAYER_NETWORK = $_network
MUSEPACK = $_musepack
NATIVE_RTSP = $_native_rtsp
+NETWORK = $_network
PE_EXECUTABLE = $_pe_executable
PNG = $_png
PVR = $_pvr
@@ -7866,7 +7867,6 @@ RADIO=$_radio
RADIO_CAPTURE=$_radio_capture
REAL_CODECS = $_real
SPEEX = $_speex
-STREAMING_LIVE555 = $_live
STREAM_CACHE = $_stream_cache
TOOLAME=$_toolame
TV = $_tv
Modified: trunk/get_path.c
==============================================================================
--- trunk/get_path.c (original)
+++ trunk/get_path.c Thu Aug 7 14:20:50 2008
@@ -13,7 +13,7 @@
#include "mp_msg.h"
#include "get_path.h"
-#ifdef MACOSX_BUNDLE
+#ifdef CONFIG_MACOSX_BUNDLE
#include <CoreFoundation/CoreFoundation.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -38,7 +38,7 @@ char *get_path(const char *filename){
static char *config_dir = "/.mplayer";
#endif
int len;
-#ifdef MACOSX_BUNDLE
+#ifdef CONFIG_MACOSX_BUNDLE
struct stat dummy;
CFIndex maxlen=256;
CFURLRef res_url_ref=NULL;
@@ -96,7 +96,7 @@ char *get_path(const char *filename){
sprintf(buff, "%s%s/%s", homedir, config_dir, filename);
}
-#ifdef MACOSX_BUNDLE
+#ifdef CONFIG_MACOSX_BUNDLE
if (stat(buff, &dummy)) {
res_url_ref=CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle());
Modified: trunk/libmpcodecs/ad_libvorbis.c
==============================================================================
--- trunk/libmpcodecs/ad_libvorbis.c (original)
+++ trunk/libmpcodecs/ad_libvorbis.c Thu Aug 7 14:20:50 2008
@@ -20,7 +20,7 @@ static ad_info_t info =
LIBAD_EXTERN(libvorbis)
-#ifdef TREMOR
+#ifdef CONFIG_TREMOR
#include <tremor/ivorbiscodec.h>
#else
#include <vorbis/codec.h>
@@ -34,7 +34,7 @@ typedef struct ov_struct_st {
vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */
vorbis_block vb; /* local working space for packet->PCM decode */
float rg_scale; /* replaygain scale */
-#ifdef TREMOR
+#ifdef CONFIG_TREMOR
int rg_scale_int;
#endif
} ov_struct_t;
@@ -160,7 +160,7 @@ static int init(sh_audio_t *sh)
/* replaygain: security */
if(ov->rg_scale > 15.)
ov->rg_scale = 15.;
-#ifdef TREMOR
+#ifdef CONFIG_TREMOR
ov->rg_scale_int = (int)(ov->rg_scale*64.f);
#endif
mp_msg(MSGT_DECAUDIO,MSGL_V,"OggVorbis: Bitstream is %d channel%s, %dHz, %dbit/s %cBR\n",(int)ov->vi.channels,ov->vi.channels>1?"s":"",(int)ov->vi.rate,(int)ov->vi.bitrate_nominal,
@@ -218,7 +218,7 @@ static int decode_audio(sh_audio_t *sh,u
{
int len = 0;
int samples;
-#ifdef TREMOR
+#ifdef CONFIG_TREMOR
ogg_int32_t **pcm;
#else
float scale;
@@ -250,7 +250,7 @@ static int decode_audio(sh_audio_t *sh,u
/* convert floats to 16 bit signed ints (host order) and
interleave */
-#ifdef TREMOR
+#ifdef CONFIG_TREMOR
if (ov->rg_scale_int == 64) {
for(i=0;i<ov->vi.channels;i++){
ogg_int16_t *convbuffer=(ogg_int16_t *)(&buf[len]);
@@ -272,15 +272,15 @@ static int decode_audio(sh_audio_t *sh,u
}
}
} else
-#endif /* TREMOR */
+#endif /* CONFIG_TREMOR */
{
-#ifndef TREMOR
+#ifndef CONFIG_TREMOR
scale = 32767.f * ov->rg_scale;
#endif
for(i=0;i<ov->vi.channels;i++){
ogg_int16_t *convbuffer=(ogg_int16_t *)(&buf[len]);
ogg_int16_t *ptr=convbuffer+i;
-#ifdef TREMOR
+#ifdef CONFIG_TREMOR
ogg_int32_t *mono=pcm[i];
for(j=0;j<bout;j++){
int val=(mono[j]*ov->rg_scale_int)>>(9+6);
@@ -297,7 +297,7 @@ static int decode_audio(sh_audio_t *sh,u
val=-32768;
clipflag=1;
}
-#endif /* TREMOR */
+#endif /* CONFIG_TREMOR */
*ptr=val;
ptr+=ov->vi.channels;
}
Modified: trunk/libmpcodecs/dec_audio.c
==============================================================================
--- trunk/libmpcodecs/dec_audio.c (original)
+++ trunk/libmpcodecs/dec_audio.c Thu Aug 7 14:20:50 2008
@@ -23,7 +23,7 @@
#include <malloc.h>
#endif
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
#include <dlfcn.h>
#endif
@@ -167,7 +167,7 @@ static int init_audio(sh_audio_t *sh_aud
sh_audio->codec->drv))
break;
mpadec = mpcodecs_ad_drivers[i];
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
if (!mpadec) {
/* try to open shared decoder plugin */
int buf_len;
@@ -297,7 +297,7 @@ void uninit_audio(sh_audio_t *sh_audio)
mp_msg(MSGT_DECAUDIO, MSGL_V, MSGTR_UninitAudioStr,
sh_audio->codec->drv);
sh_audio->ad_driver->uninit(sh_audio);
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
if (sh_audio->dec_handle)
dlclose(sh_audio->dec_handle);
#endif
Modified: trunk/libmpcodecs/dec_video.c
==============================================================================
--- trunk/libmpcodecs/dec_video.c (original)
+++ trunk/libmpcodecs/dec_video.c Thu Aug 7 14:20:50 2008
@@ -28,7 +28,7 @@
#include "dec_video.h"
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
#include <dlfcn.h>
#endif
@@ -155,7 +155,7 @@ void uninit_video(sh_video_t *sh_video){
if(!sh_video->initialized) return;
mp_msg(MSGT_DECVIDEO,MSGL_V,MSGTR_UninitVideoStr,sh_video->codec->drv);
mpvdec->uninit(sh_video);
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
if (sh_video->dec_handle)
dlclose(sh_video->dec_handle);
#endif
@@ -205,7 +205,7 @@ static int init_video(sh_video_t *sh_vid
// if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver) break;
if(!strcmp(mpcodecs_vd_drivers[i]->info->short_name,sh_video->codec->drv)) break;
mpvdec=mpcodecs_vd_drivers[i];
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
if (!mpvdec)
{
/* try to open shared decoder plugin */
Modified: trunk/libmpdemux/asfheader.c
==============================================================================
--- trunk/libmpdemux/asfheader.c (original)
+++ trunk/libmpdemux/asfheader.c Thu Aug 7 14:20:50 2008
@@ -639,7 +639,7 @@ if(streams) {
// as the servers often do not care about what we requested.
#if 0
uint32_t vr = 0, ar = 0,i;
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
if( demuxer->stream->streaming_ctrl!=NULL ) {
if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) {
best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id;
Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c (original)
+++ trunk/libmpdemux/demux_ogg.c Thu Aug 7 14:20:50 2008
@@ -19,7 +19,7 @@
#define FOURCC_SPEEX mmioFOURCC('s', 'p', 'x', ' ')
#define FOURCC_THEORA mmioFOURCC('t', 'h', 'e', 'o')
-#ifdef TREMOR
+#ifdef CONFIG_TREMOR
#include <tremor/ogg.h>
#include <tremor/ivorbiscodec.h>
#else
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c (original)
+++ trunk/libmpdemux/demuxer.c Thu Aug 7 14:20:50 2008
@@ -130,10 +130,10 @@ const demuxer_desc_t *const demuxer_list
&demuxer_desc_h264_es,
&demuxer_desc_audio,
&demuxer_desc_mpeg_ty,
-#ifdef STREAMING_LIVE555
+#ifdef CONFIG_LIVE555
&demuxer_desc_rtp,
#endif
-#ifdef LIBNEMESI
+#ifdef CONFIG_LIBNEMESI
&demuxer_desc_rtp_nemesi,
#endif
#ifdef CONFIG_LIBAVFORMAT
Modified: trunk/libmpdemux/stheader.h
==============================================================================
--- trunk/libmpdemux/stheader.h (original)
+++ trunk/libmpdemux/stheader.h Thu Aug 7 14:20:50 2008
@@ -38,7 +38,7 @@ typedef struct {
// void* audio_out; // the audio_out handle, used for this audio stream
struct af_stream_s *afilter; // the audio filter stream
struct ad_functions_s* ad_driver;
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
void *dec_handle;
#endif
// win32-compatible codec parameters:
@@ -83,7 +83,7 @@ typedef struct {
unsigned int outfmtidx;
struct vf_instance_s *vfilter; // the video filter chain, used for this video stream
int vf_initialized;
-#ifdef DYNAMIC_PLUGINS
+#ifdef CONFIG_DYNAMIC_PLUGINS
void *dec_handle;
#endif
// win32-compatible codec parameters:
Modified: trunk/libmpdemux/video.c
==============================================================================
--- trunk/libmpdemux/video.c (original)
+++ trunk/libmpdemux/video.c Thu Aug 7 14:20:50 2008
@@ -25,7 +25,7 @@
/* biCompression constant */
#define BI_RGB 0L
-#ifdef STREAMING_LIVE555
+#ifdef CONFIG_LIVE555
#include "demux_rtp.h"
#endif
@@ -57,7 +57,7 @@ static video_codec_t find_video_codec(sh
((! sh_video->format) || (sh_video->format==0x10000001) || (sh_video->format==0x10000002))
) ||
(fmt == DEMUXER_TYPE_MPEG_TY)
-#ifdef STREAMING_LIVE555
+#ifdef CONFIG_LIVE555
|| ((fmt == DEMUXER_TYPE_RTP) && demux_is_mpeg_rtp_stream(d_video->demuxer))
#endif
)
Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m (original)
+++ trunk/libvo/vo_macosx.m Thu Aug 7 14:20:50 2008
@@ -326,7 +326,7 @@ static int preinit(const char *arg)
if(!shared_buffer)
{
- #if !defined (MACOSX_FINDER) || !defined (CONFIG_SDL)
+ #if !defined (CONFIG_MACOSX_FINDER) || !defined (CONFIG_SDL)
//this chunk of code is heavily based off SDL_macosx.m from SDL
//it uses an Apple private function to request foreground operation
void CPSEnableForegroundOperation(ProcessSerialNumber* psn);
Modified: trunk/libvo/vo_quartz.c
==============================================================================
--- trunk/libvo/vo_quartz.c (original)
+++ trunk/libvo/vo_quartz.c Thu Aug 7 14:20:50 2008
@@ -1141,7 +1141,7 @@ static int preinit(const char *arg)
}
}
-#if !defined (MACOSX_FINDER) || !defined (CONFIG_SDL)
+#if !defined (CONFIG_MACOSX_FINDER) || !defined (CONFIG_SDL)
//this chunk of code is heavily based off SDL_macosx.m from SDL
//it uses an Apple private function to request foreground operation
{
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Thu Aug 7 14:20:50 2008
@@ -740,14 +740,14 @@ static void child_sighandler(int x){
}
#endif
-#ifdef CRASH_DEBUG
+#ifdef CONFIG_CRASH_DEBUG
static char *prog_path;
static int crash_debug = 0;
#endif
static void exit_sighandler(int x){
static int sig_count=0;
-#ifdef CRASH_DEBUG
+#ifdef CONFIG_CRASH_DEBUG
if (!crash_debug || x != SIGTRAP)
#endif
++sig_count;
@@ -791,7 +791,7 @@ static void exit_sighandler(int x){
mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_Exit_SIGSEGV_SIGFPE);
default:
mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_Exit_SIGCRASH);
-#ifdef CRASH_DEBUG
+#ifdef CONFIG_CRASH_DEBUG
if (crash_debug) {
int gdb_pid;
mp_msg(MSGT_CPLAYER, MSGL_INFO, "Forking...\n");
@@ -2895,7 +2895,7 @@ current_module = NULL;
signal(SIGCHLD,child_sighandler);
#endif
-#ifdef CRASH_DEBUG
+#ifdef CONFIG_CRASH_DEBUG
prog_path = argv[0];
#endif
//========= Catch terminate signals: ================
@@ -2907,14 +2907,14 @@ current_module = NULL;
signal(SIGQUIT,exit_sighandler); // Quit from keyboard
signal(SIGPIPE,exit_sighandler); // Some window managers cause this
-#ifdef ENABLE_SIGHANDLER
+#ifdef CONFIG_SIGHANDLER
// fatal errors:
signal(SIGBUS,exit_sighandler); // bus error
signal(SIGSEGV,exit_sighandler); // segfault
signal(SIGILL,exit_sighandler); // illegal instruction
signal(SIGFPE,exit_sighandler); // floating point exc.
signal(SIGABRT,exit_sighandler); // abort()
-#ifdef CRASH_DEBUG
+#ifdef CONFIG_CRASH_DEBUG
if (crash_debug)
signal(SIGTRAP,exit_sighandler);
#endif
Modified: trunk/parser-mpcmd.c
==============================================================================
--- trunk/parser-mpcmd.c (original)
+++ trunk/parser-mpcmd.c Thu Aug 7 14:20:50 2008
@@ -74,7 +74,7 @@ m_config_parse_mp_command_line(m_config_
int no_more_opts = 0;
int opt_exit = 0; // flag indicating whether mplayer should exit without playing anything
play_tree_t *last_parent, *last_entry = NULL, *root;
-#ifdef MACOSX_FINDER
+#ifdef CONFIG_MACOSX_FINDER
extern play_tree_t *macosx_finder_args(m_config_t *, int , char **);
#endif
@@ -86,7 +86,7 @@ m_config_parse_mp_command_line(m_config_
config->mode = M_COMMAND_LINE;
mode = GLOBAL;
-#ifdef MACOSX_FINDER
+#ifdef CONFIG_MACOSX_FINDER
root=macosx_finder_args(config, argc, argv);
if(root)
return root;
Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c (original)
+++ trunk/stream/stream.c Thu Aug 7 14:20:50 2008
@@ -71,13 +71,13 @@ static const stream_info_t* const auto_o
#ifdef CONFIG_CDDA
&stream_info_cdda,
#endif
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
&stream_info_netstream,
&stream_info_http1,
&stream_info_asf,
&stream_info_pnm,
&stream_info_rtsp,
-#ifdef STREAMING_LIVE555
+#ifdef CONFIG_LIVE555
&stream_info_sdp,
&stream_info_rtsp_sip,
#endif
@@ -103,7 +103,7 @@ static const stream_info_t* const auto_o
#ifdef CONFIG_VSTREAM
&stream_info_vstream,
#endif
-#ifdef LIBSMBCLIENT
+#ifdef CONFIG_LIBSMBCLIENT
&stream_info_smb,
#endif
&stream_info_cue,
@@ -156,7 +156,7 @@ stream_t* open_stream_plugin(const strea
s->flags |= mode;
*ret = sinfo->open(s,mode,arg,file_format);
if((*ret) != STREAM_OK) {
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
if (*ret == STREAM_REDIRECTED && redirected_url) {
if (s->streaming_ctrl && s->streaming_ctrl->url
&& s->streaming_ctrl->url->url)
@@ -247,7 +247,7 @@ int stream_fill_buffer(stream_t *s){
if (/*s->fd == NULL ||*/ s->eof) { s->buf_pos = s->buf_len = 0; return 0; }
switch(s->type){
case STREAMTYPE_STREAM:
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) {
len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);break;
} else {
@@ -314,7 +314,7 @@ if(newpos==0 || newpos!=s->pos){
// Some streaming protocol allow to seek backward and forward
// A function call that return -1 can tell that the protocol
// doesn't support seeking.
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
if(s->seek) { // new stream seek is much cleaner than streaming_ctrl one
if(!s->seek(s,newpos)) {
mp_msg(MSGT_STREAM,MSGL_ERR, "Seek failed\n");
Modified: trunk/stream/stream.h
==============================================================================
--- trunk/stream/stream.h (original)
+++ trunk/stream/stream.h Thu Aug 7 14:20:50 2008
@@ -65,7 +65,7 @@
#define STREAM_CTRL_GET_ANGLE 10
#define STREAM_CTRL_SET_ANGLE 11
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
#include "network.h"
#endif
@@ -112,7 +112,7 @@ typedef struct stream_st {
void* cache_data;
void* priv; // used for DVD, TV, RTSP etc
char* url; // strdup() of filename/url
-#ifdef MPLAYER_NETWORK
+#ifdef CONFIG_NETWORK
streaming_ctrl_t *streaming_ctrl;
#endif
unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE];
1
0
Author: diego
Date: Thu Aug 7 13:58:37 2008
New Revision: 27428
Log:
generalized SH architecture support by Magnus Damm, magnus.damm gmail com
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Aug 7 13:58:37 2008
@@ -159,13 +159,6 @@ arm() {
esac
}
-sh3() {
- case "$host_arch" in
- sh3) return 0;;
- *) return 1;;
- esac
-}
-
# Use this before starting a check
echocheck() {
echo "============ Checking for $@ ============" >> "$TMPLOG"
@@ -1283,7 +1276,7 @@ if test -z "$_target" ; then
# host's CPU/instruction set
host_arch=`uname -p 2>&1`
case "$host_arch" in
- i386|sparc|ppc|alpha|arm|sh3|mips|vax)
+ i386|sparc|ppc|alpha|arm|mips|vax)
;;
powerpc) # Darwin returns 'powerpc'
host_arch=ppc
@@ -1312,7 +1305,7 @@ if test -z "$_target" ; then
sparc64) host_arch=sparc64 ;;
parisc*|hppa*|9000*) host_arch=hppa ;;
arm*|zaurus|cats) host_arch=arm ;;
- sh3) host_arch=sh3 ;;
+ sh3|sh4|sh4a) host_arch=sh ;;
s390) host_arch=s390 ;;
s390x) host_arch=s390x ;;
mips*) host_arch=mips ;;
@@ -1639,7 +1632,7 @@ EOF
fi
-_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
+_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
case "$host_arch" in
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
_arch='X86 X86_32'
@@ -2012,13 +2005,13 @@ EOF
_optimizing=''
;;
- sh3)
- _arch='SH3'
- _target_arch='ARCH_SH3 = yes'
- iproc='sh3'
+ sh)
+ _arch='SH'
+ _target_arch='ARCH_SH = yes'
+ iproc='sh'
proc=''
- _march='-m3'
- _mcpu='-ml'
+ _march=''
+ _mcpu=''
_optimizing=''
;;
1
0
Author: diego
Date: Thu Aug 7 13:19:54 2008
New Revision: 27427
Log:
10l: MUSEPACK --> CONFIG_MUSEPACK
Modified:
trunk/libmpdemux/demuxer.c
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c (original)
+++ trunk/libmpdemux/demuxer.c Thu Aug 7 13:19:54 2008
@@ -139,7 +139,7 @@ const demuxer_desc_t *const demuxer_list
#ifdef CONFIG_LIBAVFORMAT
&demuxer_desc_lavf,
#endif
-#ifdef MUSEPACK
+#ifdef CONFIG_MUSEPACK
&demuxer_desc_mpc,
#endif
#ifdef CONFIG_LIBDV095
1
0
07 Aug '08
Author: diego
Date: Thu Aug 7 12:57:40 2008
New Revision: 27426
Log:
Ahem, the MACOSX_FINDER_SUPPORT directive was renamed to MACOSX_FINDER.
Modified:
trunk/Makefile
trunk/libvo/vo_macosx.m
trunk/libvo/vo_quartz.c
trunk/parser-mpcmd.c
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu Aug 7 12:57:40 2008
@@ -371,7 +371,7 @@ SRCS_COMMON-$(LIBSMBCLIENT) +=
SRCS_COMMON-$(LIBTHEORA) += libmpcodecs/vd_theora.c
SRCS_COMMON-$(LIBVORBIS) += libmpcodecs/ad_libvorbis.c \
libmpdemux/demux_ogg.c
-SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += osdep/macosx_finder_args.c
+SRCS_COMMON-$(MACOSX_FINDER) += osdep/macosx_finder_args.c
SRCS_COMMON-$(MP3LIB) += libmpcodecs/ad_mp3lib.c mp3lib/sr1.c
SRCS_COMMON-$(MP3LIB)-$(ARCH_X86_32) += mp3lib/decode_i586.c
SRCS_COMMON-$(MP3LIB)-$(ARCH_X86_32)-$(HAVE_3DNOW) += mp3lib/dct36_3dnow.c \
Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m (original)
+++ trunk/libvo/vo_macosx.m Thu Aug 7 12:57:40 2008
@@ -326,7 +326,7 @@ static int preinit(const char *arg)
if(!shared_buffer)
{
- #if !defined (MACOSX_FINDER_SUPPORT) || !defined (CONFIG_SDL)
+ #if !defined (MACOSX_FINDER) || !defined (CONFIG_SDL)
//this chunk of code is heavily based off SDL_macosx.m from SDL
//it uses an Apple private function to request foreground operation
void CPSEnableForegroundOperation(ProcessSerialNumber* psn);
Modified: trunk/libvo/vo_quartz.c
==============================================================================
--- trunk/libvo/vo_quartz.c (original)
+++ trunk/libvo/vo_quartz.c Thu Aug 7 12:57:40 2008
@@ -1141,7 +1141,7 @@ static int preinit(const char *arg)
}
}
-#if !defined (MACOSX_FINDER_SUPPORT) || !defined (CONFIG_SDL)
+#if !defined (MACOSX_FINDER) || !defined (CONFIG_SDL)
//this chunk of code is heavily based off SDL_macosx.m from SDL
//it uses an Apple private function to request foreground operation
{
Modified: trunk/parser-mpcmd.c
==============================================================================
--- trunk/parser-mpcmd.c (original)
+++ trunk/parser-mpcmd.c Thu Aug 7 12:57:40 2008
@@ -74,7 +74,7 @@ m_config_parse_mp_command_line(m_config_
int no_more_opts = 0;
int opt_exit = 0; // flag indicating whether mplayer should exit without playing anything
play_tree_t *last_parent, *last_entry = NULL, *root;
-#ifdef MACOSX_FINDER_SUPPORT
+#ifdef MACOSX_FINDER
extern play_tree_t *macosx_finder_args(m_config_t *, int , char **);
#endif
@@ -86,7 +86,7 @@ m_config_parse_mp_command_line(m_config_
config->mode = M_COMMAND_LINE;
mode = GLOBAL;
-#ifdef MACOSX_FINDER_SUPPORT
+#ifdef MACOSX_FINDER
root=macosx_finder_args(config, argc, argv);
if(root)
return root;
1
0
Author: diego
Date: Thu Aug 7 12:36:07 2008
New Revision: 27425
Log:
Rename font-related preprocessor directives.
Switch them from a HAVE_ to a CONFIG_ prefix.
Modified:
trunk/cfg-common-opts.h
trunk/cfg-mplayer.h
trunk/command.c
trunk/configure
trunk/gui/cfg.c
trunk/gui/interface.c
trunk/gui/mplayer/gtk/fs.c
trunk/gui/mplayer/gtk/opts.c
trunk/libass/ass.c
trunk/libass/ass_font.c
trunk/libass/ass_fontconfig.c
trunk/libass/ass_fontconfig.h
trunk/libass/ass_mp.c
trunk/libmenu/menu.c
trunk/libmenu/vf_menu.c
trunk/libmpdemux/demux_ogg.c
trunk/libvo/font_load.h
trunk/libvo/font_load_ft.c
trunk/libvo/sub.c
trunk/libvo/vo_aa.c
trunk/libvo/vo_dxr3.c
trunk/libvo/vo_gl.c
trunk/mencoder.c
trunk/mp_msg.c
trunk/mplayer.c
trunk/osdep/getch2-os2.c
trunk/osdep/getch2-win.c
trunk/osdep/getch2.c
trunk/stream/asf_mmst_streaming.c
trunk/subreader.c
trunk/subreader.h
Modified: trunk/cfg-common-opts.h
==============================================================================
--- trunk/cfg-common-opts.h (original)
+++ trunk/cfg-common-opts.h Thu Aug 7 12:36:07 2008
@@ -11,7 +11,7 @@
{"msglevel", msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
{"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
{"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
{"msgcharset", &mp_msg_charset, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
#endif
{"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL},
@@ -264,7 +264,7 @@
// ------------------------- subtitles options --------------------
{"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
{"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
@@ -276,8 +276,8 @@
{"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
-#endif /* HAVE_FRIBIDI */
-#ifdef HAVE_ICONV
+#endif /* CONFIG_FRIBIDI */
+#ifdef CONFIG_ICONV
{"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
#endif
{"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
@@ -309,7 +309,7 @@
{"spualign", &spu_alignment, CONF_TYPE_INT, CONF_RANGE, -1, 2, NULL},
{"spuaa", &spu_aamode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
{"spugauss", &spu_gaussvar, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 3.0, NULL},
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
{"subfont-encoding", &subtitle_font_encoding, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"subfont-text-scale", &text_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
{"subfont-osd-scale", &osd_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
@@ -334,12 +334,12 @@
{"ass-styles", &ass_styles_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"ass-hinting", &ass_hinting, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
#endif
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
{"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, -1, 1, NULL},
{"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, -1, NULL},
#else
{"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
-#endif /* HAVE_FONTCONFIG */
+#endif /* CONFIG_FONTCONFIG */
#endif /* MPLAYER_CFG_COMMON_OPTS_H */
Modified: trunk/cfg-mplayer.h
==============================================================================
--- trunk/cfg-mplayer.h (original)
+++ trunk/cfg-mplayer.h Thu Aug 7 12:36:07 2008
@@ -259,13 +259,13 @@ const m_option_t mplayer_opts[]={
{"menu-startup", &menu_startup, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
{"menu-keepdir", &menu_keepdir, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
{"menu-chroot", &menu_chroot, CONF_TYPE_STRING, 0, 0, 0, NULL},
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
{"menu-fribidi-charset", &menu_fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"menu-flip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"menu-noflip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"menu-flip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
-#endif /* HAVE_FRIBIDI */
+#endif /* CONFIG_FRIBIDI */
#else
{"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT,0, 0, 0, NULL},
#endif /* CONFIG_MENU */
Modified: trunk/command.c
==============================================================================
--- trunk/command.c (original)
+++ trunk/command.c Thu Aug 7 12:36:07 2008
@@ -1776,7 +1776,7 @@ static int mp_property_sub_forced_only(m
}
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
/// Subtitle scale (RW)
static int mp_property_sub_scale(m_option_t * prop, int action, void *arg,
MPContext * mpctx)
@@ -2076,7 +2076,7 @@ static const m_option_t mp_properties[]
M_OPT_RANGE, 0, 1, NULL },
{ "sub_forced_only", mp_property_sub_forced_only, CONF_TYPE_FLAG,
M_OPT_RANGE, 0, 1, NULL },
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
{ "sub_scale", mp_property_sub_scale, CONF_TYPE_FLOAT,
M_OPT_RANGE, 0, 100, NULL },
#endif
@@ -2209,7 +2209,7 @@ static struct {
{ "sub_delay", MP_CMD_SUB_DELAY, 0, 0, OSD_MSG_SUB_DELAY, MSGTR_SubDelayStatus },
{ "sub_visibility", MP_CMD_SUB_VISIBILITY, 1, 0, -1, MSGTR_SubVisibleStatus },
{ "sub_forced_only", MP_CMD_SUB_FORCED_ONLY, 1, 0, -1, MSGTR_SubForcedOnlyStatus },
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
{ "sub_scale", MP_CMD_SUB_SCALE, 0, 0, -1, MSGTR_SubScale},
#endif
#ifdef CONFIG_ASS
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Aug 7 12:36:07 2008
@@ -3173,9 +3173,9 @@ EOF
done
fi
if test "$_iconv" = yes ; then
- _def_iconv='#define HAVE_ICONV 1'
+ _def_iconv='#define CONFIG_ICONV 1'
else
- _def_iconv='#undef HAVE_ICONV'
+ _def_iconv='#undef CONFIG_ICONV'
fi
echores "$_iconv"
@@ -5647,11 +5647,11 @@ EOF
fi
fi
if test "$_freetype" = yes ; then
- _def_freetype='#define HAVE_FREETYPE'
+ _def_freetype='#define CONFIG_FREETYPE'
_inc_extra="$_inc_extra `$_freetypeconfig --cflags`"
_ld_extra="$_ld_extra `$_freetypeconfig --libs`"
else
- _def_freetype='#undef HAVE_FREETYPE'
+ _def_freetype='#undef CONFIG_FREETYPE'
fi
echores "$_freetype"
@@ -5687,9 +5687,9 @@ EOF
fi
fi
if test "$_fontconfig" = yes ; then
- _def_fontconfig='#define HAVE_FONTCONFIG'
+ _def_fontconfig='#define CONFIG_FONTCONFIG'
else
- _def_fontconfig='#undef HAVE_FONTCONFIG'
+ _def_fontconfig='#undef CONFIG_FONTCONFIG'
fi
echores "$_fontconfig"
@@ -5747,11 +5747,11 @@ EOF
fi
fi
if test "$_fribidi" = yes ; then
- _def_fribidi='#define HAVE_FRIBIDI'
+ _def_fribidi='#define CONFIG_FRIBIDI'
_inc_extra="$_inc_extra `$_fribidiconfig --cflags`"
_ld_extra="$_ld_extra `$_fribidiconfig --libs`"
else
- _def_fribidi='#undef HAVE_FRIBIDI'
+ _def_fribidi='#undef CONFIG_FRIBIDI'
fi
echores "$_fribidi"
@@ -5772,10 +5772,10 @@ EOF
cc_check -lenca $_ld_lm && _enca=yes
fi
if test "$_enca" = yes ; then
- _def_enca='#define HAVE_ENCA 1'
+ _def_enca='#define CONFIG_ENCA 1'
_ld_extra="$_ld_extra -lenca"
else
- _def_enca='#undef HAVE_ENCA'
+ _def_enca='#undef CONFIG_ENCA'
fi
echores "$_enca"
Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c (original)
+++ trunk/gui/cfg.c Thu Aug 7 12:36:07 2008
@@ -165,12 +165,12 @@ static const m_option_t gui_opts[] =
#endif
{ "sub_pos",&sub_pos,CONF_TYPE_INT,CONF_RANGE,0,200,NULL },
{ "sub_overlap",&suboverlap_enabled,CONF_TYPE_FLAG,0,0,0,NULL },
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
{ "sub_cp",&sub_cp,CONF_TYPE_STRING,0,0,0,NULL },
#endif
{ "font_factor",&font_factor,CONF_TYPE_FLOAT,CONF_RANGE,0.0,10.0,NULL },
{ "font_name",&font_name,CONF_TYPE_STRING,0,0,0,NULL },
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
{ "font_encoding",&subtitle_font_encoding,CONF_TYPE_STRING,0,0,0,NULL },
{ "font_text_scale",&text_font_scale_factor,CONF_TYPE_FLOAT,CONF_RANGE,0,100,NULL },
{ "font_osd_scale",&osd_font_scale_factor,CONF_TYPE_FLOAT,CONF_RANGE,0,100,NULL },
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c (original)
+++ trunk/gui/interface.c Thu Aug 7 12:36:07 2008
@@ -51,7 +51,7 @@
extern af_cfg_t af_cfg;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
#include <iconv.h>
#endif
@@ -400,7 +400,7 @@ extern m_obj_settings_t * vf_settings;
void guiLoadFont( void )
{
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
load_font_ft(vo_image_width, vo_image_height, &vo_font, font_name, osd_font_scale_factor);
#else
if ( vo_font )
@@ -1075,7 +1075,7 @@ void * gtkSet( int cmd,float fparam, voi
} else { url_item->next=NULL; URLList=url_item; }
return NULL;
// --- subtitle
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
case gtkSetFontFactor:
font_factor=fparam;
guiLoadFont();
@@ -1107,7 +1107,7 @@ void * gtkSet( int cmd,float fparam, voi
guiLoadFont();
return NULL;
#endif
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
case gtkSetSubEncoding:
gfree( (void **)&sub_cp );
sub_cp=gstrdup( (char *)vparam );
Modified: trunk/gui/mplayer/gtk/fs.c
==============================================================================
--- trunk/gui/mplayer/gtk/fs.c (original)
+++ trunk/gui/mplayer/gtk/fs.c Thu Aug 7 12:36:07 2008
@@ -116,7 +116,7 @@ int fsLastAudioFilterSelected = -1;
char * fsFontFileNames[][2] =
{
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
{ "True Type fonts (*.ttf)", "*.ttf" },
{ "Type1 fonts (*.pfb)", "*.pfb" },
{ "All fonts", "*.ttf,*.pfb" },
Modified: trunk/gui/mplayer/gtk/opts.c
==============================================================================
--- trunk/gui/mplayer/gtk/opts.c (original)
+++ trunk/gui/mplayer/gtk/opts.c Thu Aug 7 12:36:07 2008
@@ -122,7 +122,7 @@ static GtkWidget * HSFPS;
static GtkAdjustment * HSExtraStereoMuladj, * HSAudioDelayadj, * HSPanscanadj, * HSSubDelayadj;
static GtkAdjustment * HSSubPositionadj, * HSSubFPSadj, * HSPPQualityadj, * HSFPSadj;
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
static GtkWidget * HSFontFactor;
static GtkAdjustment * HSFontFactoradj;
#else
@@ -133,11 +133,11 @@ static GtkWidget * RBFontNoAutoScale
//static GtkWidget * AutoScale;
#endif
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
static GtkWidget * CBSubEncoding, * ESubEncoding;
#endif
-#if defined(HAVE_FREETYPE) || defined(HAVE_ICONV)
+#if defined(CONFIG_FREETYPE) || defined(CONFIG_ICONV)
static struct
{
char * name;
@@ -188,7 +188,7 @@ static int old_video_driver = 0;
static gboolean prHScaler( GtkWidget * widget,GdkEventMotion * event,gpointer user_data );
static void prToggled( GtkToggleButton * togglebutton,gpointer user_data );
static void prCListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data );
-#if defined(HAVE_FREETYPE) || defined(HAVE_ICONV)
+#if defined(CONFIG_FREETYPE) || defined(CONFIG_ICONV)
static void prEntry( GtkContainer * container,gpointer user_data );
#endif
@@ -312,7 +312,7 @@ void ShowPreferences( void )
if ( guiIntfStruct.Subtitlename ) gtk_entry_set_text( GTK_ENTRY( ESubtitleName ),guiIntfStruct.Subtitlename );
#endif
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if ( sub_cp )
{
int i;
@@ -326,7 +326,7 @@ void ShowPreferences( void )
// --- 4. page
// font ...
if ( font_name ) gtk_entry_set_text( GTK_ENTRY( prEFontName ),font_name );
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
gtk_adjustment_set_value( HSFontFactoradj,font_factor );
#else
gtk_adjustment_set_value( HSFontBluradj,( subtitle_font_radius / 8.0f ) * 100.0f );
@@ -434,7 +434,7 @@ void ShowPreferences( void )
gtk_signal_connect( GTK_OBJECT( CBSoftwareMixer ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)1 );
gtk_signal_connect( GTK_OBJECT( CBAudioEqualizer ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)2 );
gtk_signal_connect( GTK_OBJECT( CBShowVideoWindow ),"toggled",GTK_SIGNAL_FUNC( prToggled ), (void*)3 );
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
gtk_signal_connect( GTK_OBJECT( RBFontNoAutoScale ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)4 );
gtk_signal_connect( GTK_OBJECT( RBFontAutoScaleHeight ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)5 );
gtk_signal_connect( GTK_OBJECT( RBFontAutoScaleWidth ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)6 );
@@ -451,7 +451,7 @@ void ShowPreferences( void )
gtk_signal_connect( GTK_OBJECT( HSPanscan ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)2 );
gtk_signal_connect( GTK_OBJECT( HSSubDelay ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)3 );
gtk_signal_connect( GTK_OBJECT( HSSubPosition ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)4 );
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
gtk_signal_connect( GTK_OBJECT( HSFontFactor ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)5 );
#else
gtk_signal_connect( GTK_OBJECT( HSFontBlur ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)6 );
@@ -460,7 +460,7 @@ void ShowPreferences( void )
gtk_signal_connect( GTK_OBJECT( HSFontOSDScale ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)9 );
gtk_signal_connect( GTK_OBJECT( EFontEncoding ),"changed",GTK_SIGNAL_FUNC( prEntry ),(void *)0 );
#endif
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
gtk_signal_connect( GTK_OBJECT( ESubEncoding ),"changed",GTK_SIGNAL_FUNC( prEntry ),(void *)1 );
#endif
gtk_signal_connect( GTK_OBJECT( HSPPQuality ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)10 );
@@ -492,7 +492,7 @@ void HidePreferences( void )
#endif
}
-#if defined(HAVE_FREETYPE) || defined(HAVE_ICONV)
+#if defined(CONFIG_FREETYPE) || defined(CONFIG_ICONV)
static void prEntry( GtkContainer * container,gpointer user_data )
{
const char * comment;
@@ -500,7 +500,7 @@ static void prEntry( GtkContainer * cont
switch( (int)user_data )
{
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
case 0: // font encoding
comment=gtk_entry_get_text( GTK_ENTRY( EFontEncoding ) );
for ( i=0;lEncoding[i].name;i++ )
@@ -508,7 +508,7 @@ static void prEntry( GtkContainer * cont
if ( lEncoding[i].comment ) gtkSet( gtkSetFontEncoding,0,lEncoding[i].name );
break;
#endif
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
case 1: // sub encoding
comment=gtk_entry_get_text( GTK_ENTRY( ESubEncoding ) );
for ( i=0;lEncoding[i].name;i++ )
@@ -580,7 +580,7 @@ void prButton( GtkButton * button,gpoint
// --- 4. page
guiSetFilename( font_name,gtk_entry_get_text( GTK_ENTRY( prEFontName ) ) );
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
gtkSet( gtkSetFontFactor,HSFontFactoradj->value,NULL );
#else
gtkSet( gtkSetFontBlur,HSFontBluradj->value,NULL );
@@ -684,7 +684,7 @@ static gboolean prHScaler( GtkWidget * w
case 4: // sub position
sub_pos=(int)HSSubPositionadj->value;
break;
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
case 5: // font factor
gtkSet( gtkSetFontFactor,HSFontFactoradj->value,NULL );
break;
@@ -827,7 +827,7 @@ GtkWidget * create_Preferences( void )
GtkWidget * vbox603;
GtkWidget * hbox6;
GtkWidget * hbuttonbox5;
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
GtkWidget * hbox7;
#endif
GtkWidget * vbox601;
@@ -1030,7 +1030,7 @@ GtkWidget * create_Preferences( void )
label=AddLabel( MSGTR_PREFERENCES_SUB_FPS,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
label=AddLabel( MSGTR_PREFERENCES_FontEncoding,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
#endif
@@ -1051,7 +1051,7 @@ GtkWidget * create_Preferences( void )
gtk_spin_button_set_numeric( GTK_SPIN_BUTTON( HSSubFPS ),TRUE );
gtk_table_attach( GTK_TABLE( table1 ),HSSubFPS,1,2,2,3,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
CBSubEncoding=gtk_combo_new();
gtk_widget_set_name( CBSubEncoding,"CBSubEncoding" );
gtk_widget_show( CBSubEncoding );
@@ -1117,7 +1117,7 @@ GtkWidget * create_Preferences( void )
gtk_container_set_border_width( GTK_CONTAINER( hbuttonbox5 ),3 );
BLoadFont=AddButton( MSGTR_Browse,hbuttonbox5 );
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
hbox7=AddHBox( vbox603,1 );
AddLabel( MSGTR_PREFERENCES_FontFactor,hbox7 );
HSFontFactoradj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,10,0.05,0,0 ) );
Modified: trunk/libass/ass.c
==============================================================================
--- trunk/libass/ass.c (original)
+++ trunk/libass/ass.c Thu Aug 7 12:36:07 2008
@@ -32,7 +32,7 @@
#include <unistd.h>
#include <inttypes.h>
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
#include <iconv.h>
#endif
@@ -810,7 +810,7 @@ void ass_process_chunk(ass_track_t* trac
free(str);
}
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
/** \brief recode buffer to utf-8
* constraint: codepage != 0
* \param data pointer to text buffer
@@ -826,7 +826,7 @@ static char* sub_recode(char* data, size
{
const char* cp_tmp = codepage;
-#ifdef HAVE_ENCA
+#ifdef CONFIG_ENCA
char enca_lang[3], enca_fallback[100];
if (sscanf(codepage, "enca:%2s:%99s", enca_lang, enca_fallback) == 2
|| sscanf(codepage, "ENCA:%2s:%99s", enca_lang, enca_fallback) == 2) {
@@ -991,7 +991,7 @@ ass_track_t* ass_read_memory(ass_library
if (!buf)
return 0;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if (codepage)
buf = sub_recode(buf, bufsize, codepage);
if (!buf)
@@ -1017,7 +1017,7 @@ char* read_file_recode(char* fname, char
buf = read_file(fname, &bufsize);
if (!buf)
return 0;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if (codepage) {
char* tmpbuf = sub_recode(buf, bufsize, codepage);
free(buf);
@@ -1071,7 +1071,7 @@ int ass_read_styles(ass_track_t* track,
buf = read_file(fname, &sz);
if (!buf)
return 1;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if (codepage) {
char* tmpbuf;
tmpbuf = sub_recode(buf, sz, codepage);
Modified: trunk/libass/ass_font.c
==============================================================================
--- trunk/libass/ass_font.c (original)
+++ trunk/libass/ass_font.c Thu Aug 7 12:36:07 2008
@@ -284,7 +284,7 @@ FT_Glyph ass_font_get_glyph(void* fontco
break;
}
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
if (index == 0) {
int face_idx;
mp_msg(MSGT_ASS, MSGL_INFO, MSGTR_LIBASS_GlyphNotFoundReselectingFont,
Modified: trunk/libass/ass_fontconfig.c
==============================================================================
--- trunk/libass/ass_fontconfig.c (original)
+++ trunk/libass/ass_fontconfig.c Thu Aug 7 12:36:07 2008
@@ -37,13 +37,13 @@
#include "ass_library.h"
#include "ass_fontconfig.h"
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
#include <fontconfig/fontconfig.h>
#include <fontconfig/fcfreetype.h>
#endif
struct fc_instance_s {
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
FcConfig* config;
#endif
char* family_default;
@@ -51,7 +51,7 @@ struct fc_instance_s {
int index_default;
};
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
// 4yo fontconfig does not have these.
// They are only needed for debug output, anyway.
@@ -474,7 +474,7 @@ fc_instance_t* fontconfig_init(ass_libra
return priv;
}
-#else // HAVE_FONTCONFIG
+#else /* CONFIG_FONTCONFIG */
char* fontconfig_select(fc_instance_t* priv, const char* family, unsigned bold, unsigned italic, int* index,
uint32_t code)
Modified: trunk/libass/ass_fontconfig.h
==============================================================================
--- trunk/libass/ass_fontconfig.h (original)
+++ trunk/libass/ass_fontconfig.h Thu Aug 7 12:36:07 2008
@@ -28,7 +28,7 @@
#include <ft2build.h>
#include FT_FREETYPE_H
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
#include <fontconfig/fontconfig.h>
#endif
Modified: trunk/libass/ass_mp.c
==============================================================================
--- trunk/libass/ass_mp.c (original)
+++ trunk/libass/ass_mp.c Thu Aug 7 12:36:07 2008
@@ -32,7 +32,7 @@
#include "ass_mp.h"
#include "ass_library.h"
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
#include <fontconfig/fontconfig.h>
#endif
@@ -55,7 +55,7 @@ char* ass_border_color = NULL;
char* ass_styles_file = NULL;
int ass_hinting = ASS_HINTING_NATIVE + 4; // native hinting for unscaled osd
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
extern int font_fontconfig;
#else
static int font_fontconfig = -1;
@@ -65,7 +65,7 @@ extern char* sub_font_name;
extern float text_font_scale_factor;
extern int subtitle_autoscale;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
extern char* sub_cp;
#else
static char* sub_cp = 0;
Modified: trunk/libmenu/menu.c
==============================================================================
--- trunk/libmenu/menu.c (original)
+++ trunk/libmenu/menu.c Thu Aug 7 12:36:07 2008
@@ -215,7 +215,7 @@ int menu_init(struct MPContext *mpctx, c
char* buffer = NULL;
int bl = BUF_STEP, br = 0;
int f, fd;
-#ifndef HAVE_FREETYPE
+#ifndef CONFIG_FREETYPE
if(vo_font == NULL)
return 0;
#endif
@@ -403,7 +403,7 @@ static void render_txt(char *txt)
}
}
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
#include <fribidi/fribidi.h>
#include "libavutil/common.h"
char *menu_fribidi_charset = NULL;
@@ -459,7 +459,7 @@ void menu_draw_text(mp_image_t* mpi,char
return;
}
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
txt = menu_fribidi(txt);
#endif
render_txt(txt);
@@ -493,7 +493,7 @@ void menu_draw_text_full(mp_image_t* mpi
return;
}
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
txt = menu_fribidi(txt);
#endif
render_txt(txt);
Modified: trunk/libmenu/vf_menu.c
==============================================================================
--- trunk/libmenu/vf_menu.c (original)
+++ trunk/libmenu/vf_menu.c Thu Aug 7 12:36:07 2008
@@ -202,7 +202,7 @@ static void uninit(vf_instance_t *vf) {
static int config(struct vf_instance_s* vf, int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt) {
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
// here is the right place to get screen dimensions
if (force_load_font) {
force_load_font = 0;
Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c (original)
+++ trunk/libmpdemux/demux_ogg.c Thu Aug 7 12:36:07 2008
@@ -196,7 +196,7 @@ void demux_ogg_add_sub (ogg_stream_t* os
mp_msg(MSGT_DEMUX,MSGL_DBG2,"Ogg sub lines: %d first: '%s'\n",
ogg_sub.lines, ogg_sub.text[0]);
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
subcp_recode(&ogg_sub);
#endif
vo_sub = &ogg_sub;
@@ -745,7 +745,7 @@ int demux_ogg_open(demuxer_t* demuxer) {
sh_audio_t* sh_a;
sh_video_t* sh_v;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
subcp_open(NULL);
#endif
@@ -1486,7 +1486,7 @@ static void demux_close_ogg(demuxer_t* d
if(!ogg_d)
return;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
subcp_close();
#endif
Modified: trunk/libvo/font_load.h
==============================================================================
--- trunk/libvo/font_load.h (original)
+++ trunk/libvo/font_load.h Thu Aug 7 12:36:07 2008
@@ -1,7 +1,7 @@
#ifndef MPLAYER_FONT_LOAD_H
#define MPLAYER_FONT_LOAD_H
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
#include <ft2build.h>
#include FT_FREETYPE_H
#endif
@@ -10,14 +10,14 @@ typedef struct {
unsigned char *bmp;
unsigned char *pal;
int w,h,c;
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
int charwidth,charheight,pen,baseline,padding;
int current_count, current_alloc;
#endif
} raw_file;
typedef struct font_desc {
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
int dynamic;
#endif
char *name;
@@ -34,7 +34,7 @@ typedef struct font_desc {
short width[65536];
int freetype;
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
int face_cnt;
FT_Face faces[16];
@@ -64,7 +64,7 @@ typedef struct font_desc {
extern font_desc_t* vo_font;
extern font_desc_t* sub_font;
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
extern char *subtitle_font_encoding;
extern float text_font_scale_factor;
Modified: trunk/libvo/font_load_ft.c
==============================================================================
--- trunk/libvo/font_load_ft.c (original)
+++ trunk/libvo/font_load_ft.c Thu Aug 7 12:36:07 2008
@@ -16,7 +16,7 @@
#include <math.h>
#include <string.h>
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
#include <iconv.h>
#endif
@@ -24,7 +24,7 @@
#include FT_FREETYPE_H
#include FT_GLYPH_H
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
#include <fontconfig/fontconfig.h>
#endif
@@ -716,7 +716,7 @@ static int generate_tables(font_desc_t *
return 0;
}
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
/* decode from 'encoding' to unicode */
static FT_ULong decode_char(iconv_t *cd, char c) {
FT_ULong o;
@@ -1009,7 +1009,7 @@ font_desc_t* read_font_desc_ft(const cha
}
desc->face_cnt++;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if (unicode) {
charset_size = prepare_charset_unicode(face, my_charset, my_charcodes);
} else {
@@ -1124,7 +1124,7 @@ int done_freetype(void)
void load_font_ft(int width, int height, font_desc_t** fontp, const char *font_name, float font_scale_factor)
{
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
FcPattern *fc_pattern;
FcPattern *fc_pattern2;
FcChar8 *s;
@@ -1139,7 +1139,7 @@ void load_font_ft(int width, int height,
if (vo_font) free_font_desc(vo_font);
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
if (font_fontconfig > 0)
{
if (!font_name)
Modified: trunk/libvo/sub.c
==============================================================================
--- trunk/libvo/sub.c (original)
+++ trunk/libvo/sub.c Thu Aug 7 12:36:07 2008
@@ -1065,11 +1065,11 @@ void free_osd_list(void){
int vo_update_osd(int dxs,int dys){
mp_osd_obj_t* obj=vo_osd_list;
int chg=0;
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
static int defer_counter = 0, prev_dxs = 0, prev_dys = 0;
#endif
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
// here is the right place to get screen dimensions
if (((dxs != vo_image_width)
&& (subtitle_autoscale == 2 || subtitle_autoscale == 3))
@@ -1198,7 +1198,7 @@ void vo_init_osd(void){
#if CONFIG_TV_TELETEXT
new_osd_obj(OSDTYPE_TELETEXT);
#endif
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
force_load_font = 1;
#endif
}
Modified: trunk/libvo/vo_aa.c
==============================================================================
--- trunk/libvo/vo_aa.c (original)
+++ trunk/libvo/vo_aa.c Thu Aug 7 12:36:07 2008
@@ -247,7 +247,7 @@ config(uint32_t width, uint32_t height,
vo_font->pic_b[0]=malloc(sizeof(raw_file));
memset(vo_font->pic_b[0],0,sizeof(raw_file));
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
vo_font->dynamic = 0;
#endif
Modified: trunk/libvo/vo_dxr3.c
==============================================================================
--- trunk/libvo/vo_dxr3.c (original)
+++ trunk/libvo/vo_dxr3.c Thu Aug 7 12:36:07 2008
@@ -429,7 +429,7 @@ static int config(uint32_t width, uint32
ioctl(fd_control, EM8300_IOCTL_SET_ASPECTRATIO, &ioval);
#ifdef SPU_SUPPORT
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
if (ioval == EM8300_ASPECTRATIO_16_9) {
s_width *= d_height*1.78/s_height*(d_width*1.0/d_height)/2.35;
} else {
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c (original)
+++ trunk/libvo/vo_gl.c Thu Aug 7 12:36:07 2008
@@ -149,7 +149,7 @@ static void resize(int x,int y){
glLoadIdentity();
if (!scaled_osd) {
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
// adjust font size to display size
force_load_font = 1;
#endif
Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c (original)
+++ trunk/mencoder.c Thu Aug 7 12:36:07 2008
@@ -530,10 +530,10 @@ if (frameno_filename) {
#endif
// check font
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
init_freetype();
#endif
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
if(font_fontconfig <= 0)
{
#endif
@@ -548,7 +548,7 @@ if (frameno_filename) {
vo_font=read_font_desc(MPLAYER_DATADIR "/font/font.desc",font_factor,verbose>1);
}
#endif
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
}
#endif
Modified: trunk/mp_msg.c
==============================================================================
--- trunk/mp_msg.c (original)
+++ trunk/mp_msg.c Thu Aug 7 12:36:07 2008
@@ -5,7 +5,7 @@
#include "config.h"
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
#include <iconv.h>
#include <errno.h>
extern char* get_term_charset(void);
@@ -29,7 +29,7 @@ int mp_msg_level_all = MSGL_STATUS;
int verbose = 0;
int mp_msg_color = 0;
int mp_msg_module = 0;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
char *mp_msg_charset = NULL;
static char *old_charset = NULL;
static iconv_t msgiconv;
@@ -37,7 +37,7 @@ static iconv_t msgiconv;
const char* filename_recode(const char* filename)
{
-#if !defined(HAVE_ICONV) || !defined(MSG_CHARSET)
+#if !defined(CONFIG_ICONV) || !defined(MSG_CHARSET)
return filename;
#else
static iconv_t inv_msgiconv = (iconv_t)(-1);
@@ -73,7 +73,7 @@ void mp_msg_init(void){
verbose = atoi(env);
for(i=0;i<MSGT_MAX;i++) mp_msg_levels[i] = -2;
mp_msg_levels[MSGT_IDENTIFY] = -1; // no -identify output by default
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
mp_msg_charset = getenv("MPLAYER_CHARSET");
if (!mp_msg_charset)
mp_msg_charset = get_term_charset();
@@ -184,7 +184,7 @@ void mp_msg(int mod, int lev, const char
guiMessageBox(lev, tmp);
#endif
-#if defined(HAVE_ICONV) && defined(MSG_CHARSET)
+#if defined(CONFIG_ICONV) && defined(MSG_CHARSET)
if (mp_msg_charset && strcasecmp(mp_msg_charset, "noconv")) {
char tmp2[MSGSIZE_MAX];
size_t inlen = strlen(tmp), outlen = MSGSIZE_MAX;
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Thu Aug 7 12:36:07 2008
@@ -698,7 +698,7 @@ void exit_player_with_rc(const char* how
vo_uninit(); // Close the X11 connection (if any is open).
#endif
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
current_module="uninit_font";
if (sub_font && sub_font != vo_font) free_font_desc(sub_font);
sub_font = NULL;
@@ -1027,7 +1027,7 @@ void add_subtitles(char *filename, float
subd = sub_read_file(filename, fps);
#ifdef CONFIG_ASS
if (ass_enabled)
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
asst = ass_read_file(ass_library, filename, sub_cp);
#else
asst = ass_read_file(ass_library, filename, 0);
@@ -2782,10 +2782,10 @@ if(!codecs_file || !parse_codec_cfg(code
//------ load global data first ------
// check font
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
init_freetype();
#endif
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
if(font_fontconfig <= 0)
{
#endif
@@ -2806,7 +2806,7 @@ if(!codecs_file || !parse_codec_cfg(code
else
sub_font = vo_font;
#endif
-#ifdef HAVE_FONTCONFIG
+#ifdef CONFIG_FONTCONFIG
}
#endif
@@ -3543,7 +3543,7 @@ if(!reinit_video_chain()) {
if(vo_flags & 0x08 && vo_spudec)
spudec_set_hw_spu(vo_spudec,mpctx->video_out);
-#ifdef HAVE_FREETYPE
+#ifdef CONFIG_FREETYPE
force_load_font = 1;
#endif
Modified: trunk/osdep/getch2-os2.c
==============================================================================
--- trunk/osdep/getch2-os2.c (original)
+++ trunk/osdep/getch2-os2.c Thu Aug 7 12:36:07 2008
@@ -32,7 +32,7 @@
#include "input/input.h"
#include "mp_fifo.h"
-#if defined(HAVE_LANGINFO) && defined(HAVE_ICONV)
+#if defined(HAVE_LANGINFO) && defined(CONFIG_ICONV)
#include <locale.h>
#include <langinfo.h>
#endif
@@ -182,7 +182,7 @@ void getch2_disable( void )
getch2_status = 0;
}
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
char *get_term_charset( void )
{
char *charset = NULL;
Modified: trunk/osdep/getch2-win.c
==============================================================================
--- trunk/osdep/getch2-win.c (original)
+++ trunk/osdep/getch2-win.c Thu Aug 7 12:36:07 2008
@@ -142,7 +142,7 @@ void getch2_disable(){
getch2_status=0;
}
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
static const struct {
unsigned cp;
char* alias;
Modified: trunk/osdep/getch2.c
==============================================================================
--- trunk/osdep/getch2.c (original)
+++ trunk/osdep/getch2.c Thu Aug 7 12:36:07 2008
@@ -28,7 +28,7 @@
#endif
#endif
-#if defined(HAVE_LANGINFO) && defined(HAVE_ICONV)
+#if defined(HAVE_LANGINFO) && defined(CONFIG_ICONV)
#include <locale.h>
#include <langinfo.h>
#endif
@@ -270,7 +270,7 @@ void getch2_disable(void){
getch2_status=0;
}
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
char* get_term_charset(void)
{
char* charset = NULL;
Modified: trunk/stream/asf_mmst_streaming.c
==============================================================================
--- trunk/stream/asf_mmst_streaming.c (original)
+++ trunk/stream/asf_mmst_streaming.c Thu Aug 7 12:36:07 2008
@@ -46,10 +46,10 @@
#endif
#ifndef CONFIG_SETLOCALE
-#undef HAVE_ICONV
+#undef CONFIG_ICONV
#endif
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
#include <iconv.h>
#ifdef HAVE_LANGINFO
#include <langinfo.h>
@@ -143,13 +143,13 @@ static void send_command (int s, int com
}
}
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
static iconv_t url_conv;
#endif
static void string_utf16(char *dest, char *src, int len) {
int i;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
size_t len1, len2;
char *ip, *op;
@@ -172,7 +172,7 @@ static void string_utf16(char *dest, cha
/* trailing zeroes */
dest[i*2] = 0;
dest[i*2+1] = 0;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
}
#endif
}
@@ -575,7 +575,7 @@ int asf_mmst_streaming_start(stream_t *s
* */
/* prepare for the url encoding conversion */
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
#ifdef HAVE_LANGINFO
url_conv = iconv_open("UTF-16LE",nl_langinfo(CODESET));
#else
@@ -690,7 +690,7 @@ int asf_mmst_streaming_start(stream_t *s
packet_length1 = packet_length;
mp_msg(MSGT_NETWORK,MSGL_INFO,"mmst packet_length = %d\n", packet_length);
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if (url_conv != (iconv_t)(-1))
iconv_close(url_conv);
#endif
Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c (original)
+++ trunk/subreader.c Thu Aug 7 12:36:07 2008
@@ -20,17 +20,17 @@
#include "subreader.h"
#include "stream/stream.h"
-#ifdef HAVE_ENCA
+#ifdef CONFIG_ENCA
#include <enca.h>
#endif
#define ERR ((void *) -1)
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
#include <iconv.h>
char *sub_cp=NULL;
#endif
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
#include <fribidi/fribidi.h>
char *fribidi_charset = NULL; ///character set that will be passed to FriBiDi
int flip_hebrew = 1; ///flip subtitles using fribidi
@@ -1071,7 +1071,7 @@ int sub_utf8_prev=0;
extern float sub_delay;
extern float sub_fps;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
static iconv_t icdsc = (iconv_t)(-1);
void subcp_open (stream_t *st)
@@ -1080,7 +1080,7 @@ void subcp_open (stream_t *st)
if (sub_cp){
const char *cp_tmp = sub_cp;
-#ifdef HAVE_ENCA
+#ifdef CONFIG_ENCA
char enca_lang[3], enca_fallback[100];
if (sscanf(sub_cp, "enca:%2s:%99s", enca_lang, enca_fallback) == 2
|| sscanf(sub_cp, "ENCA:%2s:%99s", enca_lang, enca_fallback) == 2) {
@@ -1146,7 +1146,7 @@ subtitle* subcp_recode (subtitle *sub)
}
#endif
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
#ifndef max
#define max(a,b) (((a)>(b))?(a):(b))
#endif
@@ -1270,7 +1270,7 @@ struct subreader {
const char *name;
};
-#ifdef HAVE_ENCA
+#ifdef CONFIG_ENCA
const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback)
{
const char **languages;
@@ -1369,7 +1369,7 @@ sub_data* sub_read_file (char *filename,
stream_reset(fd);
stream_seek(fd,0);
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
sub_utf8_prev=sub_utf8;
{
int l,k;
@@ -1389,7 +1389,7 @@ sub_data* sub_read_file (char *filename,
sub_num=0;n_max=32;
first=malloc(n_max*sizeof(subtitle));
if(!first){
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
subcp_close();
sub_utf8=sub_utf8_prev;
#endif
@@ -1413,15 +1413,15 @@ sub_data* sub_read_file (char *filename,
memset(sub, '\0', sizeof(subtitle));
sub=srp->read(fd,sub);
if(!sub) break; // EOF
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if ((sub!=ERR) && (sub_utf8 & 2)) sub=subcp_recode(sub);
#endif
-#ifdef HAVE_FRIBIDI
+#ifdef CONFIG_FRIBIDI
if (sub!=ERR) sub=sub_fribidi(sub,sub_utf8);
#endif
if ( sub == ERR )
{
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
subcp_close();
#endif
if ( first ) free(first);
@@ -1474,7 +1474,7 @@ sub_data* sub_read_file (char *filename,
free_stream(fd);
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
subcp_close();
#endif
@@ -1876,8 +1876,8 @@ char** sub_filenames(const char* path, c
// does it end with a subtitle extension?
found = 0;
-#ifdef HAVE_ICONV
-#ifdef HAVE_ENCA
+#ifdef CONFIG_ICONV
+#ifdef CONFIG_ENCA
for (i = ((sub_cp && strncasecmp(sub_cp, "enca", 4) != 0) ? 3 : 0); sub_exts[i]; i++) {
#else
for (i = (sub_cp ? 3 : 0); sub_exts[i]; i++) {
@@ -1931,7 +1931,7 @@ char** sub_filenames(const char* path, c
if (prio) {
prio += prio;
-#ifdef HAVE_ICONV
+#ifdef CONFIG_ICONV
if (i<3){ // prefer UTF-8 coded
prio++;
}
Modified: trunk/subreader.h
==============================================================================
--- trunk/subreader.h (original)
+++ trunk/subreader.h Thu Aug 7 12:36:07 2008
@@ -71,7 +71,7 @@ subtitle* subcp_recode (subtitle *sub);
struct stream_st;
void subcp_open (struct stream_st *st); /* for demux_ogg.c */
void subcp_close (void); /* for demux_ogg.c */
-#ifdef HAVE_ENCA
+#ifdef CONFIG_ENCA
const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback);
const char* guess_cp(struct stream_st *st, const char *preferred_language, const char *fallback);
#endif
1
0
Author: ben
Date: Thu Aug 7 11:53:59 2008
New Revision: 27424
Log:
Fix wrong behavior with slave command by going back to the starting point
of the play_tree to pop all existing configurations.
Patch by Mathieu Schroeter <mathieu dot schroeter at gamesover dot ch>.
Modified:
trunk/command.c
Modified: trunk/command.c
==============================================================================
--- trunk/command.c (original)
+++ trunk/command.c Thu Aug 7 11:53:59 2008
@@ -2655,6 +2655,10 @@ int run_command(MPContext * mpctx, mp_cm
break;
case MP_CMD_STOP:
+ // Go back to the starting point.
+ while (play_tree_iter_up_step
+ (mpctx->playtree_iter, 0, 1) != PLAY_TREE_ITER_END)
+ /* NOP */ ;
mpctx->eof = PT_STOP;
brk_cmd = 1;
break;
1
0
07 Aug '08
Author: diego
Date: Thu Aug 7 10:58:07 2008
New Revision: 27423
Log:
Rename a bunch of miscellaneous preprocessor directives.
Switch them from a HAVE_ to a CONFIG_ prefix.
Modified:
trunk/cfg-common-opts.h
trunk/cfg-mplayer.h
trunk/configure
trunk/gui/win32/gui.c
trunk/gui/win32/interface.c
trunk/input/input.c
trunk/libaf/af.c
trunk/libmpdemux/demuxer.c
trunk/mencoder.c
trunk/mplayer.c
trunk/stream/cdd.h
trunk/stream/stream.c
trunk/stream/stream_cdda.c
Modified: trunk/cfg-common-opts.h
==============================================================================
--- trunk/cfg-common-opts.h (original)
+++ trunk/cfg-common-opts.h Thu Aug 7 10:58:07 2008
@@ -131,7 +131,7 @@
{ "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
{ "rawvideo", &demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
-#ifdef HAVE_CDDA
+#ifdef CONFIG_CDDA
{ "cdda", &cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
#endif
Modified: trunk/cfg-mplayer.h
==============================================================================
--- trunk/cfg-mplayer.h (original)
+++ trunk/cfg-mplayer.h Thu Aug 7 10:58:07 2008
@@ -300,7 +300,7 @@ const m_option_t mplayer_opts[]={
{"dumpjacosub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 8, NULL},
{"dumpsami", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 9, NULL},
-#ifdef HAVE_LIRC
+#ifdef CONFIG_LIRC
{"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
#endif
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Aug 7 10:58:07 2008
@@ -5566,40 +5566,40 @@ EOF
fi
if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then
_cdda='yes'
- _def_libcdio='#define HAVE_LIBCDIO'
+ _def_libcdio='#define CONFIG_LIBCDIO'
_def_havelibcdio='yes'
else
if test "$_cdparanoia" = yes ; then
_res_comment="using cdparanoia"
fi
- _def_libcdio='#undef HAVE_LIBCDIO'
+ _def_libcdio='#undef CONFIG_LIBCDIO'
_def_havelibcdio='no'
fi
echores "$_libcdio"
if test "$_cdda" = yes ; then
test $_cddb = auto && test $_network = yes && _cddb=yes
- _def_cdparanoia='#define HAVE_CDDA'
+ _def_cdparanoia='#define CONFIG_CDDA'
_inputmodules="cdda $_inputmodules"
else
- _def_cdparanoia='#undef HAVE_CDDA'
+ _def_cdparanoia='#undef CONFIG_CDDA'
_noinputmodules="cdda $_noinputmodules"
fi
if test "$_cddb" = yes ; then
- _def_cddb='#define HAVE_CDDB'
+ _def_cddb='#define CONFIG_CDDB'
_inputmodules="cddb $_inputmodules"
else
_cddb=no
- _def_cddb='#undef HAVE_CDDB'
+ _def_cddb='#undef CONFIG_CDDB'
_noinputmodules="cddb $_noinputmodules"
fi
echocheck "bitmap font support"
if test "$_bitmap_font" = yes ; then
- _def_bitmap_font="#define HAVE_BITMAP_FONT 1"
+ _def_bitmap_font="#define CONFIG_BITMAP_FONT 1"
else
- _def_bitmap_font="#undef HAVE_BITMAP_FONT"
+ _def_bitmap_font="#undef CONFIG_BITMAP_FONT"
fi
echores "$_bitmap_font"
@@ -6223,9 +6223,9 @@ EOF
cc_check && _ladspa=yes
fi
if test "$_ladspa" = yes; then
- _def_ladspa="#define HAVE_LADSPA"
+ _def_ladspa="#define CONFIG_LADSPA"
else
- _def_ladspa="#undef HAVE_LADSPA"
+ _def_ladspa="#undef CONFIG_LADSPA"
fi
echores "$_ladspa"
@@ -7224,11 +7224,11 @@ echores "$_select"
echocheck "ftp"
if ! beos && test "$_ftp" = yes ; then
- _def_ftp='#define HAVE_FTP 1'
+ _def_ftp='#define CONFIG_FTP 1'
_inputmodules="ftp $_inputmodules"
else
_noinputmodules="ftp $_noinputmodules"
- _def_ftp='#undef HAVE_FTP'
+ _def_ftp='#undef CONFIG_FTP'
fi
echores "$_ftp"
@@ -7243,12 +7243,12 @@ EOF
cc_check -lvstream-client && _vstream=yes
fi
if test "$_vstream" = yes ; then
- _def_vstream='#define HAVE_VSTREAM 1'
+ _def_vstream='#define CONFIG_VSTREAM 1'
_inputmodules="vstream $_inputmodules"
_ld_extra="$_ld_extra -lvstream-client"
else
_noinputmodules="vstream $_noinputmodules"
- _def_vstream='#undef HAVE_VSTREAM'
+ _def_vstream='#undef CONFIG_VSTREAM'
fi
echores "$_vstream"
@@ -7309,14 +7309,14 @@ if test "$_xmms" = yes ; then
_xmmslibdir=/usr/lib
fi
- _def_xmms='#define HAVE_XMMS 1'
+ _def_xmms='#define CONFIG_XMMS 1'
if darwin ; then
_ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.dylib"
else
_ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.so.1 -export-dynamic"
fi
else
- _def_xmms='#undef HAVE_XMMS'
+ _def_xmms='#undef CONFIG_XMMS'
fi
echores "$_xmms"
@@ -7560,11 +7560,11 @@ test "$_debug" != "" && _def_debug='#def
echocheck "joystick"
-_def_joystick='#undef HAVE_JOYSTICK'
+_def_joystick='#undef CONFIG_JOYSTICK'
if test "$_joystick" = yes ; then
if linux ; then
# TODO add some check
- _def_joystick='#define HAVE_JOYSTICK 1'
+ _def_joystick='#define CONFIG_JOYSTICK 1'
else
_joystick="no"
_res_comment="unsupported under $system_name"
@@ -7582,10 +7582,10 @@ EOF
cc_check -llirc_client && _lirc=yes
fi
if test "$_lirc" = yes ; then
- _def_lirc='#define HAVE_LIRC 1'
+ _def_lirc='#define CONFIG_LIRC 1'
_ld_extra="$_ld_extra -llirc_client"
else
- _def_lirc='#undef HAVE_LIRC'
+ _def_lirc='#undef CONFIG_LIRC'
fi
echores "$_lirc"
@@ -7599,10 +7599,10 @@ EOF
cc_check -llircc && _lircc=yes
fi
if test "$_lircc" = yes ; then
- _def_lircc='#define HAVE_LIRCC 1'
+ _def_lircc='#define CONFIG_LIRCC 1'
_ld_extra="$_ld_extra -llircc"
else
- _def_lircc='#undef HAVE_LIRCC'
+ _def_lircc='#undef CONFIG_LIRCC'
fi
echores "$_lircc"
@@ -7619,11 +7619,11 @@ EOF
cc_check `$_pkg_config --cflags --libs libosso 2>/dev/null` && _maemo=yes
fi
if test "$_maemo" = yes ; then
- _def_maemo='#define HAVE_MAEMO 1'
+ _def_maemo='#define CONFIG_MAEMO 1'
_inc_extra="$_inc_extra `$_pkg_config --cflags libosso`"
_ld_extra="$_ld_extra `$_pkg_config --libs libosso` -lXsp"
else
- _def_maemo='#undef HAVE_MAEMO'
+ _def_maemo='#undef CONFIG_MAEMO'
fi
echores "$_maemo"
fi
Modified: trunk/gui/win32/gui.c
==============================================================================
--- trunk/gui/win32/gui.c (original)
+++ trunk/gui/win32/gui.c Thu Aug 7 10:58:07 2008
@@ -804,7 +804,7 @@ static LRESULT CALLBACK EventProc(HWND h
char device[MAX_PATH];
char searchpath[MAX_PATH];
char searchpath2[MAX_PATH];
-#ifdef HAVE_LIBCDIO
+#ifdef CONFIG_LIBCDIO
char searchpath3[MAX_PATH];
#endif
int len, pos = 0, cdromdrive = 0;
@@ -826,14 +826,14 @@ static LRESULT CALLBACK EventProc(HWND h
mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] checking %s for CD/VCD/SVCD/DVDs\n", device + pos);
sprintf(searchpath, "%sVIDEO_TS", device + pos);
sprintf(searchpath2, "%sMpegav", device + pos);
-#ifdef HAVE_LIBCDIO
+#ifdef CONFIG_LIBCDIO
sprintf(searchpath3, "%sTrack01.cda", device + pos);
#endif
if(GetFileAttributes(searchpath) != INVALID_FILE_ATTRIBUTES)
flags |= MF_ENABLED;
else if(GetFileAttributes(searchpath2) != INVALID_FILE_ATTRIBUTES)
flags |= MF_ENABLED;
-#ifdef HAVE_LIBCDIO
+#ifdef CONFIG_LIBCDIO
else if(GetFileAttributes(searchpath3) != INVALID_FILE_ATTRIBUTES)
flags |= MF_ENABLED;
#endif
@@ -1015,7 +1015,7 @@ static LRESULT CALLBACK EventProc(HWND h
sprintf(searchpath, "%sTrack01.cda", device + pos);
if(GetFileAttributes(searchpath) != INVALID_FILE_ATTRIBUTES)
{
-#ifdef HAVE_LIBCDIO
+#ifdef CONFIG_LIBCDIO
if (cdrom_device) free(cdrom_device);
cdrom_device = strdup(device + pos);
/* mplayer doesn't seem to like the trailing \ after the device name */
Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c (original)
+++ trunk/gui/win32/interface.c Thu Aug 7 10:58:07 2008
@@ -41,7 +41,7 @@
#include "access_mpcontext.h"
#include "gui.h"
#include "dialogs.h"
-#ifdef HAVE_LIBCDIO
+#ifdef CONFIG_LIBCDIO
#include <cdio/cdio.h>
#endif
@@ -173,7 +173,7 @@ static void guiSetEvent(int event)
break;
}
#endif
-#ifdef HAVE_LIBCDIO
+#ifdef CONFIG_LIBCDIO
case evPlayCD:
{
int i;
Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c (original)
+++ trunk/input/input.c Thu Aug 7 10:58:07 2008
@@ -29,11 +29,11 @@
#include "joystick.h"
-#ifdef HAVE_LIRC
+#ifdef CONFIG_LIRC
#include "lirc.h"
#endif
-#ifdef HAVE_LIRCC
+#ifdef CONFIG_LIRCC
#include <lirc/lircc.h>
#endif
@@ -426,7 +426,7 @@ static const mp_cmd_bind_t def_cmd_binds
{ { 'W', 0 }, "step_property teletext_page 1" },
{ { 'Q', 0 }, "step_property teletext_page -1" },
#endif
-#ifdef HAVE_JOYSTICK
+#ifdef CONFIG_JOYSTICK
{ { JOY_AXIS0_PLUS, 0 }, "seek 10" },
{ { JOY_AXIS0_MINUS, 0 }, "seek -10" },
{ { JOY_AXIS1_MINUS, 0 }, "seek 60" },
@@ -1733,7 +1733,7 @@ mp_input_init(int use_gui) {
free(file);
}
-#ifdef HAVE_JOYSTICK
+#ifdef CONFIG_JOYSTICK
if(use_joystick) {
int fd = mp_input_joystick_init(js_dev);
if(fd < 0)
@@ -1743,7 +1743,7 @@ mp_input_init(int use_gui) {
}
#endif
-#ifdef HAVE_LIRC
+#ifdef CONFIG_LIRC
if(use_lirc) {
int fd = mp_input_lirc_init();
if(fd > 0)
@@ -1751,7 +1751,7 @@ mp_input_init(int use_gui) {
}
#endif
-#ifdef HAVE_LIRCC
+#ifdef CONFIG_LIRCC
if(use_lircc) {
int fd = lircc_init("mplayer", NULL);
if(fd >= 0)
Modified: trunk/libaf/af.c
==============================================================================
--- trunk/libaf/af.c (original)
+++ trunk/libaf/af.c Thu Aug 7 10:58:07 2008
@@ -60,7 +60,7 @@ static af_info_t* filter_list[]={
#endif
&af_info_sweep,
&af_info_hrtf,
-#ifdef HAVE_LADSPA
+#ifdef CONFIG_LADSPA
&af_info_ladspa,
#endif
&af_info_center,
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c (original)
+++ trunk/libmpdemux/demuxer.c Thu Aug 7 10:58:07 2008
@@ -149,7 +149,7 @@ const demuxer_desc_t *const demuxer_list
#ifdef CONFIG_LIBNUT
&demuxer_desc_nut,
#endif
-#ifdef HAVE_XMMS
+#ifdef CONFIG_XMMS
&demuxer_desc_xmms,
#endif
/* Please do not add any new demuxers here. If you want to implement a new
Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c (original)
+++ trunk/mencoder.c Thu Aug 7 10:58:07 2008
@@ -537,7 +537,7 @@ if (frameno_filename) {
if(font_fontconfig <= 0)
{
#endif
-#ifdef HAVE_BITMAP_FONT
+#ifdef CONFIG_BITMAP_FONT
if(font_name){
vo_font=read_font_desc(font_name,font_factor,verbose>1);
if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,font_name);
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Thu Aug 7 10:58:07 2008
@@ -2789,7 +2789,7 @@ if(!codecs_file || !parse_codec_cfg(code
if(font_fontconfig <= 0)
{
#endif
-#ifdef HAVE_BITMAP_FONT
+#ifdef CONFIG_BITMAP_FONT
if(font_name){
vo_font=read_font_desc(font_name,font_factor,verbose>1);
if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,
Modified: trunk/stream/cdd.h
==============================================================================
--- trunk/stream/cdd.h (original)
+++ trunk/stream/cdd.h Thu Aug 7 10:58:07 2008
@@ -2,7 +2,7 @@
#define MPLAYER_CDD_H
#include "config.h"
-#ifndef HAVE_LIBCDIO
+#ifndef CONFIG_LIBCDIO
#include <cdda_interface.h>
#include <cdda_paranoia.h>
#else
@@ -54,7 +54,7 @@ typedef struct {
} cd_info_t;
typedef struct {
-#ifndef HAVE_LIBCDIO
+#ifndef CONFIG_LIBCDIO
cdrom_drive* cd;
cdrom_paranoia* cdp;
#else
Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c (original)
+++ trunk/stream/stream.c Thu Aug 7 10:58:07 2008
@@ -68,7 +68,7 @@ static const stream_info_t* const auto_o
#ifdef CONFIG_VCD
&stream_info_vcd,
#endif
-#ifdef HAVE_CDDA
+#ifdef CONFIG_CDDA
&stream_info_cdda,
#endif
#ifdef MPLAYER_NETWORK
@@ -97,10 +97,10 @@ static const stream_info_t* const auto_o
#ifdef CONFIG_PVR
&stream_info_pvr,
#endif
-#ifdef HAVE_FTP
+#ifdef CONFIG_FTP
&stream_info_ftp,
#endif
-#ifdef HAVE_VSTREAM
+#ifdef CONFIG_VSTREAM
&stream_info_vstream,
#endif
#ifdef LIBSMBCLIENT
Modified: trunk/stream/stream_cdda.c
==============================================================================
--- trunk/stream/stream_cdda.c (original)
+++ trunk/stream/stream_cdda.c Thu Aug 7 10:58:07 2008
@@ -147,7 +147,7 @@ static int open_cdda(stream_t *st,int m,
struct cdda_params* p = (struct cdda_params*)opts;
int mode = p->paranoia_mode;
int offset = p->toc_offset;
-#ifndef HAVE_LIBCDIO
+#ifndef CONFIG_LIBCDIO
cdrom_drive* cdd = NULL;
#else
cdrom_drive_t* cdd = NULL;
@@ -171,7 +171,7 @@ static int open_cdda(stream_t *st,int m,
p->device = strdup(DEFAULT_CDROM_DEVICE);
}
-#ifdef HAVE_CDDB
+#ifdef CONFIG_CDDB
// cdd_identify returns -1 if it cannot read the TOC,
// in which case there is no point in calling cddb_resolve
if(cdd_identify(p->device) >= 0 && strncmp(st->url,"cddb",4) == 0) {
@@ -183,7 +183,7 @@ static int open_cdda(stream_t *st,int m,
}
#endif
-#ifndef HAVE_LIBCDIO
+#ifndef CONFIG_LIBCDIO
if(p->generic_dev)
cdd = cdda_identify_scsi(p->generic_dev,p->device,0,NULL);
else
@@ -205,7 +205,7 @@ static int open_cdda(stream_t *st,int m,
if(p->sector_size) {
cdd->nsectors = p->sector_size;
-#ifndef HAVE_LIBCDIO
+#ifndef CONFIG_LIBCDIO
cdd->bigbuff = p->sector_size * CD_FRAMESIZE_RAW;
#endif
}
@@ -283,7 +283,7 @@ static int open_cdda(stream_t *st,int m,
if(p->no_skip)
mode |= PARANOIA_MODE_NEVERSKIP;
-#ifndef HAVE_LIBCDIO
+#ifndef CONFIG_LIBCDIO
paranoia_modeset(cdd, mode);
if(p->search_overlap >= 0)
@@ -298,7 +298,7 @@ static int open_cdda(stream_t *st,int m,
paranoia_seek(priv->cdp,priv->start_sector,SEEK_SET);
priv->sector = priv->start_sector;
-#ifdef HAVE_CDDB
+#ifdef CONFIG_CDDB
if(cddb_info) {
cd_info_free(cd_info);
priv->cd_info = cddb_info;
@@ -324,7 +324,7 @@ static int open_cdda(stream_t *st,int m,
return STREAM_OK;
}
-#ifndef HAVE_LIBCDIO
+#ifndef CONFIG_LIBCDIO
static void cdparanoia_callback(long inpos, int function) {
#else
static void cdparanoia_callback(long int inpos, paranoia_cb_mode_t function) {
@@ -438,7 +438,7 @@ const stream_info_t stream_info_cdda = {
"",
open_cdda,
{ "cdda",
-#ifdef HAVE_CDDB
+#ifdef CONFIG_CDDB
"cddb",
#endif
NULL },
1
0
06 Aug '08
Author: diego
Date: Thu Aug 7 01:19:29 2008
New Revision: 27422
Log:
Introduce CONFIG_ALSA preprocessor directive for ALSA 0.9 and 1.x.
Use it in all the places that checked for either ALSA 0.9 or 1.x.
Modified:
trunk/cfg-common.h
trunk/configure
trunk/gui/cfg.c
trunk/gui/interface.c
trunk/gui/mplayer/gtk/opts.c
trunk/libao2/audio_out.c
trunk/stream/audio_in.c
trunk/stream/audio_in.h
trunk/stream/stream_radio.c
trunk/stream/tvi_v4l.c
trunk/stream/tvi_v4l2.c
Modified: trunk/cfg-common.h
==============================================================================
--- trunk/cfg-common.h (original)
+++ trunk/cfg-common.h Thu Aug 7 01:19:29 2008
@@ -119,9 +119,9 @@ const m_option_t tvopts_conf[]={
{"mjpeg", &stream_tv_defaults.mjpeg, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"decimation", &stream_tv_defaults.decimation, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL},
{"quality", &stream_tv_defaults.quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
{"alsa", &stream_tv_defaults.alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL},
-#endif /* defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X) */
+#endif /* CONFIG_ALSA */
#endif /* defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) */
{"adevice", &stream_tv_defaults.adevice, CONF_TYPE_STRING, 0, 0, 0, NULL},
#ifdef CONFIG_TV_TELETEXT
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Aug 7 01:19:29 2008
@@ -5298,6 +5298,7 @@ int main(void) { return 0; }
EOF
cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-alsa'
fi
+_def_alsa='#undef CONFIG_ALSA'
_def_alsa5='#undef CONFIG_ALSA5'
_def_alsa9='#undef CONFIG_ALSA9'
_def_alsa1x='#undef CONFIG_ALSA1X'
@@ -5316,6 +5317,7 @@ if test "$_alsaver" ; then
_alsa9=yes
_aosrc="$_aosrc ao_alsa.c"
_aomodules="alsa $_aomodules"
+ _def_alsa='#define CONFIG_ALSA 1'
_def_alsa9='#define CONFIG_ALSA9 1'
_def_sys_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1'
_res_comment="using alsa 0.9.x and sys/asoundlib.h"
@@ -5323,6 +5325,7 @@ if test "$_alsaver" ; then
_alsa9=yes
_aosrc="$_aosrc ao_alsa.c"
_aomodules="alsa $_aomodules"
+ _def_alsa='#define CONFIG_ALSA 1'
_def_alsa9='#define CONFIG_ALSA9 1'
_def_alsa_asoundlib_h='#define HAVE_ALSA_ASOUNDLIB_H 1'
_res_comment="using alsa 0.9.x and alsa/asoundlib.h"
@@ -5330,6 +5333,7 @@ if test "$_alsaver" ; then
_alsa1x=yes
_aosrc="$_aosrc ao_alsa.c"
_aomodules="alsa $_aomodules"
+ _def_alsa='#define CONFIG_ALSA 1'
_def_alsa1x="#define CONFIG_ALSA1X 1"
_def_alsa_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1'
_res_comment="using alsa 1.0.x and sys/asoundlib.h"
@@ -5337,6 +5341,7 @@ if test "$_alsaver" ; then
_alsa1x=yes
_aosrc="$_aosrc ao_alsa.c"
_aomodules="alsa $_aomodules"
+ _def_alsa='#define CONFIG_ALSA 1'
_def_alsa1x="#define CONFIG_ALSA1X 1"
_def_alsa_asoundlib_h='#define HAVE_ALSA_ASOUNDLIB_H 1'
_res_comment="using alsa 1.0.x and alsa/asoundlib.h"
@@ -8366,6 +8371,7 @@ $_def_gtk2
$_def_ossaudio
$_def_ossaudio_devdsp
$_def_ossaudio_devmixer
+$_def_alsa
$_def_alsa5
$_def_alsa9
$_def_alsa1x
Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c (original)
+++ trunk/gui/cfg.c Thu Aug 7 01:19:29 2008
@@ -58,7 +58,7 @@ char * gtkAOOSSMixer;
char * gtkAOOSSMixerChannel;
char * gtkAOOSSDevice;
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
char * gtkAOALSAMixer;
char * gtkAOALSAMixerChannel;
char * gtkAOALSADevice;
@@ -139,7 +139,7 @@ static const m_option_t gui_opts[] =
{ "ao_oss_mixer_channel",>kAOOSSMixerChannel,CONF_TYPE_STRING,0,0,0,NULL },
{ "ao_oss_device",>kAOOSSDevice,CONF_TYPE_STRING,0,0,0,NULL },
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
{ "ao_alsa_mixer",>kAOALSAMixer,CONF_TYPE_STRING,0,0,0,NULL },
{ "ao_alsa_mixer_channel",>kAOALSAMixerChannel,CONF_TYPE_STRING,0,0,0,NULL },
{ "ao_alsa_device",>kAOALSADevice,CONF_TYPE_STRING,0,0,0,NULL },
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c (original)
+++ trunk/gui/interface.c Thu Aug 7 01:19:29 2008
@@ -842,7 +842,7 @@ int guiGetEvent( int type,char * arg )
free(tmp);
}
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if ( audio_driver_list && !gstrncmp( audio_driver_list[0],"alsa",4 ) )
{
char *tmp;
Modified: trunk/gui/mplayer/gtk/opts.c
==============================================================================
--- trunk/gui/mplayer/gtk/opts.c (original)
+++ trunk/gui/mplayer/gtk/opts.c Thu Aug 7 01:19:29 2008
@@ -1423,7 +1423,7 @@ GList *appendOSSMixerChannels(GList *l)
}
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
GList *appendALSADevices(GList *l) {
l = g_list_append(l, (gpointer)"default");
l = g_list_append(l, (gpointer)"hw=0.0");
@@ -1510,7 +1510,7 @@ void ShowAudioConfig() {
setGtkEntryText(CEAudioMixerChannel, gtkAOOSSMixerChannel);
}
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if (strncmp(ao_driver[0], "alsa", 4) == 0) {
setGtkEntryText(CEAudioDevice, gtkAOALSADevice);
setGtkEntryText(CEAudioMixer, gtkAOALSAMixer);
@@ -1552,7 +1552,7 @@ static void audioButton(GtkButton *butto
gtkAOOSSMixerChannel = gstrdup(getGtkEntryText(CEAudioMixerChannel));
}
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if (strncmp(ao_driver[0], "alsa", 4) == 0) {
gfree(>kAOALSADevice);
gtkAOALSADevice = gstrdup(getGtkEntryText(CEAudioDevice));
@@ -1616,7 +1616,7 @@ GtkWidget *create_AudioConfig() {
if (strncmp(ao_driver[0], "oss", 3) == 0)
items = appendOSSDevices(items);
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if (strncmp(ao_driver[0], "alsa", 4) == 0)
items = appendALSADevices(items);
#endif
@@ -1646,7 +1646,7 @@ GtkWidget *create_AudioConfig() {
if (strncmp(ao_driver[0], "oss", 3) == 0)
items = appendOSSMixers(items);
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if (strncmp(ao_driver[0], "alsa", 4) == 0)
items = appendALSAMixers(items);
#endif
@@ -1668,7 +1668,7 @@ GtkWidget *create_AudioConfig() {
if (strncmp(ao_driver[0], "oss", 3) == 0)
items = appendOSSMixerChannels(items);
#endif
-#if defined(CONFIG_ALSA9) || defined (CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if (strncmp(ao_driver[0], "alsa", 4) == 0)
items = appendALSAMixerChannels(items);
#endif
Modified: trunk/libao2/audio_out.c
==============================================================================
--- trunk/libao2/audio_out.c (original)
+++ trunk/libao2/audio_out.c Thu Aug 7 01:19:29 2008
@@ -51,7 +51,7 @@ const ao_functions_t* const audio_out_dr
#ifdef CONFIG_OSS_AUDIO
&audio_out_oss,
#endif
-#if defined (CONFIG_ALSA1X) || defined (CONFIG_ALSA9)
+#ifdef CONFIG_ALSA
&audio_out_alsa,
#endif
#ifdef CONFIG_ALSA5
Modified: trunk/stream/audio_in.c
==============================================================================
--- trunk/stream/audio_in.c (original)
+++ trunk/stream/audio_in.c Thu Aug 7 01:19:29 2008
@@ -23,7 +23,7 @@ int audio_in_init(audio_in_t *ai, int ty
ai->samplesize = -1;
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
ai->alsa.handle = NULL;
ai->alsa.log = NULL;
@@ -45,7 +45,7 @@ int audio_in_setup(audio_in_t *ai)
{
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
if (ai_alsa_init(ai) < 0) return -1;
ai->setup = 1;
@@ -65,7 +65,7 @@ int audio_in_setup(audio_in_t *ai)
int audio_in_set_samplerate(audio_in_t *ai, int rate)
{
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
ai->req_samplerate = rate;
if (!ai->setup) return 0;
@@ -87,7 +87,7 @@ int audio_in_set_samplerate(audio_in_t *
int audio_in_set_channels(audio_in_t *ai, int channels)
{
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
ai->req_channels = channels;
if (!ai->setup) return 0;
@@ -108,12 +108,12 @@ int audio_in_set_channels(audio_in_t *ai
int audio_in_set_device(audio_in_t *ai, char *device)
{
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
int i;
#endif
if (ai->setup) return -1;
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
if (ai->alsa.device) free(ai->alsa.device);
ai->alsa.device = strdup(device);
@@ -138,7 +138,7 @@ int audio_in_uninit(audio_in_t *ai)
{
if (ai->setup) {
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
if (ai->alsa.log)
snd_output_close(ai->alsa.log);
@@ -162,7 +162,7 @@ int audio_in_uninit(audio_in_t *ai)
int audio_in_start_capture(audio_in_t *ai)
{
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
return snd_pcm_start(ai->alsa.handle);
#endif
@@ -180,7 +180,7 @@ int audio_in_read_chunk(audio_in_t *ai,
int ret;
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
ret = snd_pcm_readi(ai->alsa.handle, buffer, ai->alsa.chunk_size);
if (ret != ai->alsa.chunk_size) {
Modified: trunk/stream/audio_in.h
==============================================================================
--- trunk/stream/audio_in.h (original)
+++ trunk/stream/audio_in.h Thu Aug 7 01:19:29 2008
@@ -6,7 +6,7 @@
#include "config.h"
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
#include <alsa/asoundlib.h>
typedef struct {
@@ -43,7 +43,7 @@ typedef struct
int bytes_per_sample;
int samplesize;
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
ai_alsa_t alsa;
#endif
#ifdef CONFIG_OSS_AUDIO
@@ -60,7 +60,7 @@ int audio_in_uninit(audio_in_t *ai);
int audio_in_start_capture(audio_in_t *ai);
int audio_in_read_chunk(audio_in_t *ai, unsigned char *buffer);
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
int ai_alsa_setup(audio_in_t *ai);
int ai_alsa_init(audio_in_t *ai);
int ai_alsa_xrun(audio_in_t *ai);
Modified: trunk/stream/stream_radio.c
==============================================================================
--- trunk/stream/stream_radio.c (original)
+++ trunk/stream/stream_radio.c Thu Aug 7 01:19:29 2008
@@ -715,7 +715,7 @@ static int read_chunk(audio_in_t *ai, un
int ret;
switch (ai->type) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
case AUDIO_IN_ALSA:
//device opened in non-blocking mode
ret = snd_pcm_readi(ai->alsa.handle, buffer, ai->alsa.chunk_size);
@@ -836,7 +836,7 @@ static int init_audio(radio_priv_t *priv
priv->do_capture=1;
mp_msg(MSGT_RADIO,MSGL_V,MSGTR_RADIO_CaptureStarting);
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
while ((tmp = strrchr(priv->radio_param->adevice, '='))){
tmp[0] = ':';
//adevice option looks like ALSA device name. Switching to ALSA
@@ -862,7 +862,7 @@ static int init_audio(radio_priv_t *priv
if(is_oss)
ioctl(priv->audio_in.oss.audio_fd, SNDCTL_DSP_NONBLOCK, 0);
#endif
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if(!is_oss)
snd_pcm_nonblock(priv->audio_in.alsa.handle,1);
#endif
Modified: trunk/stream/tvi_v4l.c
==============================================================================
--- trunk/stream/tvi_v4l.c (original)
+++ trunk/stream/tvi_v4l.c Thu Aug 7 01:19:29 2008
@@ -627,7 +627,7 @@ static int init(priv_t *priv)
/* audio init */
if (!priv->tv_param->noaudio) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if (priv->tv_param->alsa)
audio_in_init(&priv->audio_in, AUDIO_IN_ALSA);
else
Modified: trunk/stream/tvi_v4l2.c
==============================================================================
--- trunk/stream/tvi_v4l2.c (original)
+++ trunk/stream/tvi_v4l2.c Thu Aug 7 01:19:29 2008
@@ -378,7 +378,7 @@ static void init_audio(priv_t *priv)
if (priv->audio_initialized) return;
if (!priv->tv_param->noaudio) {
-#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
+#ifdef CONFIG_ALSA
if (priv->tv_param->alsa)
audio_in_init(&priv->audio_in, AUDIO_IN_ALSA);
else
1
0
r27420 - in trunk: configure input/input.c libao2/audio_out.c libmpcodecs/ad_qtaudio.c libmpcodecs/vd_qtvideo.c libmpdemux/demux_mov.c libvo/video_out.c
by diego 06 Aug '08
by diego 06 Aug '08
06 Aug '08
Author: diego
Date: Wed Aug 6 09:42:26 2008
New Revision: 27420
Log:
Rename all preprocessor directives related to Apple / Mac OS X.
Switch them from a HAVE_ to a CONFIG_ prefix.
Modified:
trunk/configure
trunk/input/input.c
trunk/libao2/audio_out.c
trunk/libmpcodecs/ad_qtaudio.c
trunk/libmpcodecs/vd_qtvideo.c
trunk/libmpdemux/demux_mov.c
trunk/libvo/video_out.c
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Wed Aug 6 09:42:26 2008
@@ -3577,21 +3577,21 @@ EOF
if cc_check -framework Carbon -framework QuickTime -framework CoreAudio; then
_ld_extra="$_ld_extra -framework Carbon -framework QuickTime -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
_coreaudio=yes
- _def_coreaudio='#define HAVE_COREAUDIO 1'
+ _def_coreaudio='#define CONFIG_COREAUDIO 1'
_aosrc="$_aosrc ao_macosx.c"
_aomodules="macosx $_aomodules"
- _def_quartz='#define HAVE_QUARTZ 1'
+ _def_quartz='#define CONFIG_QUARTZ 1'
_vosrc="$_vosrc vo_quartz.c"
_vomodules="quartz $_vomodules"
- _def_quicktime='#define HAVE_QUICKTIME 1'
+ _def_quicktime='#define CONFIG_QUICKTIME 1'
else
_macosx=no
_coreaudio=no
- _def_coreaudio='#undef HAVE_COREAUDIO'
+ _def_coreaudio='#undef CONFIG_COREAUDIO'
_noaomodules="macosx $_noaomodules"
- _def_quartz='#undef HAVE_QUARTZ'
+ _def_quartz='#undef CONFIG_QUARTZ'
_novomodules="quartz $_novomodules"
- _def_quicktime='#undef HAVE_QUICKTIME'
+ _def_quicktime='#undef CONFIG_QUICKTIME'
fi
cat > $TMPC <<EOF
#include <Carbon/Carbon.h>
@@ -3602,11 +3602,11 @@ EOF
_vosrc="$_vosrc vo_macosx.m"
_vomodules="macosx $_vomodules"
_ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL"
- _def_corevideo='#define HAVE_COREVIDEO 1'
+ _def_corevideo='#define CONFIG_COREVIDEO 1'
_corevideo=yes
else
_novomodules="macosx $_novomodules"
- _def_corevideo='#undef HAVE_COREVIDEO'
+ _def_corevideo='#undef CONFIG_COREVIDEO'
_corevideo=no
fi
fi
@@ -3667,10 +3667,10 @@ EOF
cc_check -framework IOKit && tmp_run && _apple_remote=yes
fi
if test "$_apple_remote" = yes ; then
- _def_apple_remote='#define HAVE_APPLE_REMOTE 1'
+ _def_apple_remote='#define CONFIG_APPLE_REMOTE 1'
_ld_extra="$_ld_extra -framework IOKit"
else
- _def_apple_remote='#undef HAVE_APPLE_REMOTE'
+ _def_apple_remote='#undef CONFIG_APPLE_REMOTE'
fi
echores "$_apple_remote"
@@ -3693,9 +3693,9 @@ EOF
cc_check && tmp_run && _apple_ir=yes
fi
if test "$_apple_ir" = yes ; then
- _def_apple_ir='#define HAVE_APPLE_IR 1'
+ _def_apple_ir='#define CONFIG_APPLE_IR 1'
else
- _def_apple_ir='#undef HAVE_APPLE_IR'
+ _def_apple_ir='#undef CONFIG_APPLE_IR'
fi
echores "$_apple_ir"
fi #if linux
Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c (original)
+++ trunk/input/input.c Wed Aug 6 09:42:26 2008
@@ -436,7 +436,7 @@ static const mp_cmd_bind_t def_cmd_binds
{ { JOY_BTN2, 0 }, "volume 1"},
{ { JOY_BTN3, 0 }, "volume -1"},
#endif
-#ifdef HAVE_APPLE_REMOTE
+#ifdef CONFIG_APPLE_REMOTE
{ { AR_PLAY, 0}, "pause" },
{ { AR_PLAY_HOLD, 0}, "quit" },
{ { AR_NEXT, 0 }, "seek 30" },
@@ -568,7 +568,7 @@ static int use_joystick = 1, use_lirc =
static char* config_file = "input.conf";
/* Apple Remote */
-#ifdef HAVE_APPLE_REMOTE
+#ifdef CONFIG_APPLE_REMOTE
static int use_ar = 1;
#else
static int use_ar = 0;
@@ -1759,7 +1759,7 @@ mp_input_init(int use_gui) {
}
#endif
-#ifdef HAVE_APPLE_REMOTE
+#ifdef CONFIG_APPLE_REMOTE
if(use_ar) {
if(mp_input_ar_init() < 0)
mp_msg(MSGT_INPUT,MSGL_ERR,MSGTR_INPUT_INPUT_ErrCantInitAppleRemote);
@@ -1768,7 +1768,7 @@ mp_input_init(int use_gui) {
}
#endif
-#ifdef HAVE_APPLE_IR
+#ifdef CONFIG_APPLE_IR
if(use_ar) {
int fd = mp_input_appleir_init(ar_dev);
if(fd < 0)
Modified: trunk/libao2/audio_out.c
==============================================================================
--- trunk/libao2/audio_out.c (original)
+++ trunk/libao2/audio_out.c Wed Aug 6 09:42:26 2008
@@ -45,7 +45,7 @@ const ao_functions_t* const audio_out_dr
#ifdef CONFIG_WIN32WAVEOUT
&audio_out_win32,
#endif
-#ifdef HAVE_COREAUDIO
+#ifdef CONFIG_COREAUDIO
&audio_out_macosx,
#endif
#ifdef CONFIG_OSS_AUDIO
Modified: trunk/libmpcodecs/ad_qtaudio.c
==============================================================================
--- trunk/libmpcodecs/ad_qtaudio.c (original)
+++ trunk/libmpcodecs/ad_qtaudio.c Wed Aug 6 09:42:26 2008
@@ -5,7 +5,7 @@
#include "config.h"
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
#include <QuickTime/QuickTimeComponents.h>
#endif
@@ -30,7 +30,7 @@ static ad_info_t info = {
LIBAD_EXTERN(qtaudio)
-#ifndef HAVE_QUICKTIME
+#ifndef CONFIG_QUICKTIME
typedef struct OpaqueSoundConverter* SoundConverter;
typedef unsigned long OSType;
typedef unsigned long UnsignedFixed;
@@ -164,7 +164,7 @@ static int loader_init()
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"loader_init DONE???\n");
return 0;
}
-#endif /* #ifndef HAVE_QUICKTIME */
+#endif /* #ifndef CONFIG_QUICKTIME */
static SoundConverter myConverter = NULL;
static SoundComponentData InputFormatInfo,OutputFormatInfo;
@@ -180,7 +180,7 @@ static int preinit(sh_audio_t *sh){
unsigned long WantedBufferSize=0; //the size you want your buffers to be
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
EnterMovies();
#else
if(loader_init()) return 0; // failed to load DLL
@@ -280,7 +280,7 @@ static void uninit(sh_audio_t *sh){
// FreeLibrary( qtime_qts );
// qtime_qts = NULL;
// printf("qt dll loader uninit done\n");
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
ExitMovies();
#endif
}
Modified: trunk/libmpcodecs/vd_qtvideo.c
==============================================================================
--- trunk/libmpcodecs/vd_qtvideo.c (original)
+++ trunk/libmpcodecs/vd_qtvideo.c Wed Aug 6 09:42:26 2008
@@ -4,7 +4,7 @@
#include "config.h"
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
#include <QuickTime/ImageCodec.h>
#define dump_ImageDescription(x)
#endif
@@ -30,7 +30,7 @@ LIBVD_EXTERN(qtvideo)
#include "mpbswap.h"
-#ifndef HAVE_QUICKTIME
+#ifndef CONFIG_QUICKTIME
#include "loader/qtx/qtxsdk/components.h"
HMODULE WINAPI LoadLibraryA(LPCSTR);
@@ -53,7 +53,7 @@ static ImageDescriptionHandle framedescH
static HINSTANCE qtime_qts; // handle to the preloaded quicktime.qts
static HMODULE handler;
-#ifndef HAVE_QUICKTIME
+#ifndef CONFIG_QUICKTIME
static Component (*FindNextComponent)(Component prev,ComponentDescription* desc);
static OSErr (*GetComponentInfo)(Component prev,ComponentDescription* desc,Handle h1,Handle h2,Handle h3);
static long (*CountComponents)(ComponentDescription* desc);
@@ -88,7 +88,7 @@ static OSErr (*QTNewGWorldF
void *baseAddr,
long rowBytes);
static OSErr (*NewHandleClear)(Size byteCount);
-#endif /* #ifndef HAVE_QUICKTIME */
+#endif /* #ifndef CONFIG_QUICKTIME */
// to set/get/query special features/parameters
static int control(sh_video_t *sh,int cmd,void* arg,...){
@@ -107,7 +107,7 @@ static int init(sh_video_t *sh){
ImageSubCodecDecompressCapabilities icap; // for ImageCodecInitialize()
codec_initialized = 0;
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
EnterMovies();
#else
@@ -154,7 +154,7 @@ static int init(sh_video_t *sh){
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"InitializeQTML returned %li\n",result);
// result=EnterMovies();
// printf("EnterMovies->%d\n",result);
-#endif /* HAVE_QUICKTIME */
+#endif /* CONFIG_QUICKTIME */
#if 0
memset(&desc,0,sizeof(desc));
@@ -293,7 +293,7 @@ static int init(sh_video_t *sh){
// uninit driver
static void uninit(sh_video_t *sh){
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
ExitMovies();
#endif
}
Modified: trunk/libmpdemux/demux_mov.c
==============================================================================
--- trunk/libmpdemux/demux_mov.c (original)
+++ trunk/libmpdemux/demux_mov.c Wed Aug 6 09:42:26 2008
@@ -25,7 +25,7 @@
#include "config.h"
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
#include <QuickTime/QuickTime.h>
#include <QuickTime/ImageCompression.h>
#include <QuickTime/ImageCodec.h>
Modified: trunk/libvo/video_out.c
==============================================================================
--- trunk/libvo/video_out.c (original)
+++ trunk/libvo/video_out.c Wed Aug 6 09:42:26 2008
@@ -125,10 +125,10 @@ const vo_functions_t* const video_out_dr
#ifdef CONFIG_DIRECTX
&video_out_directx,
#endif
-#ifdef HAVE_COREVIDEO
+#ifdef CONFIG_COREVIDEO
&video_out_macosx,
#endif
-#ifdef HAVE_QUARTZ
+#ifdef CONFIG_QUARTZ
&video_out_quartz,
#endif
#ifdef CONFIG_XMGA
1
0