Changeset 3816
- Timestamp:
- Oct 14, 2011 4:15:15 AM (13 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/aconfigure
r3599 r3816 597 597 ac_linux_poll 598 598 ac_cross_compile 599 opencore_amrnb_present 600 opencore_amrnb_h_present 601 ac_no_opencore_amrnb 599 602 libcrypto_present 600 603 libssl_present … … 722 725 with_ipp_arch 723 726 enable_ssl 727 enable_opencore_amrnb 724 728 ' 725 729 ac_precious_vars='build_alias … … 1374 1378 --with-ipp-samples options 1375 1379 --disable-ssl Exclude SSL support the build (default: autodetect) 1380 1381 --disable-opencore-amrnb 1382 Exclude OpenCORE AMR-NB support from the build 1383 (default: autodetect) 1376 1384 1377 1385 … … 6260 6268 6261 6269 6270 # Check whether --enable-opencore_amrnb was given. 6271 if test "${enable_opencore_amrnb+set}" = set; then : 6272 enableval=$enable_opencore_amrnb; 6273 if test "$enable_opencore_amrnb" = "no"; then 6274 ac_no_opencore_amrnb=1 6275 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h 6276 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5 6278 $as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; } 6279 fi 6280 6281 else 6282 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5 6284 $as_echo "checking for OpenCORE AMR-NB installations.." >&6; } 6285 6286 6287 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default" 6288 if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = x""yes; then : 6289 opencore_amrnb_h_present=1 6290 fi 6291 6292 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5 6294 $as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; } 6295 if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then : 6296 $as_echo_n "(cached) " >&6 6297 else 6298 ac_check_lib_save_LIBS=$LIBS 6299 LIBS="-lopencore-amrnb $LIBS" 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6301 /* end confdefs.h. */ 6302 6303 /* Override any GCC internal prototype to avoid an error. 6304 Use char because int might match the return type of a GCC 6305 builtin and then its argument prototype would still apply. */ 6306 #ifdef __cplusplus 6307 extern "C" 6308 #endif 6309 char Encoder_Interface_init (); 6310 int 6311 main () 6312 { 6313 return Encoder_Interface_init (); 6314 ; 6315 return 0; 6316 } 6317 _ACEOF 6318 if ac_fn_c_try_link "$LINENO"; then : 6319 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes 6320 else 6321 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no 6322 fi 6323 rm -f core conftest.err conftest.$ac_objext \ 6324 conftest$ac_exeext conftest.$ac_ext 6325 LIBS=$ac_check_lib_save_LIBS 6326 fi 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5 6328 $as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; } 6329 if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = x""yes; then : 6330 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb" 6331 fi 6332 6333 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5 6335 $as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; } 6336 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h 6337 6338 else 6339 ac_no_opencore_amrnb=1 6340 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h 6341 6342 fi 6343 6344 fi 6345 6346 6347 6262 6348 6263 6349 -
pjproject/branches/1.x/aconfigure.ac
r3599 r3816 998 998 ]) 999 999 1000 dnl # Include opencore-amrnb support 1001 AC_SUBST(ac_no_opencore_amrnb) 1002 AC_ARG_ENABLE(opencore_amrnb, 1003 AC_HELP_STRING([--disable-opencore-amrnb], 1004 [Exclude OpenCORE AMR-NB support from the build (default: autodetect)]) 1005 , 1006 [ 1007 if test "$enable_opencore_amrnb" = "no"; then 1008 [ac_no_opencore_amrnb=1] 1009 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 1010 AC_MSG_RESULT([Checking if OpenCORE AMR-NB support is disabled... yes]) 1011 fi 1012 ], 1013 [ 1014 AC_MSG_RESULT([checking for OpenCORE AMR-NB installations..]) 1015 AC_SUBST(opencore_amrnb_h_present) 1016 AC_SUBST(opencore_amrnb_present) 1017 AC_CHECK_HEADER(opencore-amrnb/interf_enc.h,[opencore_amrnb_h_present=1]) 1018 AC_CHECK_LIB(opencore-amrnb,Encoder_Interface_init,[opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"]) 1019 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then 1020 AC_MSG_RESULT([OpenCORE AMR-NB library found, AMR-NB support enabled]) 1021 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,1) 1022 else 1023 [ac_no_opencore_amrnb=1] 1024 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 1025 fi 1026 ]) 1027 1000 1028 1001 1029 dnl ########################################## -
pjproject/branches/1.x/pjmedia/build/os-auto.mak.in
r3295 r3816 30 30 AC_NO_G722_CODEC=@ac_no_g722_codec@ 31 31 AC_NO_G7221_CODEC=@ac_no_g7221_codec@ 32 AC_NO_OPENCORE_AMRNB=@ac_no_opencore_amrnb@ 32 33 33 34 export CODEC_OBJS= … … 82 83 endif 83 84 85 ifeq ($(AC_NO_OPENCORE_AMRNB),1) 86 export CFLAGS += -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 87 else 88 export CODEC_OBJS += opencore_amrnb.o 89 endif 90 84 91 85 92 # -
pjproject/branches/1.x/pjmedia/include/pjmedia-codec.h
r3553 r3816 34 34 #include <pjmedia-codec/ipp_codecs.h> 35 35 #include <pjmedia-codec/passthrough.h> 36 #include <pjmedia-codec/opencore_amrnb.h> 36 37 37 38 -
pjproject/branches/1.x/pjmedia/include/pjmedia-codec/config.h
r3553 r3816 314 314 315 315 /** 316 * OpenCORE AMR-NB codec is enabled by default. 317 */ 318 #ifndef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 319 # define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0 320 #endif 321 322 /** 316 323 * Default G.722.1 codec encoder and decoder level adjustment. 317 324 * If the value is non-zero, then PCM input samples to the encoder will -
pjproject/branches/1.x/pjmedia/include/pjmedia-codec/config_auto.h.in
r3295 r3816 70 70 #endif 71 71 72 /* OpenCORE AMR-NB codec */ 73 #ifndef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 74 #undef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 75 #endif 76 72 77 73 78 #endif /* __PJMEDIA_CODEC_CONFIG_AUTO_H_ */ -
pjproject/branches/1.x/pjmedia/src/test/mips_test.c
r3553 r3816 917 917 #endif /* PJMEDIA_HAS_G7221_CODEC */ 918 918 919 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 920 /* AMR-NB benchmark benchmark */ 921 static pjmedia_port* amr_encode_decode(pj_pool_t *pool, 922 unsigned clock_rate, 923 unsigned channel_count, 924 unsigned samples_per_frame, 925 unsigned flags, 926 struct test_entry *te) 927 { 928 return codec_encode_decode(pool, "AMR/8000", 929 &pjmedia_codec_opencore_amrnb_init, 930 &pjmedia_codec_opencore_amrnb_deinit, 931 clock_rate, channel_count, 932 samples_per_frame, flags, te); 933 } 934 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 935 919 936 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 920 937 static pj_status_t init_l16_default(pjmedia_endpt *endpt) … … 1974 1991 } 1975 1992 #endif /* PJMEDIA_HAS_G7221_CODEC */ 1993 1994 /* AMR-NB stream */ 1995 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1996 static pjmedia_port* create_stream_amr( pj_pool_t *pool, 1997 unsigned clock_rate, 1998 unsigned channel_count, 1999 unsigned samples_per_frame, 2000 unsigned flags, 2001 struct test_entry *te) 2002 { 2003 return create_stream(pool, "AMR/8000", &pjmedia_codec_opencore_amrnb_init, 2004 &pjmedia_codec_opencore_amrnb_deinit, 2005 PJ_FALSE, PJ_FALSE, PJ_FALSE, 2006 clock_rate, channel_count, 2007 samples_per_frame, flags, te); 2008 } 2009 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 1976 2010 1977 2011 /***************************************************************************/ … … 2365 2399 { "codec encode/decode - G.722.1c", OP_PUT, K32, &g7221c_encode_decode}, 2366 2400 #endif 2401 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 2402 { "codec encode/decode - AMR-NB", OP_PUT, K8, &amr_encode_decode}, 2403 #endif 2367 2404 #if PJMEDIA_HAS_L16_CODEC 2368 2405 { "codec encode/decode - L16/8000/1", OP_PUT, K8, &l16_8_encode_decode}, … … 2390 2427 { "stream TX/RX - G.722.1c", OP_PUT_GET, K32, &create_stream_g7221c}, 2391 2428 #endif 2429 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 2430 { "stream TX/RX - AMR-NB", OP_PUT_GET, K8, &create_stream_amr}, 2431 #endif 2392 2432 }; 2393 2433 -
pjproject/branches/1.x/pjsip-apps/src/samples/encdec.c
r3553 r3816 254 254 CHECK( pjmedia_codec_g722_init(mept) ); 255 255 #endif 256 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 257 CHECK( pjmedia_codec_opencore_amrnb_init(mept) ); 258 #endif 256 259 257 260 pj_gettimeofday(&t0); -
pjproject/branches/1.x/pjsip-apps/src/samples/jbsim.c
r3553 r3816 494 494 #if defined(PJMEDIA_HAS_INTEL_IPP) && PJMEDIA_HAS_INTEL_IPP != 0 495 495 pjmedia_codec_ipp_init(g_app.endpt); 496 #endif 497 #if defined(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC) && (PJMEDIA_HAS_OPENCORE_AMRNB_CODEC != 0) 498 pjmedia_codec_opencore_amrnb_init(g_app.endpt); 496 499 #endif 497 500 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC != 0 -
pjproject/branches/1.x/pjsip-apps/src/samples/pcaputil.c
r3588 r3816 306 306 #endif /* PJMEDIA_HAS_L16_CODEC */ 307 307 308 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 309 T( pjmedia_codec_opencore_amrnb_init(app.mept) ); 310 #endif /* PJMEDIA_HAS_L16_CODEC */ 311 308 312 #if PJMEDIA_HAS_INTEL_IPP 309 313 T( pjmedia_codec_ipp_init(app.mept) ); -
pjproject/branches/1.x/pjsip-apps/src/samples/pjsip-perf.c
r3553 r3816 940 940 #if defined(PJMEDIA_HAS_G722_CODEC) && PJMEDIA_HAS_G722_CODEC!=0 941 941 pjmedia_codec_g722_init(app.med_endpt); 942 #endif 943 #if defined(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC) && PJMEDIA_HAS_OPENCORE_AMRNB_CODEC!=0 944 pjmedia_codec_opencore_amrnb_init(app.med_endpt); 942 945 #endif 943 946 -
pjproject/branches/1.x/pjsip-apps/src/samples/streamutil.c
r3553 r3816 123 123 #if defined(PJMEDIA_HAS_G722_CODEC) && PJMEDIA_HAS_G722_CODEC!=0 124 124 status = pjmedia_codec_g722_init(med_endpt); 125 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 126 #endif 127 128 #if defined(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC) && PJMEDIA_HAS_OPENCORE_AMRNB_CODEC!=0 129 status = pjmedia_codec_opencore_amrnb_init(med_endpt); 125 130 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 126 131 #endif -
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_media.c
r3585 r3816 275 275 #endif /* PJMEDIA_HAS_L16_CODEC */ 276 276 277 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 278 /* Register OpenCORE AMR-NB codec */ 279 status = pjmedia_codec_opencore_amrnb_init(pjsua_var.med_endpt); 280 if (status != PJ_SUCCESS) { 281 pjsua_perror(THIS_FILE, "Error initializing OpenCORE AMR-NB codec", 282 status); 283 return status; 284 } 285 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 286 277 287 278 288 /* Save additional conference bridge parameters for future … … 729 739 pjmedia_codec_l16_deinit(); 730 740 # endif /* PJMEDIA_HAS_L16_CODEC */ 741 742 # if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 743 pjmedia_codec_opencore_amrnb_deinit(); 744 # endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 731 745 732 746 pjmedia_endpt_destroy(pjsua_var.med_endpt);
Note: See TracChangeset
for help on using the changeset viewer.