Changeset 4331 for pjproject/trunk/pjmedia/src/test/mips_test.c
- Timestamp:
- Jan 23, 2013 6:18:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/test/mips_test.c
r3982 r4331 944 944 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 945 945 946 #if PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 947 /* AMR-WB benchmark benchmark */ 948 static pjmedia_port* amrwb_encode_decode(pj_pool_t *pool, 949 unsigned clock_rate, 950 unsigned channel_count, 951 unsigned samples_per_frame, 952 unsigned flags, 953 struct test_entry *te) 954 { 955 return codec_encode_decode(pool, "AMR/16000", 956 &pjmedia_codec_opencore_amrwb_init, 957 &pjmedia_codec_opencore_amrwb_deinit, 958 clock_rate, channel_count, 959 samples_per_frame, flags, te); 960 } 961 #endif /* PJMEDIA_HAS_OPENCORE_AMRWB_CODEC */ 962 946 963 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 947 964 static pj_status_t init_l16_default(pjmedia_endpt *endpt) … … 2025 2042 samples_per_frame, flags, te); 2026 2043 } 2027 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 2044 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 2045 2046 /* AMR-WB stream */ 2047 #if PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 2048 static pjmedia_port* create_stream_amrwb( pj_pool_t *pool, 2049 unsigned clock_rate, 2050 unsigned channel_count, 2051 unsigned samples_per_frame, 2052 unsigned flags, 2053 struct test_entry *te) 2054 { 2055 return create_stream(pool, "AMR/16000", &pjmedia_codec_opencore_amrwb_init, 2056 &pjmedia_codec_opencore_amrwb_deinit, 2057 PJ_FALSE, PJ_FALSE, PJ_FALSE, 2058 clock_rate, channel_count, 2059 samples_per_frame, flags, te); 2060 } 2061 #endif /* PJMEDIA_HAS_OPENCORE_AMRWB_CODEC */ 2028 2062 2029 2063 /***************************************************************************/ … … 2420 2454 { "codec encode/decode - AMR-NB", OP_PUT, K8, &amr_encode_decode}, 2421 2455 #endif 2456 #if PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 2457 { "codec encode/decode - AMR-WB", OP_PUT, K16, &amrwb_encode_decode}, 2458 #endif 2422 2459 #if PJMEDIA_HAS_L16_CODEC 2423 2460 { "codec encode/decode - L16/8000/1", OP_PUT, K8, &l16_8_encode_decode}, … … 2448 2485 { "stream TX/RX - AMR-NB", OP_PUT_GET, K8, &create_stream_amr}, 2449 2486 #endif 2487 #if PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 2488 { "stream TX/RX - AMR-WB", OP_PUT_GET, K16, &create_stream_amrwb}, 2489 #endif 2450 2490 }; 2451 2491
Note: See TracChangeset
for help on using the changeset viewer.