[MPlayer-cvslog] CVS: main configure, 1.1127, 1.1128 cfg-common.h, 1.152, 1.153
Diego Biurrun CVS
syncmail at mplayerhq.hu
Sun Jan 22 19:11:37 CET 2006
- Previous message: [MPlayer-cvslog] CVS: main m_option.h,1.12,1.13
- Next message: [MPlayer-cvslog] CVS: main/libmpcodecs Makefile, 1.156, 1.157 vf.c, 1.121, 1.122 vf_pp.c, 1.34, 1.35 vd_ffmpeg.c, 1.156, 1.157
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv22257
Modified Files:
configure cfg-common.h
Log Message:
proper support for shared libpostproc
patch by Nico Sabbi, fixes and consistency cleanups by me
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1127
retrieving revision 1.1128
diff -u -r1.1127 -r1.1128
--- configure 22 Jan 2006 01:32:09 -0000 1.1127
+++ configure 22 Jan 2006 18:11:34 -0000 1.1128
@@ -240,8 +240,10 @@
--enable-opendivx enable _old_ OpenDivx codec [disable]
--disable-libavcodec disable libavcodec [autodetect]
--disable-libavformat disable libavformat [autodetect]
+ --disable-libpostproc disable libpostproc [autodetect]
--disable-libavcodec_so disable shared libavcodec [autodetect]
--disable-libavformat_so disable shared libavformat [autodetect]
+ --disable-libpostproc_so disable shared libpostproc [autodetect]
--enable-libfame enable libfame realtime encoder [autodetect]
--disable-internal-tremor do not build internal OggVorbis support [enabled]
--enable-tremor-low build with lower accuracy internal tremor [disabled]
@@ -1468,6 +1470,8 @@
_libavcodec_so=auto
_libavformat=auto
_libavformat_so=auto
+_libpostproc=auto
+_libpostproc_so=auto
_fame=auto
_mp1e=no
_mencoder=yes
@@ -1818,6 +1822,10 @@
--disable-libavformat) _libavformat=no ;;
--enable-libavformat_so) _libavformat_so=yes ;;
--disable-libavformat_so) _libavformat_so=no ;;
+ --enable-libpostproc) _libpostproc=yes ;;
+ --disable-libpostproc) _libpostproc=no ;;
+ --enable-libpostproc_so) _libpostproc_so=yes ;;
+ --disable-libpostproc_so) _libpostproc_so=no ;;
--enable-libfame) _fame=yes ;;
--disable-libfame) _fame=no ;;
--enable-lirc) _lirc=yes ;;
@@ -6047,10 +6055,15 @@
fi
echores "$_libavformat"
-_def_haveffpostprocess='no'
+echocheck "FFmpeg libpostproc (static)"
+if test "$_libpostproc" = auto ; then
+_libpostproc=no
if test -d libavcodec && test -f libavcodec/libpostproc/postprocess.h ; then
- _def_haveffpostprocess='yes'
+ _libpostproc='yes'
fi
+fi
+echores "$_libpostproc"
+
if test "$_libavcodec" != yes ; then
echocheck "FFmpeg libavcodec (dynamic)"
@@ -6059,7 +6072,6 @@
_res_comment="libavcodec.so is broken/obsolete"
# FIXME : check for avcodec_find_encoder_by_name() for mencoder
cat > $TMPC << EOF
-#define FF_POSTPROCESS 1
#include <ffmpeg/avcodec.h>
int main(void) {
avcodec_find_encoder_by_name("");
@@ -6087,14 +6099,32 @@
echores "$_libavformat_so"
fi
+if test "$_libpostproc" != yes ; then
+echocheck "FFmpeg libpostproc (dynamic)"
+if test "$_libpostproc_so" = auto ; then
+ _libpostproc_so=no
+ cat > $TMPC << EOF
+ #define USE_LIBPOSTPROC 1
+ #include <inttypes.h>
+ #include <postproc/postprocess.h>
+ int main(void) {
+ pp_get_mode_by_name_and_quality("de", 0);
+ return 0;}
+EOF
+ if cc_check -lpostproc $_ld_lm ; then
+ _libpostproc_so=yes
+ _res_comment="using libpostproc.so, but static libpostproc is recommended"
+ fi
+fi
+echores "$_libpostproc_so"
+fi
+
_def_libavcodec='#undef USE_LIBAVCODEC'
_def_libavcodec_so='#undef USE_LIBAVCODEC_SO'
-_def_ffpostprocess='#undef FF_POSTPROCESS'
if test "$_libavcodec" = yes ; then
_def_libavcodec='#define USE_LIBAVCODEC 1'
_ld_libavcodec='libavcodec/libavcodec.a'
_dep_libavcodec='libavcodec/libavcodec.a'
- _def_ffpostprocess='#define FF_POSTPROCESS 1'
_codecmodules="libavcodec $_codecmodules"
if test "$_libavutil" = yes; then
_ld_libavutil='libavutil/libavutil.a'
@@ -6103,7 +6133,6 @@
elif test "$_libavcodec_so" = yes ; then
_def_libavcodec='#define USE_LIBAVCODEC 1'
_def_libavcodec_so='#define USE_LIBAVCODEC_SO 1'
- _def_ffpostprocess='#define FF_POSTPROCESS 1'
_ld_libavcodec='-lavcodec'
_codecmodules="libavcodec.so $_codecmodules"
else
@@ -6130,6 +6159,17 @@
fi
fi
+_def_libpostproc='#undef USE_LIBPOSTPROC'
+_def_libpostproc_so='#undef USE_LIBPOSTPROC_SO'
+if test "$_libpostproc" = yes ; then
+ _def_libpostproc='#define USE_LIBPOSTPROC 1'
+else
+ if test "$_libpostproc_so" = yes ; then
+ _def_libpostproc_so='#define USE_LIBPOSTPROC_SO 1'
+ _ld_libpostproc='-lpostproc'
+ fi
+fi
+
echocheck "amr narrowband"
if test "$_amr_nb" = auto ; then
_amr_nb=no
@@ -7143,7 +7183,6 @@
MUSEPACK = $_musepack
UNRARLIB = $_unrarlib
-HAVE_FFPOSTPROCESS = $_def_haveffpostprocess
PNG = $_mkf_png
JPEG = $_mkf_jpg
GIF = $_mkf_gif
@@ -7215,12 +7254,14 @@
DS_DEP = $_dep_dshow
DS_LIB = $_ld_dshow
AV_DEP = $_dep_libavutil $_dep_libavcodec $_dep_libavformat
-AV_LIB = $_ld_libavformat $_ld_libavcodec $_ld_libavutil
+AV_LIB = $_ld_libavutil $_ld_libavcodec $_ld_libavformat $_ld_libpostproc
CONFIG_LIBAVUTIL = $_libavutil
CONFIG_LIBAVCODEC = $_libavcodec
CONFIG_LIBAVCODEC_SO = $_libavcodec_so
CONFIG_LIBAVFORMAT = $_libavformat
CONFIG_LIBAVFORMAT_SO = $_libavformat_so
+CONFIG_LIBPOSTPROC = $_libpostproc
+CONFIG_LIBPOSTPROC_SO = $_libpostproc_so
ZORAN = $_zr
FAME = $_fame
FAME_LIB = $_ld_fame
@@ -7587,7 +7628,8 @@
#define MPEG12_POSTPROC 1
/* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */
-$_def_ffpostprocess
+$_def_libpostproc
+$_def_libpostproc_so
/* Define to include support for OpenDivx postprocessing */
$_def_odivx_postprocess
Index: cfg-common.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-common.h,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -r1.152 -r1.153
--- cfg-common.h 17 Dec 2005 18:10:50 -0000 1.152
+++ cfg-common.h 22 Jan 2006 18:11:34 -0000 1.153
@@ -192,7 +192,7 @@
{"oldpp", "MPlayer was compiled without the OpenDivX library.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
#endif
{"npp", "-npp has been removed, use -vf pp and read the fine manual.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
-#ifdef FF_POSTPROCESS
+#if defined(USE_LIBPOSTPROC) || defined(USE_LIBPOSTPROC_SO)
{"pphelp", &pp_help, CONF_TYPE_PRINT_INDIRECT, CONF_NOCFG, 0, 0, NULL},
#endif
- Previous message: [MPlayer-cvslog] CVS: main m_option.h,1.12,1.13
- Next message: [MPlayer-cvslog] CVS: main/libmpcodecs Makefile, 1.156, 1.157 vf.c, 1.121, 1.122 vf_pp.c, 1.34, 1.35 vd_ffmpeg.c, 1.156, 1.157
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list