Ignore:
Timestamp:
Jun 8, 2017 6:23:56 AM (4 years ago)
Author:
ming
Message:

Fixed #2022: Video Toolbox H264 encoder and decoder for Mac and iOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r5574 r5603  
    820820                       [ac_pjmedia_video_has_darwin=yes], 
    821821                       [ac_pjmedia_video_has_darwin=no]) 
     822        LIBS="-framework VideoToolbox" 
     823        AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 
     824                       [ac_pjmedia_video_has_vtoolbox=yes], 
     825                       [ac_pjmedia_video_has_vtoolbox=no]) 
    822826        LIBS="-framework OpenGLES" 
    823827        AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 
     
    831835        else 
    832836          AC_MSG_RESULT([Checking if AVFoundation framework is available... no]) 
     837        fi 
     838        if test "$ac_pjmedia_video_has_vtoolbox" = "yes"; then 
     839          ac_darwin_cflags+=" -DPJMEDIA_HAS_VID_TOOLBOX_CODEC=1" 
     840          LIBS="$LIBS -framework VideoToolbox" 
     841          AC_MSG_RESULT([Checking if VideoToolbox framework is available... yes]) 
     842        else 
     843          AC_MSG_RESULT([Checking if VideoToolbox framework is available... no]) 
    833844        fi 
    834845        if test "$ac_pjmedia_video_has_ios_opengl" = "yes"; then 
Note: See TracChangeset for help on using the changeset viewer.