Ignore:
Timestamp:
Nov 22, 2019 6:18:55 AM (4 years ago)
Author:
ming
Message:

Fixed #2253: Support for VP8 and VP9 video codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r6066 r6110  
    651651ac_ssl_has_aes_gcm 
    652652ac_no_ssl 
     653ac_vpx_ldflags 
     654ac_vpx_cflags 
    653655ac_openh264_ldflags 
    654656ac_openh264_cflags 
     
    815817with_openh264 
    816818enable_openh264 
     819with_vpx 
     820enable_vpx 
    817821enable_ipp 
    818822with_ipp 
     
    14861490  --disable-v4l2          Disable Video4Linux2 (default: not disabled) 
    14871491  --disable-openh264      Disable OpenH264 (default: not disabled) 
     1492  --disable-vpx           Disable VPX (default: not disabled) 
    14881493  --enable-ipp            Enable Intel IPP support. Specify the Intel IPP 
    14891494                          package and samples location using IPPROOT and 
     
    15411546  --with-ffmpeg=DIR       Specify alternate FFMPEG prefix 
    15421547  --with-openh264=DIR     Specify alternate OpenH264 prefix 
     1548  --with-vpx=DIR          Specify alternate VPX prefix 
    15431549  --with-ipp=DIR          Specify the Intel IPP location 
    15441550  --with-ipp-samples=DIR  Specify the Intel IPP samples location 
     
    76107616 
    76117617 
     7618# Check whether --with-vpx was given. 
     7619if test "${with_vpx+set}" = set; then : 
     7620  withval=$with_vpx; 
     7621else 
     7622  with_vpx=no 
     7623 
     7624fi 
     7625 
     7626 
     7627if test "x$ac_cross_compile" != "x" -a "x$with_vpx" = "xno"; then 
     7628    enable_vpx=no 
     7629fi 
     7630 
     7631 
     7632 
     7633# Check whether --enable-vpx was given. 
     7634if test "${enable_vpx+set}" = set; then : 
     7635  enableval=$enable_vpx; 
     7636                if test "$enable_vpx" = "no"; then 
     7637                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if VPX is disabled... yes" >&5 
     7638$as_echo "Checking if VPX is disabled... yes" >&6; } 
     7639                fi 
     7640 
     7641else 
     7642 
     7643                  if test "x$with_vpx" != "xno" -a "x$with_vpx" != "x"; then 
     7644                        VPX_PREFIX=$with_vpx 
     7645                        VPX_CFLAGS="-I$VPX_PREFIX/include" 
     7646                        VPX_LDFLAGS="-L$VPX_PREFIX/lib" 
     7647                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using VPX prefix... $with_vpx" >&5 
     7648$as_echo "Using VPX prefix... $with_vpx" >&6; } 
     7649                  else 
     7650                        VPX_CFLAGS="" 
     7651                        VPX_LDFLAGS="" 
     7652                  fi 
     7653 
     7654                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking VPX usability" >&5 
     7655$as_echo_n "checking VPX usability... " >&6; } 
     7656 
     7657                  VPX_LIBS="-lvpx" 
     7658 
     7659                  SAVED_LIBS="$LIBS" 
     7660                  SAVED_LDFLAGS="$LDFLAGS" 
     7661                  SAVED_CFLAGS="$CFLAGS" 
     7662 
     7663                  LIBS="$VPX_LIBS $LIBS" 
     7664                  LDFLAGS="$VPX_LDFLAGS $LDFLAGS" 
     7665                  CFLAGS="$VPX_CFLAGS $CFLAGS" 
     7666 
     7667                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     7668/* end confdefs.h.  */ 
     7669#include <vpx/vpx_encoder.h> 
     7670                                                    #include <vpx/vp8cx.h> 
     7671 
     7672int 
     7673main () 
     7674{ 
     7675vpx_codec_iface_t *(*enc_if)() = &vpx_codec_vp8_cx; 
     7676 
     7677  ; 
     7678  return 0; 
     7679} 
     7680_ACEOF 
     7681if ac_fn_c_try_link "$LINENO"; then : 
     7682   ac_vpx_cflags="-DPJMEDIA_HAS_VPX_CODEC=1 $VPX_CFLAGS" 
     7683                                   ac_vpx_ldflags="$VPX_LDFLAGS $VPX_LIBS" 
     7684                                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 
     7685$as_echo "ok" >&6; } 
     7686 
     7687else 
     7688 
     7689                                   LIBS="$SAVED_LIBS" 
     7690                                   LDFLAGS="$SAVED_LDFLAGS" 
     7691                                   CFLAGS="$SAVED_CFLAGS" 
     7692                                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
     7693$as_echo "no" >&6; } 
     7694 
     7695fi 
     7696rm -f core conftest.err conftest.$ac_objext \ 
     7697    conftest$ac_exeext conftest.$ac_ext 
     7698 
     7699 
     7700fi 
     7701 
     7702 
     7703 
    76127704# Check whether --enable-ipp was given. 
    76137705if test "${enable_ipp+set}" = set; then : 
     
    79628054main () 
    79638055{ 
    7964 if (__builtin_available(macOS 10.3, iOS 11.3, *)) { 
     8056if (__builtin_available(macOS 10.12, iOS 10.0, *)) { 
    79658057                             SSLContextRef ssl_ctx; 
    79668058                             SSLReHandshake(ssl_ctx); 
     
    79818073 
    79828074                        LIBS="$LIBS -framework Security" 
    7983                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Security framework for Darwin SSL is available... yes" >&5 
    7984 $as_echo "Checking if Security framework for Darwin SSL is available... yes" >&6; } 
     8075                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL is available... yes" >&5 
     8076$as_echo "Checking if Darwin SSL is available... yes" >&6; } 
    79858077                    else 
    7986                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Security framework for Darwin SSL is available... no" >&5 
    7987 $as_echo "Checking if Security framework for Darwin SSL is available... no" >&6; } 
     8078                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL is available... no" >&5 
     8079$as_echo "Checking if Darwin SSL is available... no" >&6; } 
    79888080                    fi 
    79898081                    ;; 
Note: See TracChangeset for help on using the changeset viewer.