Debian Codegraph @

Xpjproject/pjmedia/include/pjmedia-codec/and_vid_mediacodec.h

raw symbols SCIP
1 /*
2 * Copyright (C)2020 Teluu Inc. (http://www.teluu.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 #ifndef __PJMEDIA_CODEC_AND_VID_MEDIACODEC_H__
20 #define __PJMEDIA_CODEC_AND_VID_MEDIACODEC_H__
21
22 #include <pjmedia-codec/types.h>
23 #include <pjmedia/vid_codec.h>
24
25 /**
26 * @file pjmedia-codec/and_vid_mediacodec.h
27 * @brief Android video Mediacodec codecs.
28 */
29
30 PJ_BEGIN_DECL
31
32 /**
33 * @defgroup PJMEDIA_HAS_ANDROID_MEDIACODEC Android Mediacodec Codec
34 * @ingroup PJMEDIA_CODEC_VID_CODECS
35 * @{
36 *
37 *
38 * Video MediaCodec codec wrapper for Android.
39 *
40 * This codec wrapper contains varius codecs: i.e: H.264/AVC, VP8 and VP9.
41 * The H.264 codec wrapper only supports non-interleaved packetization
42 * mode. If remote uses a different mode (e.g: single-nal), this will cause
43 * unpacketization issue and affect decoding process.
44 */
45
46 /**
47 * Initialize and register Android Mediacodec video codec factory.
48 *
49 * @param mgr The video codec manager instance where this codec will
50 * be registered to. Specify NULL to use default instance
51 * (in that case, an instance of video codec manager must
52 * have been created beforehand).
53 * @param pf Pool factory.
54 *
55 * @return PJ_SUCCESS on success.
56 */
57 PJ_DECL(pj_status_t) pjmedia_codec_and_media_vid_init(
58 pjmedia_vid_codec_mgr *mgr,
59 pj_pool_factory *pf);
60
61 /**
62 * Unregister Android Mediacodec video codecs factory from the video codec
63 * manager and deinitialize the codec library.
64 *
65 * @return PJ_SUCCESS on success.
66 */
67 PJ_DECL(pj_status_t) pjmedia_codec_and_media_vid_deinit(void);
68
69
70 /**
71 * @}
72 */
73
74
75 PJ_END_DECL
76
77 #endif /* __PJMEDIA_CODEC_AND_VID_MEDIACODEC_H__ */