⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 ffmpeg源码分析
💻
📖 第 1 页 / 共 4 页
字号:
fiif test "$sdl" = "yes" ; then  echo "CONFIG_SDL=yes" >> config.mak  echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak  echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.makfiif test "$texi2html" = "yes"; then  echo "BUILD_DOC=yes" >> config.makfiif test "$have_lrintf" = "yes" ; then  echo "#define HAVE_LRINTF 1" >> $TMPHfiif test "$vhook" = "yes" ; then  echo "BUILD_VHOOK=yes" >> config.mak  echo "#define HAVE_VHOOK 1" >> $TMPHfipp_version=`grep '#define LIBPOSTPROC_VERSION ' "$source_path/libavcodec/libpostproc/postprocess.h" | sed 's/[^0-9\.]//g'`lavc_version=`grep '#define LIBAVCODEC_VERSION ' "$source_path/libavcodec/avcodec.h" | sed 's/[^0-9\.]//g'`lavf_version=`grep '#define LIBAVFORMAT_VERSION ' "$source_path/libavformat/avformat.h" | sed 's/[^0-9\.]//g'`lavu_version=`grep '#define LIBAVUTIL_VERSION ' "$source_path/libavutil/avutil.h" | sed 's/[^0-9\.]//g'`if test "$lshared" = "yes" ; then  echo "#define BUILD_SHARED_AV 1" >> $TMPH  echo "BUILD_SHARED=yes" >> config.mak  echo "PIC=-fPIC -DPIC" >> config.mak  echo "SPPMAJOR=${lavc_version%%.*}" >> config.mak  echo "SPPVERSION=$lavc_version" >> config.mak  echo "LAVCMAJOR=${lavc_version%%.*}" >> config.mak  echo "LAVCVERSION=$lavc_version" >> config.mak  echo "LAVFMAJOR=${lavf_version%%.*}" >> config.mak  echo "LAVFVERSION=$lavf_version" >> config.mak  echo "LAVUMAJOR=${lavu_version%%.*}" >> config.mak  echo "LAVUVERSION=$lavu_version" >> config.mak  echo "SLIBNAME=${SLIBNAME}" >> config.mak  echo "SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}" >> config.mak  echo "SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}" >> config.makfiecho "EXTRALIBS=$extralibs" >> config.makversion=`grep '#define FFMPEG_VERSION ' "$source_path/libavcodec/avcodec.h" | cut -d '"' -f 2`echo "VERSION=$version" >>config.mak# If you do not want to use encoders, disable them.echo "#define CONFIG_ENCODERS 1" >> $TMPHecho "CONFIG_ENCODERS=yes" >> config.mak# If you do not want to use decoders, disable them.echo "#define CONFIG_DECODERS 1" >> $TMPHecho "CONFIG_DECODERS=yes" >> config.mak# muxersif test "$muxers" = "yes" ; then  echo "#define CONFIG_MUXERS 1" >> $TMPH  echo "CONFIG_MUXERS=yes" >> config.makfi# demuxersif test "$demuxers" = "yes" ; then  echo "#define CONFIG_DEMUXERS 1" >> $TMPH  echo "CONFIG_DEMUXERS=yes" >> config.makfi# AC3if test "$a52" = "yes" ; then  echo "#define CONFIG_AC3 1" >> $TMPH  echo "CONFIG_AC3=yes" >> config.mak  if test "$a52bin" = "yes" ; then    echo "#define CONFIG_A52BIN 1" >> $TMPH    echo "CONFIG_A52BIN=yes" >> config.mak  fifi# DTSif test "$dts" = "yes" ; then  echo "#define CONFIG_DTS 1" >> $TMPH  echo "CONFIG_DTS=yes" >> config.makfi# PPif test "$pp" = "yes" ; then  echo "#define CONFIG_PP 1" >> $TMPH  echo "CONFIG_PP=yes" >> config.makfi# MPEG audio high precision modeif test "$mpegaudio_hp" = "yes" ; then  echo "#define CONFIG_MPEGAUDIO_HP 1" >> $TMPHfiif test "$v4l" = "yes" ; then  echo "#define CONFIG_VIDEO4LINUX 1" >> $TMPH  echo "CONFIG_VIDEO4LINUX=yes" >> config.makfiif test "$v4l2" = "yes" ; then  echo "#define CONFIG_VIDEO4LINUX2 1" >> $TMPH  echo "CONFIG_VIDEO4LINUX2=yes" >> config.makfiif test "$bktr" = "yes" ; then  echo "#define CONFIG_BKTR 1" >> $TMPH  echo "CONFIG_BKTR=yes" >> config.makfiif test "$dv1394" = "yes" ; then  echo "#define CONFIG_DV1394 1" >> $TMPH  echo "CONFIG_DV1394=yes" >> config.makfiif test "$dc1394" = "yes" ; then  echo "#define CONFIG_DC1394 1" >> $TMPH  echo "CONFIG_DC1394=yes" >> config.makfiif test "$dlopen" = "yes" ; then  echo "#define CONFIG_HAVE_DLOPEN 1" >> $TMPHfiif test "$dlfcn" = "yes" ; then  echo "#define CONFIG_HAVE_DLFCN 1" >> $TMPHfiif test "$audio_oss" = "yes" ; then  echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH  echo "CONFIG_AUDIO_OSS=yes" >> config.makfiif test "$audio_beos" = "yes" ; then  echo "#define CONFIG_AUDIO_BEOS 1" >> $TMPH  echo "CONFIG_AUDIO_BEOS=yes" >> config.makfiif test "$network" = "yes" ; then  echo "#define CONFIG_NETWORK 1" >> $TMPH  echo "CONFIG_NETWORK=yes" >> config.makfiif test "$ipv6" = "yes" ; then  echo "#define CONFIG_IPV6 1" >> $TMPHfiif test "$zlib" = "yes" ; then  echo "#define CONFIG_ZLIB 1" >> $TMPH  echo "CONFIG_ZLIB=yes" >> config.makfiif test "$lzo" = "yes" ; then  echo "#define CONFIG_LZO 1" >> $TMPH  echo "CONFIG_LZO=yes" >> config.makfiif test "$libgsm" = "yes" ; then  echo "#define CONFIG_LIBGSM 1" >> $TMPH  echo "CONFIG_LIBGSM=yes" >> config.makfiif test "$mp3lame" = "yes" ; then  echo "#define CONFIG_MP3LAME 1" >> $TMPH  echo "CONFIG_MP3LAME=yes" >> config.makfiif test "$libogg" = "yes" ; then  echo "#define CONFIG_LIBOGG 1" >> $TMPH  echo "CONFIG_LIBOGG=yes" >> config.makfiif test "$vorbis" = "yes" ; then  echo "#define CONFIG_LIBVORBIS 1" >> $TMPH  echo "CONFIG_LIBVORBIS=yes" >> config.makfiif test "$theora" = "yes" ; then  echo "#define CONFIG_LIBTHEORA 1" >> $TMPH  echo "CONFIG_LIBTHEORA=yes" >> config.makfiif test "$faad" = "yes" ; then  echo "#define CONFIG_FAAD 1" >> $TMPH  echo "CONFIG_FAAD=yes" >> config.makfiif test "$faadbin" = "yes" ; then  echo "#define CONFIG_FAADBIN 1" >> $TMPH  echo "CONFIG_FAADBIN=yes" >> config.makfiif test "$faac" = "yes" ; then  echo "#define CONFIG_FAAC 1" >> $TMPH  echo "CONFIG_FAAC=yes" >> config.makfiif test "$xvid" = "yes" ; then  echo "#define CONFIG_XVID 1" >> $TMPH  echo "CONFIG_XVID=yes" >> config.makfiif test "$x264" = "yes" ; then  echo "#define CONFIG_X264 1" >> $TMPH  echo "CONFIG_X264=yes" >> config.makfiif test "$mingw32" = "yes" ; then  echo "#define CONFIG_WIN32 1" >> $TMPH  echo "CONFIG_WIN32=yes" >> config.mak  echo "HAVE_W32THREADS=yes" >> config.mak  echo "#define HAVE_W32THREADS 1" >> $TMPH  echo "#define HAVE_THREADS 1" >> $TMPH  echo "#ifndef __MINGW32__" >> $TMPH  echo "#define __MINGW32__ 1" >> $TMPH  echo "#endif" >> $TMPHfiif test "$mingwce" = "yes" ; then  echo "#define CONFIG_WIN32 1" >> $TMPH  echo "CONFIG_WIN32=yes" >> config.mak  echo "#define CONFIG_WINCE 1" >> $TMPH  echo "CONFIG_WINCE=yes" >> config.mak  echo "#ifndef __MINGW32__" >> $TMPH  echo "#define __MINGW32__ 1" >> $TMPH  echo "#endif" >> $TMPHfiif test "$os2" = "yes" ; then  echo "#define CONFIG_OS2 1" >> $TMPH  echo "CONFIG_OS2=yes" >> config.mak  echo "HAVE_OS2THREADS=yes" >> config.mak  echo "#define HAVE_OS2THREADS 1" >> $TMPH  echo "#define HAVE_THREADS 1" >> $TMPHfiif test "$TARGET_OS" = "SunOS" ; then  echo "#define CONFIG_SUNOS 1" >> $TMPHfiif test "$TARGET_OS" = "BeOS" ; then  echo "HAVE_BEOSTHREADS=yes" >> config.mak  echo "#define HAVE_BEOSTHREADS 1" >> $TMPH  echo "#define HAVE_THREADS 1" >> $TMPHfiif test "$darwin" = "yes"; then  echo "#define CONFIG_DARWIN 1"  >> $TMPH  echo "CONFIG_DARWIN=yes" >> config.makfiif test "$_malloc_h" = "yes" ; then  echo "#define HAVE_MALLOC_H 1" >> $TMPHelse  echo "#undef  HAVE_MALLOC_H" >> $TMPHfiif test "$_memalign" = "yes" ; then  echo "#define HAVE_MEMALIGN 1" >> $TMPHelse  echo "#undef  HAVE_MEMALIGN" >> $TMPHfiif test "$memalignhack" = "yes" ; then  echo "#define MEMALIGN_HACK 1" >> $TMPHfiif test "$netserver" = "yes" ; then  echo "#define CONFIG_BEOS_NETSERVER 1" >> $TMPH  echo "CONFIG_BEOS_NETSERVER=yes" >> config.makfiif test "$need_inet_aton" = "yes" ; then  echo "NEED_INET_ATON=yes" >> config.makfiif test "$simpleidct" = "yes" ; then  echo "#define SIMPLE_IDCT 1" >> $TMPHfiif test "$protocols" = "yes" ; then  echo "#define CONFIG_PROTOCOLS 1" >> $TMPH  echo "CONFIG_PROTOCOLS=yes" >> config.makfiif test "$ffserver" = "yes" ; then  echo "#define CONFIG_FFSERVER 1" >> $TMPH  echo "CONFIG_FFSERVER=yes" >> config.makfiif test "$ffplay" = "yes" ; then  echo "CONFIG_FFPLAY=yes" >> config.makfiif test "$gpl" = "yes" ; then  echo "#define CONFIG_GPL 1" >> $TMPH  echo "CONFIG_GPL=yes" >> config.makfiecho "#define restrict $_restrict" >> $TMPHif test "$optimize" = "small"; then  echo "#define always_inline"  >> $TMPHfi# build tree in object directory if source path is different from current oneif test "$source_path_used" = "yes" ; then    DIRS="\         doc \         libavformat \         libavcodec \         libavcodec/alpha \         libavcodec/armv4l \         libavcodec/i386 \         libavcodec/sparc \         libavcodec/mlib \         libavcodec/ppc \         libavcodec/liba52 \         libavcodec/libpostproc \         libavutil \         tests \         vhook \         "    FILES="\          Makefile \          libavformat/Makefile \          libavcodec/Makefile \          libavcodec/libpostproc/Makefile \          libavutil/Makefile \          tests/Makefile \          vhook/Makefile \          doc/Makefile \          doc/texi2pod.pl \          "    for dir in $DIRS ; do            mkdir -p $dir    done    for f in $FILES ; do        ln -sf "$source_path/$f" $f    donefiecho "SRC_PATH=$source_path" >> config.makecho "BUILD_ROOT=$PWD" >> config.makif test "$amr_wb" = "yes" ; then  echo "#define AMR_WB 1" >> $TMPH  echo "AMR_WB=yes" >> config.mak  echo  echo "AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204"  echo "V5.1.0 from "  echo "http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip"  echo "and extracted the source to libavcodec/amrwb_float"  echofiif test "$amr_nb" = "yes" ; then  echo "#define AMR_NB 1" >> $TMPH  echo "AMR_NB=yes" >> config.mak  echoif test "$amr_nb_fixed" = "yes" ; then  echo "AMR_NB_FIXED=yes" >> config.mak  echo "#define AMR_NB_FIXED 1" >> $TMPH  echo "AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073 "  echo "REL-5 version 5.1.0 from "  echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26073-5??.zip"  echo "and extracted src to libavcodec/amr"  echo "You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile."  echo "i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO"  echoelse  echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104"  echo "REL-5 V5.1.0 from "  echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip"  echo "and extracted the source to libavcodec/amr_float"  echo "and if u try this on an alpha, u may need to change Word32 to int in amr/typedef.h"  echofiif test "$amr_if2" = "yes" ; then  echo "AMR_CFLAGS=-DIF2=1" >> config.makfififor codec in $CODEC_LIST ; do    echo "#define CONFIG_`echo $codec | tr a-z A-Z` 1" >> $TMPH    echo "CONFIG_`echo $codec | tr a-z A-Z`=yes" >> config.makdone# Do not overwrite config.h if unchanged to avoid superfluous rebuilds.diff $TMPH config.h >/dev/null 2>&1if test "$?" != "0" ; then        mv -f $TMPH config.helse        echo "config.h is unchanged"firm -f $TMPO $TMPC $TMPE $TMPS $TMPH# build pkg-config files libav*.pc and libpostproc.pc# libavutil.pccat <<EOF >libavutil.pcprefix=$prefixexec_prefix=\${prefix}libdir=\${exec_prefix}/libincludedir=\${prefix}/includeName: libavutilDescription: FFmpeg utility libraryVersion: $lavu_versionRequires:Conflicts:Libs: -L\${libdir} -lavutilCflags: -I\${includedir} -I\${includedir}/ffmpegEOFcat <<EOF >libavutil-uninstalled.pcprefix=exec_prefix=libdir=\${pcfiledir}/libavutilincludedir=\${pcfiledir}/libavutilName: libavutilDescription: FFmpeg utility libraryVersion: $lavu_versionRequires:Conflicts:Libs: \${libdir}/${LIBPREF}avutil${LIBSUF}Cflags: -I\${includedir}EOF# libavcodec.pccat <<EOF >libavcodec.pcprefix=$prefixexec_prefix=\${prefix}libdir=\${exec_prefix}/libincludedir=\${prefix}/includeName: libavcodecDescription: FFmpeg codec libraryVersion: $lavc_versionRequires: $pkg_requires libavutil = $lavu_versionConflicts:Libs: -L\${libdir} -lavcodec $extralibsCflags: -I\${includedir} -I\${includedir}/ffmpegEOFcat <<EOF >libavcodec-uninstalled.pcprefix=exec_prefix=libdir=\${pcfiledir}/libavcodecincludedir=\${pcfiledir}/libavcodecName: libavcodecDescription: FFmpeg codec libraryVersion: $lavc_versionRequires: $pkg_requires libavutil = $lavu_versionConflicts:Libs: \${libdir}/${LIBPREF}avcodec${LIBSUF} $extralibsCflags: -I\${includedir}EOF# libavformat.pccat <<EOF >libavformat.pcprefix=$prefixexec_prefix=\${prefix}libdir=\${exec_prefix}/libincludedir=\${prefix}/includeName: libavformatDescription: FFmpeg container format libraryVersion: $lavf_versionRequires: $pkg_requires libavcodec = $lavc_versionConflicts:Libs: -L\${libdir} -lavformat $extralibsCflags: -I\${includedir} -I\${includedir}/ffmpegEOFcat <<EOF >libavformat-uninstalled.pcprefix=exec_prefix=libdir=\${pcfiledir}/libavformatincludedir=\${pcfiledir}/libavformatName: libavformatDescription: FFmpeg container format libraryVersion: $lavf_versionRequires: $pkg_requires libavcodec = $lavc_versionConflicts:Libs: \${libdir}/${LIBPREF}avformat${LIBSUF} $extralibsCflags: -I\${includedir}EOF# libpostproc.pccat <<EOF >libpostproc.pcprefix=$prefixexec_prefix=\${prefix}libdir=\${exec_prefix}/libincludedir=\${prefix}/includeName: libpostprocDescription: FFmpeg post processing libraryVersion: $lavc_versionRequires:Conflicts:Libs: -L\${libdir} -lpostprocCflags: -I\${includedir} -I\${includedir}/postprocEOFcat <<EOF >libpostproc-uninstalled.pcprefix=exec_prefix=libdir=\${pcfiledir}/libavcodec/libpostprocincludedir=\${pcfiledir}/libavcodec/libpostprocName: libpostprocDescription: FFmpeg post processing libraryVersion: $lavc_versionRequires:Conflicts:Libs: \${libdir}/${LIBPREF}postproc${LIBSUF}Cflags: -I\${includedir}EOF

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -