Changeset 2724
- Timestamp:
- Dec 9, 2011 11:40:15 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r2723 r2724 10033 10033 done 10034 10034 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036 /* end confdefs.h. */ 10037 10038 #define __STDC_CONSTANT_MACROS 1 10039 #include <stdlib.h> 10040 #ifdef HAVE_FFMPEG_AVCODEC_H 10041 # include <ffmpeg/avcodec.h> 10042 #endif 10043 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 10044 # include <libavcodec/avcodec.h> 10045 #endif 10046 int x = AVMEDIA_TYPE_VIDEO; 10047 10048 int 10049 main () 10050 { 10051 10052 ; 10053 return 0; 10054 } 10055 _ACEOF 10056 if ac_fn_cxx_try_compile "$LINENO"; then : 10057 ac_avmedia_type_video="yes" 10058 else 10059 ac_avmedia_type_video="no" 10060 fi 10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10062 if test "$ac_avmedia_type_video" == "yes" ; then 10063 10064 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h 10065 10066 fi 10035 10067 fi 10036 10068 -
trunk/configure.in
r2723 r2724 381 381 AC_CHECK_FUNCS(img_convert) 382 382 AC_CHECK_FUNCS(sws_scale) 383 AC_TRY_COMPILE([ 384 #define __STDC_CONSTANT_MACROS 1 385 #include <stdlib.h> 386 #ifdef HAVE_FFMPEG_AVCODEC_H 387 # include <ffmpeg/avcodec.h> 388 #endif 389 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 390 # include <libavcodec/avcodec.h> 391 #endif 392 int x = AVMEDIA_TYPE_VIDEO; 393 ],, ac_avmedia_type_video="yes", ac_avmedia_type_video="no") 394 if test "$ac_avmedia_type_video" == "yes" ; then 395 AC_DEFINE(HAVE_AVMEDIA_TYPE_VIDEO,1,[Define if AVMEDIA_TYPE_VIDEO enum exists. ]) 396 fi 383 397 fi 384 398 -
trunk/packages/vizservers/configure
r2667 r2724 8550 8550 CPPFLAGS=$save_CPPFLAGS 8551 8551 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5 8553 $as_echo_n "checking for main in -lavcodec... " >&6; } 8554 if ${ac_cv_lib_avcodec_main+:} false; then : 8555 $as_echo_n "(cached) " >&6 8556 else 8557 ac_check_lib_save_LIBS=$LIBS 8558 LIBS="-lavcodec $LIBS" 8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560 /* end confdefs.h. */ 8561 8562 8563 int 8564 main () 8565 { 8566 return main (); 8567 ; 8568 return 0; 8569 } 8570 _ACEOF 8571 if ac_fn_cxx_try_link "$LINENO"; then : 8572 ac_cv_lib_avcodec_main=yes 8573 else 8574 ac_cv_lib_avcodec_main=no 8575 fi 8576 rm -f core conftest.err conftest.$ac_objext \ 8577 conftest$ac_exeext conftest.$ac_ext 8578 LIBS=$ac_check_lib_save_LIBS 8579 fi 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5 8581 $as_echo "$ac_cv_lib_avcodec_main" >&6; } 8582 if test "x$ac_cv_lib_avcodec_main" = xyes; then : 8583 cat >>confdefs.h <<_ACEOF 8584 #define HAVE_LIBAVCODEC 1 8585 _ACEOF 8586 8587 LIBS="-lavcodec $LIBS" 8588 8589 else 8590 as_fn_error $? "requires libavcodec" "$LINENO" 5 8591 fi 8592 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5 8594 $as_echo_n "checking for main in -lavutil... " >&6; } 8595 if ${ac_cv_lib_avutil_main+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597 else 8598 ac_check_lib_save_LIBS=$LIBS 8599 LIBS="-lavutil $LIBS" 8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8601 /* end confdefs.h. */ 8602 8603 8604 int 8605 main () 8606 { 8607 return main (); 8608 ; 8609 return 0; 8610 } 8611 _ACEOF 8612 if ac_fn_cxx_try_link "$LINENO"; then : 8613 ac_cv_lib_avutil_main=yes 8614 else 8615 ac_cv_lib_avutil_main=no 8616 fi 8617 rm -f core conftest.err conftest.$ac_objext \ 8618 conftest$ac_exeext conftest.$ac_ext 8619 LIBS=$ac_check_lib_save_LIBS 8620 fi 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5 8622 $as_echo "$ac_cv_lib_avutil_main" >&6; } 8623 if test "x$ac_cv_lib_avutil_main" = xyes; then : 8624 cat >>confdefs.h <<_ACEOF 8625 #define HAVE_LIBAVUTIL 1 8626 _ACEOF 8627 8628 LIBS="-lavutil $LIBS" 8629 8630 else 8631 as_fn_error $? "requires libavutil" "$LINENO" 5 8632 fi 8633 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5 8635 $as_echo_n "checking for main in -lavformat... " >&6; } 8636 if ${ac_cv_lib_avformat_main+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638 else 8639 ac_check_lib_save_LIBS=$LIBS 8640 LIBS="-lavformat $LIBS" 8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642 /* end confdefs.h. */ 8643 8644 8645 int 8646 main () 8647 { 8648 return main (); 8649 ; 8650 return 0; 8651 } 8652 _ACEOF 8653 if ac_fn_cxx_try_link "$LINENO"; then : 8654 ac_cv_lib_avformat_main=yes 8655 else 8656 ac_cv_lib_avformat_main=no 8657 fi 8658 rm -f core conftest.err conftest.$ac_objext \ 8659 conftest$ac_exeext conftest.$ac_ext 8660 LIBS=$ac_check_lib_save_LIBS 8661 fi 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5 8663 $as_echo "$ac_cv_lib_avformat_main" >&6; } 8664 if test "x$ac_cv_lib_avformat_main" = xyes; then : 8665 cat >>confdefs.h <<_ACEOF 8666 #define HAVE_LIBAVFORMAT 1 8667 _ACEOF 8668 8669 LIBS="-lavformat $LIBS" 8670 8671 else 8672 as_fn_error $? "requires libavformat" "$LINENO" 5 8673 fi 8674 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5 8676 $as_echo_n "checking for main in -lswscale... " >&6; } 8677 if ${ac_cv_lib_swscale_main+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679 else 8680 ac_check_lib_save_LIBS=$LIBS 8681 LIBS="-lswscale $LIBS" 8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683 /* end confdefs.h. */ 8684 8685 8686 int 8687 main () 8688 { 8689 return main (); 8690 ; 8691 return 0; 8692 } 8693 _ACEOF 8694 if ac_fn_cxx_try_link "$LINENO"; then : 8695 ac_cv_lib_swscale_main=yes 8696 else 8697 ac_cv_lib_swscale_main=no 8698 fi 8699 rm -f core conftest.err conftest.$ac_objext \ 8700 conftest$ac_exeext conftest.$ac_ext 8701 LIBS=$ac_check_lib_save_LIBS 8702 fi 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5 8704 $as_echo "$ac_cv_lib_swscale_main" >&6; } 8705 if test "x$ac_cv_lib_swscale_main" = xyes; then : 8706 cat >>confdefs.h <<_ACEOF 8707 #define HAVE_LIBSWSCALE 1 8708 _ACEOF 8709 8710 LIBS="-lswscale $LIBS" 8711 8712 else 8713 as_fn_error $? "requires libswscale" "$LINENO" 5 8714 fi 8715 8716 for ac_func in avcodec_decode_video2 8717 do : 8718 ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2" 8719 if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then : 8720 cat >>confdefs.h <<_ACEOF 8721 #define HAVE_AVCODEC_DECODE_VIDEO2 1 8722 _ACEOF 8723 8724 fi 8725 done 8726 8727 for ac_func in avcodec_decode_video 8728 do : 8729 ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video" 8730 if test "x$ac_cv_func_avcodec_decode_video" = xyes; then : 8731 cat >>confdefs.h <<_ACEOF 8732 #define HAVE_AVCODEC_DECODE_VIDEO 1 8733 _ACEOF 8734 8735 fi 8736 done 8737 8738 for ac_func in avformat_open_input 8739 do : 8740 ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input" 8741 if test "x$ac_cv_func_avformat_open_input" = xyes; then : 8742 cat >>confdefs.h <<_ACEOF 8743 #define HAVE_AVFORMAT_OPEN_INPUT 1 8744 _ACEOF 8745 8746 fi 8747 done 8748 8749 for ac_func in av_open_input_file 8750 do : 8751 ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file" 8752 if test "x$ac_cv_func_av_open_input_file" = xyes; then : 8753 cat >>confdefs.h <<_ACEOF 8754 #define HAVE_AV_OPEN_INPUT_FILE 1 8755 _ACEOF 8756 8757 fi 8758 done 8759 8760 for ac_func in av_guess_format 8761 do : 8762 ac_fn_cxx_check_func "$LINENO" "av_guess_format" "ac_cv_func_av_guess_format" 8763 if test "x$ac_cv_func_av_guess_format" = xyes; then : 8764 cat >>confdefs.h <<_ACEOF 8765 #define HAVE_AV_GUESS_FORMAT 1 8766 _ACEOF 8767 8768 fi 8769 done 8770 8771 for ac_func in guess_format 8772 do : 8773 ac_fn_cxx_check_func "$LINENO" "guess_format" "ac_cv_func_guess_format" 8774 if test "x$ac_cv_func_guess_format" = xyes; then : 8775 cat >>confdefs.h <<_ACEOF 8776 #define HAVE_GUESS_FORMAT 1 8777 _ACEOF 8778 8779 fi 8780 done 8781 8782 for ac_func in av_dump_format 8783 do : 8784 ac_fn_cxx_check_func "$LINENO" "av_dump_format" "ac_cv_func_av_dump_format" 8785 if test "x$ac_cv_func_av_dump_format" = xyes; then : 8786 cat >>confdefs.h <<_ACEOF 8787 #define HAVE_AV_DUMP_FORMAT 1 8788 _ACEOF 8789 8790 fi 8791 done 8792 8793 for ac_func in dump_format 8794 do : 8795 ac_fn_cxx_check_func "$LINENO" "dump_format" "ac_cv_func_dump_format" 8796 if test "x$ac_cv_func_dump_format" = xyes; then : 8797 cat >>confdefs.h <<_ACEOF 8798 #define HAVE_DUMP_FORMAT 1 8799 _ACEOF 8800 8801 fi 8802 done 8803 8804 for ac_func in avio_open 8805 do : 8806 ac_fn_cxx_check_func "$LINENO" "avio_open" "ac_cv_func_avio_open" 8807 if test "x$ac_cv_func_avio_open" = xyes; then : 8808 cat >>confdefs.h <<_ACEOF 8809 #define HAVE_AVIO_OPEN 1 8810 _ACEOF 8811 8812 fi 8813 done 8814 8815 for ac_func in url_fopen 8816 do : 8817 ac_fn_cxx_check_func "$LINENO" "url_fopen" "ac_cv_func_url_fopen" 8818 if test "x$ac_cv_func_url_fopen" = xyes; then : 8819 cat >>confdefs.h <<_ACEOF 8820 #define HAVE_URL_FOPEN 1 8821 _ACEOF 8822 8823 fi 8824 done 8825 8826 for ac_func in avio_close 8827 do : 8828 ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close" 8829 if test "x$ac_cv_func_avio_close" = xyes; then : 8830 cat >>confdefs.h <<_ACEOF 8831 #define HAVE_AVIO_CLOSE 1 8832 _ACEOF 8833 8834 fi 8835 done 8836 8837 for ac_func in url_fclose 8838 do : 8839 ac_fn_cxx_check_func "$LINENO" "url_fclose" "ac_cv_func_url_fclose" 8840 if test "x$ac_cv_func_url_fclose" = xyes; then : 8841 cat >>confdefs.h <<_ACEOF 8842 #define HAVE_URL_FCLOSE 1 8843 _ACEOF 8844 8845 fi 8846 done 8847 8848 for ac_func in avformat_alloc_context 8849 do : 8850 ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context" 8851 if test "x$ac_cv_func_avformat_alloc_context" = xyes; then : 8852 cat >>confdefs.h <<_ACEOF 8853 #define HAVE_AVFORMAT_ALLOC_CONTEXT 1 8854 _ACEOF 8855 8856 fi 8857 done 8858 8859 for ac_func in av_alloc_format_context 8860 do : 8861 ac_fn_cxx_check_func "$LINENO" "av_alloc_format_context" "ac_cv_func_av_alloc_format_context" 8862 if test "x$ac_cv_func_av_alloc_format_context" = xyes; then : 8863 cat >>confdefs.h <<_ACEOF 8864 #define HAVE_AV_ALLOC_FORMAT_CONTEXT 1 8865 _ACEOF 8866 8867 fi 8868 done 8869 8870 for ac_func in av_set_parameters 8871 do : 8872 ac_fn_cxx_check_func "$LINENO" "av_set_parameters" "ac_cv_func_av_set_parameters" 8873 if test "x$ac_cv_func_av_set_parameters" = xyes; then : 8874 cat >>confdefs.h <<_ACEOF 8875 #define HAVE_AV_SET_PARAMETERS 1 8876 _ACEOF 8877 8878 fi 8879 done 8880 8881 for ac_func in avformat_write_header 8882 do : 8883 ac_fn_cxx_check_func "$LINENO" "avformat_write_header" "ac_cv_func_avformat_write_header" 8884 if test "x$ac_cv_func_avformat_write_header" = xyes; then : 8885 cat >>confdefs.h <<_ACEOF 8886 #define HAVE_AVFORMAT_WRITE_HEADER 1 8887 _ACEOF 8888 8889 fi 8890 done 8891 8892 for ac_func in av_write_header 8893 do : 8894 ac_fn_cxx_check_func "$LINENO" "av_write_header" "ac_cv_func_av_write_header" 8895 if test "x$ac_cv_func_av_write_header" = xyes; then : 8896 cat >>confdefs.h <<_ACEOF 8897 #define HAVE_AV_WRITE_HEADER 1 8898 _ACEOF 8899 8900 fi 8901 done 8902 8903 ac_fn_cxx_check_func "$LINENO" "av_write_trailer" "ac_cv_func_av_write_trailer" 8904 if test "x$ac_cv_func_av_write_trailer" = xyes; then : 8905 8906 else 8907 as_fn_error $? "oops! no av_write_trailer?!?" "$LINENO" 5 8908 fi 8909 8910 ac_fn_cxx_check_func "$LINENO" "av_freep" "ac_cv_func_av_freep" 8911 if test "x$ac_cv_func_av_freep" = xyes; then : 8912 8913 else 8914 as_fn_error $? "oops! no av_freep ?!?" "$LINENO" 5 8915 fi 8916 8917 ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free" 8918 if test "x$ac_cv_func_av_free" = xyes; then : 8919 8920 else 8921 as_fn_error $? "oops! no av_free ?!?" "$LINENO" 5 8922 fi 8923 8924 ac_fn_cxx_check_func "$LINENO" "av_new_stream" "ac_cv_func_av_new_stream" 8925 if test "x$ac_cv_func_av_new_stream" = xyes; then : 8926 8927 else 8928 as_fn_error $? "oops! av_new_stream ?!?" "$LINENO" 5 8929 fi 8930 8931 ac_fn_cxx_check_func "$LINENO" "av_malloc" "ac_cv_func_av_malloc" 8932 if test "x$ac_cv_func_av_malloc" = xyes; then : 8933 8934 else 8935 as_fn_error $? "oops! no av_malloc ?!?" "$LINENO" 5 8936 fi 8937 8938 ac_fn_cxx_check_func "$LINENO" "av_init_packet" "ac_cv_func_av_init_packet" 8939 if test "x$ac_cv_func_av_init_packet" = xyes; then : 8940 8941 else 8942 as_fn_error $? "oops! no av_init_packet ?!?" "$LINENO" 5 8943 fi 8944 8945 ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q" 8946 if test "x$ac_cv_func_av_rescale_q" = xyes; then : 8947 8948 else 8949 as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5 8950 fi 8951 8952 ac_fn_cxx_check_func "$LINENO" "av_write_frame" "ac_cv_func_av_write_frame" 8953 if test "x$ac_cv_func_av_write_frame" = xyes; then : 8954 8955 else 8956 as_fn_error $? "oops! av_write_frame ?!?" "$LINENO" 5 8957 fi 8958 8959 ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context" 8960 if test "x$ac_cv_func_avformat_alloc_context" = xyes; then : 8961 8962 else 8963 as_fn_error $? "oops! avformat_alloc_context ?!?" "$LINENO" 5 8964 fi 8965 8966 for ac_func in img_convert 8967 do : 8968 ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert" 8969 if test "x$ac_cv_func_img_convert" = xyes; then : 8970 cat >>confdefs.h <<_ACEOF 8971 #define HAVE_IMG_CONVERT 1 8972 _ACEOF 8973 8974 fi 8975 done 8976 8977 for ac_func in sws_scale 8978 do : 8979 ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale" 8980 if test "x$ac_cv_func_sws_scale" = xyes; then : 8981 cat >>confdefs.h <<_ACEOF 8982 #define HAVE_SWS_SCALE 1 8983 _ACEOF 8984 8985 fi 8986 done 8987 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989 /* end confdefs.h. */ 8990 8991 #define __STDC_CONSTANT_MACROS 1 8992 #include <stdlib.h> 8993 #ifdef HAVE_FFMPEG_AVCODEC_H 8994 # include <ffmpeg/avcodec.h> 8995 #endif 8996 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 8997 # include <libavcodec/avcodec.h> 8998 #endif 8999 int x = AVMEDIA_TYPE_VIDEO; 9000 9001 int 9002 main () 9003 { 9004 9005 ; 9006 return 0; 9007 } 9008 _ACEOF 9009 if ac_fn_cxx_try_compile "$LINENO"; then : 9010 ac_avmedia_type_video="yes" 9011 else 9012 ac_avmedia_type_video="no" 9013 fi 9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9015 if test "$ac_avmedia_type_video" == "yes" ; then 9016 9017 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h 9018 9019 fi 9020 8552 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_alloc_frame in -lavcodec" >&5 8553 9022 $as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; } … … 8689 9158 8690 9159 fi 8691 8692 for ac_func in avformat_alloc_context8693 do :8694 ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context"8695 if test "x$ac_cv_func_avformat_alloc_context" = xyes; then :8696 cat >>confdefs.h <<_ACEOF8697 #define HAVE_AVFORMAT_ALLOC_CONTEXT 18698 _ACEOF8699 8700 fi8701 done8702 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_free in -lavutil" >&58704 $as_echo_n "checking for av_free in -lavutil... " >&6; }8705 if ${ac_cv_lib_avutil_av_free+:} false; then :8706 $as_echo_n "(cached) " >&68707 else8708 ac_check_lib_save_LIBS=$LIBS8709 LIBS="-lavutil $LIBS"8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8711 /* end confdefs.h. */8712 8713 /* Override any GCC internal prototype to avoid an error.8714 Use char because int might match the return type of a GCC8715 builtin and then its argument prototype would still apply. */8716 #ifdef __cplusplus8717 extern "C"8718 #endif8719 char av_free ();8720 int8721 main ()8722 {8723 return av_free ();8724 ;8725 return 0;8726 }8727 _ACEOF8728 if ac_fn_cxx_try_link "$LINENO"; then :8729 ac_cv_lib_avutil_av_free=yes8730 else8731 ac_cv_lib_avutil_av_free=no8732 fi8733 rm -f core conftest.err conftest.$ac_objext \8734 conftest$ac_exeext conftest.$ac_ext8735 LIBS=$ac_check_lib_save_LIBS8736 fi8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_free" >&58738 $as_echo "$ac_cv_lib_avutil_av_free" >&6; }8739 if test "x$ac_cv_lib_avutil_av_free" = xyes; then :8740 cat >>confdefs.h <<_ACEOF8741 #define HAVE_LIBAVUTIL 18742 _ACEOF8743 8744 LIBS="-lavutil $LIBS"8745 8746 fi8747 8748 for ac_func in img_convert8749 do :8750 ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"8751 if test "x$ac_cv_func_img_convert" = xyes; then :8752 cat >>confdefs.h <<_ACEOF8753 #define HAVE_IMG_CONVERT 18754 _ACEOF8755 8756 fi8757 done8758 9160 8759 9161 -
trunk/packages/vizservers/configure.in
r2667 r2724 286 286 CPPFLAGS=$save_CPPFLAGS 287 287 288 AC_CHECK_LIB(avcodec, main,,AC_MSG_ERROR(requires libavcodec)) 289 AC_CHECK_LIB(avutil, main,,AC_MSG_ERROR(requires libavutil)) 290 AC_CHECK_LIB(avformat, main,,AC_MSG_ERROR(requires libavformat)) 291 AC_CHECK_LIB(swscale, main,,AC_MSG_ERROR(requires libswscale)) 292 AC_CHECK_FUNCS(avcodec_decode_video2) 293 AC_CHECK_FUNCS(avcodec_decode_video) 294 AC_CHECK_FUNCS(avformat_open_input) 295 AC_CHECK_FUNCS(av_open_input_file) 296 AC_CHECK_FUNCS(av_guess_format) 297 AC_CHECK_FUNCS(guess_format) 298 AC_CHECK_FUNCS(av_dump_format) 299 AC_CHECK_FUNCS(dump_format) 300 AC_CHECK_FUNCS(avio_open) 301 AC_CHECK_FUNCS(url_fopen) 302 AC_CHECK_FUNCS(avio_close) 303 AC_CHECK_FUNCS(url_fclose) 304 AC_CHECK_FUNCS(avformat_alloc_context) 305 AC_CHECK_FUNCS(av_alloc_format_context) 306 AC_CHECK_FUNCS(av_set_parameters) 307 AC_CHECK_FUNCS(avformat_write_header) 308 AC_CHECK_FUNCS(av_write_header) 309 AC_CHECK_FUNC(av_write_trailer,, 310 AC_MSG_ERROR(oops! no av_write_trailer?!?)) 311 AC_CHECK_FUNC(av_freep,, AC_MSG_ERROR(oops! no av_freep ?!?)) 312 AC_CHECK_FUNC(av_free,,AC_MSG_ERROR(oops! no av_free ?!?)) 313 AC_CHECK_FUNC(av_new_stream,,AC_MSG_ERROR(oops! av_new_stream ?!?)) 314 AC_CHECK_FUNC(av_malloc,, AC_MSG_ERROR(oops! no av_malloc ?!?)) 315 AC_CHECK_FUNC(av_init_packet,,AC_MSG_ERROR(oops! no av_init_packet ?!?)) 316 AC_CHECK_FUNC(av_rescale_q,,AC_MSG_ERROR(oops! no av_rescale_q ?!?)) 317 AC_CHECK_FUNC(av_write_frame,,AC_MSG_ERROR(oops! av_write_frame ?!?)) 318 AC_CHECK_FUNC(avformat_alloc_context,, 319 AC_MSG_ERROR(oops! avformat_alloc_context ?!?)) 320 AC_CHECK_FUNCS(img_convert) 321 AC_CHECK_FUNCS(sws_scale) 322 AC_TRY_COMPILE([ 323 #define __STDC_CONSTANT_MACROS 1 324 #include <stdlib.h> 325 #ifdef HAVE_FFMPEG_AVCODEC_H 326 # include <ffmpeg/avcodec.h> 327 #endif 328 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 329 # include <libavcodec/avcodec.h> 330 #endif 331 int x = AVMEDIA_TYPE_VIDEO; 332 ],, ac_avmedia_type_video="yes", ac_avmedia_type_video="no") 333 if test "$ac_avmedia_type_video" == "yes" ; then 334 AC_DEFINE(HAVE_AVMEDIA_TYPE_VIDEO,1,[Define if AVMEDIA_TYPE_VIDEO enum exists. ]) 335 fi 336 288 337 AC_CHECK_LIB([avcodec], [avcodec_alloc_frame]) 289 338 # Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found … … 291 340 AC_CHECK_LIB([avformat], [av_alloc_format_context], [], 292 341 [AC_MSG_WARN([libavformat not usable])])) 293 AC_CHECK_FUNCS([avformat_alloc_context])294 AC_CHECK_LIB([avutil], [av_free])295 AC_CHECK_FUNCS([img_convert])296 342 297 343 -
trunk/packages/vizservers/nanovis/RpAVTranslate.cpp
r2720 r2724 35 35 #include "RpAVTranslate.h" 36 36 37 #if LIBAVUTIL_VERSION_MAJOR < 5137 #ifndef HAVE_AVMEDIA_TYPE_VIDEO 38 38 #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO 39 #endif /* HAVE_AVMEDIA_TYPE_VIDEO */ 40 41 #ifndef AV_PKT_FLAG_KEY 39 42 #define AV_PKT_FLAG_KEY PKT_FLAG_KEY 43 #endif 44 45 #ifndef HAVE_AV_GUESS_FORMAT 40 46 #define av_guess_format guess_format 47 #endif /*HAVE_AV_GUESS_FORMAT*/ 48 49 #ifndef HAVE_AV_DUMP_FORMAT 41 50 #define av_dump_format dump_format 51 #endif /*HAVE_AV_DUMP_FORMAT*/ 52 53 #ifndef HAVE_AVIO_OPEN 42 54 #define avio_open url_fopen 55 #endif /*HAVE_AVIO_OPEN*/ 56 57 #ifndef HAVE_AVIO_CLOSE 43 58 #define avio_close url_fclose 44 #endif /* LIBAVUTIL_VERSION_MAJOR*/59 #endif /*HAVE_AVIO_CLOSE*/ 45 60 46 61 #ifndef M_PI … … 145 160 } 146 161 147 #if LIBAVUTIL_VERSION_MAJOR < 51162 #if defined(HAVE_AV_SET_PARAMETERS) && !defined(HAVE_AVFORMAT_WRITE_HEADER) 148 163 /* Set the output parameters (must be done even if no parameters). */ 149 164 if (av_set_parameters(_ocPtr, NULL) < 0) { … … 171 186 172 187 /* write the stream header, if any */ 173 #if LIBAVUTIL_VERSION_MAJOR < 51 188 #ifdef HAVE_AVFORMAT_WRITE_HEADER 189 avformat_write_header(_ocPtr, NULL); 190 #else 174 191 av_write_header(_ocPtr); 175 #else176 avformat_write_header(_ocPtr, NULL);177 192 #endif 178 193 return true; -
trunk/packages/vizservers/nanovis/nvconf.h.in
r2648 r2724 10 10 #undef HAVE_ARPA_INET_H 11 11 12 /* Define to 1 if you have the `avcodec_decode_video' function. */ 13 #undef HAVE_AVCODEC_DECODE_VIDEO 14 15 /* Define to 1 if you have the `avcodec_decode_video2' function. */ 16 #undef HAVE_AVCODEC_DECODE_VIDEO2 17 12 18 /* Define to 1 if you have the `avformat_alloc_context' function. */ 13 19 #undef HAVE_AVFORMAT_ALLOC_CONTEXT 14 20 21 /* Define to 1 if you have the `avformat_open_input' function. */ 22 #undef HAVE_AVFORMAT_OPEN_INPUT 23 24 /* Define to 1 if you have the `avformat_write_header' function. */ 25 #undef HAVE_AVFORMAT_WRITE_HEADER 26 27 /* Define to 1 if you have the `avio_close' function. */ 28 #undef HAVE_AVIO_CLOSE 29 30 /* Define to 1 if you have the `avio_open' function. */ 31 #undef HAVE_AVIO_OPEN 32 33 /* Define if AVMEDIA_TYPE_VIDEO enum exists. */ 34 #undef HAVE_AVMEDIA_TYPE_VIDEO 35 36 /* Define to 1 if you have the `av_alloc_format_context' function. */ 37 #undef HAVE_AV_ALLOC_FORMAT_CONTEXT 38 39 /* Define to 1 if you have the `av_dump_format' function. */ 40 #undef HAVE_AV_DUMP_FORMAT 41 42 /* Define to 1 if you have the `av_guess_format' function. */ 43 #undef HAVE_AV_GUESS_FORMAT 44 45 /* Define to 1 if you have the `av_open_input_file' function. */ 46 #undef HAVE_AV_OPEN_INPUT_FILE 47 48 /* Define to 1 if you have the `av_set_parameters' function. */ 49 #undef HAVE_AV_SET_PARAMETERS 50 51 /* Define to 1 if you have the `av_write_header' function. */ 52 #undef HAVE_AV_WRITE_HEADER 53 15 54 /* Define to 1 if you have the <Cg/cgGL.h> header file. */ 16 55 #undef HAVE_CG_CGGL_H 17 56 57 /* Define to 1 if you have the `dump_format' function. */ 58 #undef HAVE_DUMP_FORMAT 59 18 60 /* Define to 1 if you have the <dx/dx.h> header file. */ 19 61 #undef HAVE_DX_DX_H … … 28 70 #undef HAVE_FFMPEG_AVUTIL_H 29 71 72 /* Define to 1 if you have the `guess_format' function. */ 73 #undef HAVE_GUESS_FORMAT 74 30 75 /* Define to 1 if you have the `img_convert' function. */ 31 76 #undef HAVE_IMG_CONVERT … … 55 100 #undef HAVE_LIBHIGHGUI 56 101 102 /* Define to 1 if you have the `swscale' library (-lswscale). */ 103 #undef HAVE_LIBSWSCALE 104 57 105 /* Define to 1 if you have the <memory.h> header file. */ 58 106 #undef HAVE_MEMORY_H … … 88 136 #undef HAVE_STRING_H 89 137 138 /* Define to 1 if you have the `sws_scale' function. */ 139 #undef HAVE_SWS_SCALE 140 90 141 /* Define to 1 if you have the <sys/socket.h> header file. */ 91 142 #undef HAVE_SYS_SOCKET_H … … 102 153 /* Define to 1 if you have the <unistd.h> header file. */ 103 154 #undef HAVE_UNISTD_H 155 156 /* Define to 1 if you have the `url_fclose' function. */ 157 #undef HAVE_URL_FCLOSE 158 159 /* Define to 1 if you have the `url_fopen' function. */ 160 #undef HAVE_URL_FOPEN 104 161 105 162 /* Define to 1 if you have the <vtkSmartPointer.h> header file. */ -
trunk/src/core/config.h.in
r2723 r2724 24 24 /* Define to 1 if you have the `avio_close' function. */ 25 25 #undef HAVE_AVIO_CLOSE 26 27 /* Define if AVMEDIA_TYPE_VIDEO enum exists. */ 28 #undef HAVE_AVMEDIA_TYPE_VIDEO 26 29 27 30 /* Define to 1 if you have the `av_open_input_file' function. */ -
trunk/src/objects/RpVideo.c
r2723 r2724 55 55 #include "RpVideo.h" 56 56 57 #if LIBAVUTIL_VERSION_MAJOR < 5157 #ifndef HAVE_AVMEDIA_TYPE_VIDEO 58 58 #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO 59 #endif /* HAVE_AVMEDIA_TYPE_VIDEO */ 60 61 #ifndef AV_PKT_FLAG_KEY 59 62 #define AV_PKT_FLAG_KEY PKT_FLAG_KEY 60 #endif /* LIBAVUTIL_VERSION_MAJOR */63 #endif 61 64 62 65 #ifndef HAVE_AVIO_CLOSE
Note: See TracChangeset
for help on using the changeset viewer.