Group PJMEDIA_HAS_ANDROID_MEDIACODEC
- group PJMEDIA_HAS_ANDROID_MEDIACODEC
Video MediaCodec codec wrapper for Android.
This codec wrapper contains varius codecs: i.e: H.264/AVC, VP8 and VP9. The H.264 codec wrapper only supports non-interleaved packetization mode. If remote uses a different mode (e.g: single-nal), this will cause unpacketization issue and affect decoding process.
Functions
-
pj_status_t pjmedia_codec_and_media_vid_init(pjmedia_vid_codec_mgr *mgr, pj_pool_factory *pf)
Initialize and register Android Mediacodec video codec factory.
- Parameters:
mgr – The video codec manager instance where this codec will be registered to. Specify NULL to use default instance (in that case, an instance of video codec manager must have been created beforehand).
pf – Pool factory.
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_and_media_vid_deinit(void)
Unregister Android Mediacodec video codecs factory from the video codec manager and deinitialize the codec library.
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_and_media_vid_init(pjmedia_vid_codec_mgr *mgr, pj_pool_factory *pf)