Changeset 3841 for pjproject/trunk/pjmedia/src/test/mips_test.c
- Timestamp:
- Oct 24, 2011 9:28:13 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
-
pjproject/trunk/pjmedia/src/test/mips_test.c
r3678 r3841 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) … … 1976 1993 } 1977 1994 #endif /* PJMEDIA_HAS_G7221_CODEC */ 1995 1996 /* AMR-NB stream */ 1997 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1998 static pjmedia_port* create_stream_amr( pj_pool_t *pool, 1999 unsigned clock_rate, 2000 unsigned channel_count, 2001 unsigned samples_per_frame, 2002 unsigned flags, 2003 struct test_entry *te) 2004 { 2005 return create_stream(pool, "AMR/8000", &pjmedia_codec_opencore_amrnb_init, 2006 &pjmedia_codec_opencore_amrnb_deinit, 2007 PJ_FALSE, PJ_FALSE, PJ_FALSE, 2008 clock_rate, channel_count, 2009 samples_per_frame, flags, te); 2010 } 2011 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 1978 2012 1979 2013 /***************************************************************************/ … … 2367 2401 { "codec encode/decode - G.722.1c", OP_PUT, K32, &g7221c_encode_decode}, 2368 2402 #endif 2403 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 2404 { "codec encode/decode - AMR-NB", OP_PUT, K8, &amr_encode_decode}, 2405 #endif 2369 2406 #if PJMEDIA_HAS_L16_CODEC 2370 2407 { "codec encode/decode - L16/8000/1", OP_PUT, K8, &l16_8_encode_decode}, … … 2392 2429 { "stream TX/RX - G.722.1c", OP_PUT_GET, K32, &create_stream_g7221c}, 2393 2430 #endif 2431 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 2432 { "stream TX/RX - AMR-NB", OP_PUT_GET, K8, &create_stream_amr}, 2433 #endif 2394 2434 }; 2395 2435
Note: See TracChangeset
for help on using the changeset viewer.