Group PJMED_OC_AMR
- group PJMED_OC_AMR
AMRCodec wrapper for OpenCORE AMR codec.
Typedefs
-
typedef pjmedia_codec_amr_config pjmedia_codec_amrnb_config
-
typedef pjmedia_codec_amr_config pjmedia_codec_amrwb_config
Enums
Functions
-
pj_status_t pjmedia_codec_opencore_amr_init(pjmedia_endpt *endpt, unsigned options)
Initialize and register AMR codec factory to pjmedia endpoint.
- Parameters:
endpt – The pjmedia endpoint.
options – Bitmask of pjmedia_amr_options (default=0).
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_opencore_amr_init_default(pjmedia_endpt *endpt)
Initialize and register AMR codec factory using default settings to pjmedia endpoint.
- Parameters:
endpt – The pjmedia endpoint.
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_opencore_amr_deinit(void)
Unregister AMR codec factory from pjmedia endpoint and deinitialize the OpenCORE codec library.
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_opencore_amrnb_init(pjmedia_endpt *endpt)
Initialize and register AMR-NB codec factory to pjmedia endpoint. Calling this function will automatically initialize AMR codec factory without the wideband mode (i.e. it is equivalent to calling pjmedia_codec_opencore_amr_init() with PJMEDIA_AMR_NO_WB). Application should call pjmedia_codec_opencore_amr_init() instead if wishing to use both modes.
- Parameters:
endpt – The pjmedia endpoint.
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_opencore_amrnb_deinit(void)
Unregister AMR-NB codec factory from pjmedia endpoint and deinitialize the OpenCORE codec library.
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_opencore_amrnb_set_config(const pjmedia_codec_amrnb_config *cfg)
Set AMR-NB parameters.
- Parameters:
cfg – The settings;
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_codec_opencore_amrwb_set_config(const pjmedia_codec_amrwb_config *cfg)
Set AMR-WB parameters.
- Parameters:
cfg – The settings;
- Returns:
PJ_SUCCESS on success.
-
struct pjmedia_codec_amr_config
- #include <opencore_amr.h>
Settings. Use pjmedia_codec_opencore_amrnb_set_config() and pjmedia_codec_opencore_amrwb_set_config() to activate.
-
typedef pjmedia_codec_amr_config pjmedia_codec_amrnb_config