Changeset 3263 for pjproject/trunk/pjmedia/src/pjmedia-codec/ipp_codecs.c
- Timestamp:
- Aug 11, 2010 7:18:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ipp_codecs.c
r3261 r3263 645 645 } 646 646 647 648 #include <pjmedia-codec/g7221.h> 649 650 651 PJ_DEF(pj_status_t) pjmedia_codec_g7221_set_pcm_shift(int val) 652 { 653 PJ_ASSERT_RETURN(val >= 0, PJ_EINVAL); 654 655 ipp_factory.g7221_pcm_shift = val; 656 return PJ_SUCCESS; 657 } 658 659 647 660 #endif /* PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1 */ 648 661 … … 733 746 734 747 return status; 735 }736 737 /*738 * Get current IPP codecs configuration settings.739 */740 PJ_DEF(pj_status_t) pjmedia_codec_ipp_get_config(741 pjmedia_codec_ipp_config *cfg)742 {743 PJ_ASSERT_RETURN(cfg, PJ_EINVAL);744 745 pj_bzero(cfg, sizeof(*cfg));746 cfg->g7221_pcm_shift = ipp_factory.g7221_pcm_shift;747 748 return PJ_SUCCESS;749 }750 751 752 /*753 * Set IPP codecs configuration settings.754 */755 PJ_DECL(pj_status_t) pjmedia_codec_ipp_set_config(756 const pjmedia_codec_ipp_config *cfg)757 {758 PJ_ASSERT_RETURN(cfg, PJ_EINVAL);759 760 ipp_factory.g7221_pcm_shift = cfg->g7221_pcm_shift;761 762 return PJ_SUCCESS;763 748 } 764 749
Note: See TracChangeset
for help on using the changeset viewer.