Changeset ebbc287d752e33efd2bdb74fbc4916134df00bf7
- Timestamp:
- 06/03/08 11:23:11 (3 months ago)
- git-parent:
- Files:
-
- configure.ac (modified) (5 diffs)
- modules/codec/ffmpeg/Modules.am (modified) (1 diff)
- modules/codec/ffmpeg/avcodec.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
configure.ac
re81f8e4 rebbc287 193 193 VLC_ADD_LDFLAGS([vlc],[-Wl,-undefined,dynamic_lookup]) 194 194 VLC_ADD_LDFLAGS([libvlc_control],[-Wl,dynamic_lookup]) 195 VLC_ADD_LDFLAGS([avcodec avformat swscale postproc i420_rgb_mmx x264],[-Wl,-read_only_relocs,suppress])195 VLC_ADD_LDFLAGS([avcodec avformat swscale imgresample postproc i420_rgb_mmx x264],[-Wl,-read_only_relocs,suppress]) 196 196 VLC_ADD_CFLAGS([motion],[-fconstant-cfstrings]) 197 197 VLC_ADD_LDFLAGS([libvlc],[-Wl,-framework,Cocoa,-framework,CoreFoundation]) … … 646 646 ]) 647 647 AC_CHECK_LIB(m,pow,[ 648 VLC_ADD_LIBS([avcodec avformat swscale postproc ffmpegaltivec stream_out_transrate i420_rgb faad twolame equalizer spatializer param_eq libvlc vorbis freetype mod mpc dmo quicktime realaudio realvideo galaktos opengl],[-lm])648 VLC_ADD_LIBS([avcodec avformat swscale imgresample postproc ffmpegaltivec stream_out_transrate i420_rgb faad twolame equalizer spatializer param_eq libvlc vorbis freetype mod mpc dmo quicktime realaudio realvideo galaktos opengl],[-lm]) 649 649 ]) 650 650 AC_CHECK_LIB(m,sqrt,[ … … 2938 2938 VLC_RESTORE_FLAGS 2939 2939 ],[ 2940 AC_MSG_ERROR([Could not find libavcodec or libavutil. ])2940 AC_MSG_ERROR([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.]) 2941 2941 ]) 2942 2942 fi … … 2963 2963 VLC_RESTORE_FLAGS 2964 2964 ],[ 2965 AC_MSG_ERROR([Could not find libavformat, libavcodec or libavutil. ])2965 AC_MSG_ERROR([Could not find libavformat, libavcodec or libavutil. Use --disable-avformat to ignore this error.]) 2966 2966 ]) 2967 2967 fi … … 2987 2987 VLC_RESTORE_FLAGS 2988 2988 ],[ 2989 AC_MSG_ERROR([Could not find libswscale or libavutil.]) 2989 AC_MSG_WARN([Could not find libswscale or libavutil. Trying to enable imgresample.]) 2990 enable_imgresample=yes 2991 ]) 2992 fi 2993 2994 dnl 2995 dnl avcodec (deprecated API) image scaling and conversion plugin 2996 dnl 2997 dnl This is build as a seperate module than the avcodec one to prevent 2998 dnl stupid run time library load errors from disabling most codecs 2999 dnl from VLC. 3000 dnl 3001 3002 AC_ARG_ENABLE(imgresample, 3003 [ --enable-imgresample deprecated libavcodec image scaling and conversion (default disabled)]) 3004 if test "${enable_imgresample}" = "yes" 3005 then 3006 PKG_CHECK_MODULES(IMGRESAMPLE,[libavcodec, libavutil], 3007 [ 3008 VLC_SAVE_FLAGS 3009 CPPFLAGS="${CPPFLAGS} ${IMGRESAMPLE_CFLAGS}" 3010 CFLAGS="${CFLAGS} ${IMGRESAMPLE_CFLAGS}" 3011 LIBS="${CFLAGS} ${IMGRESAMPLE_LIBS}" 3012 AC_CHECK_HEADERS(libavcodec/avcodec.h ffmpeg/avcodec.h) 3013 AC_CHECK_HEADERS(libavutil/avutil.h ffmpeg/avutil.h) 3014 AC_CHECK_LIB(avcodec,img_resample, 3015 [ 3016 VLC_ADD_PLUGIN([imgresample]) 3017 VLC_ADD_LIBS([imgresample],[$IMGRESAMPLE_LIBS]) 3018 VLC_ADD_CFLAGS([imgresample],[$IMGRESAMPLE_CFLAGS]) 3019 ],[ 3020 AC_MSG_WARN([Could not find img_resample in libavcodec.]) 3021 if test "${enable_swscale}" != "no" 3022 then 3023 AC_MSG_ERROR([swscale (and its fallback module imgresample) support will be missing. Use --disable-swscale to ignore this error. (This basically means that you will be missing any good software scaling module and some video chroma converters.)]) 3024 fi 3025 ]) 3026 VLC_RESTORE_FLAGS 3027 ],[ 3028 AC_MSG_WARN([Could not find libavcodec or libavutil.]) 2990 3029 ]) 2991 3030 fi modules/codec/ffmpeg/Modules.am
rb538efd rebbc287 37 37 $(NULL) 38 38 39 # FIXME 40 SOURCES_imgresample = \ 41 avcodec.c \ 42 avcodec.h \ 43 video.c \ 44 audio.c \ 45 deinterlace.c \ 46 $(NULL) 47 39 48 SOURCES_postproc = \ 40 49 postprocess.c \ modules/codec/ffmpeg/avcodec.c
ra519cac rebbc287 90 90 #if defined(MODULE_NAME_is_ffmpegaltivec) \ 91 91 || (defined(CAN_COMPILE_ALTIVEC) && !defined(NO_ALTIVEC_IN_FFMPEG)) 92 set_description( N_("AltiVec FFmpeg audio/video decoder /encoder((MS)MPEG4,SVQ1,H263,WMV,WMA)") );92 set_description( N_("AltiVec FFmpeg audio/video decoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); 93 93 /*add_requirement( ALTIVEC );*/ 94 94 set_capability( "decoder", 71 ); 95 95 #else 96 set_description( N_("FFmpeg audio/video decoder s/encoders") );96 set_description( N_("FFmpeg audio/video decoder") ); 97 97 set_help( MODULE_DESCRIPTION ); 98 98 set_capability( "decoder", 70 );
