Retrieve the write codec from a given session. Switch_core_session_get_write_codec ( _In_ switch_core_session_t *session) Switch_core_session_set_write_codec ( _In_ switch_core_session_t *session, switch_codec_t *codec)Īssign the write codec to a given session.
Retrieve the effevtive read codec from a given session. Switch_core_session_get_effective_read_codec ( _In_ switch_core_session_t *session) Retrieve the read codec from a given session. Switch_core_session_get_read_codec ( _In_ switch_core_session_t *session) Switch_core_session_get_video_write_impl ( switch_core_session_t *session, switch_codec_implementation_t *impp) Switch_core_session_get_video_read_impl ( switch_core_session_t *session, switch_codec_implementation_t *impp) Switch_core_session_get_write_impl ( switch_core_session_t *session, switch_codec_implementation_t *impp) Switch_core_session_get_real_read_impl ( switch_core_session_t *session, switch_codec_implementation_t *impp) Switch_core_session_get_read_impl ( switch_core_session_t *session, switch_codec_implementation_t *impp) Switch_core_session_unlock_codec_read ( _In_ switch_core_session_t *session) Switch_core_session_lock_codec_read ( _In_ switch_core_session_t *session) Switch_core_session_unlock_codec_write ( _In_ switch_core_session_t *session) Switch_core_session_lock_codec_write ( _In_ switch_core_session_t *session) Switch_core_session_unset_write_codec ( _In_ switch_core_session_t *session) Switch_core_session_unset_read_codec ( _In_ switch_core_session_t *session) This is the read codec used by an endpoint. Switch_core_session_set_real_read_codec ( _In_ switch_core_session_t *session, switch_codec_t *codec)Īssign the original read codec to a given session. Switch_core_session_set_read_codec ( _In_ switch_core_session_t *session, switch_codec_t *codec)Īssign the read codec to a given session. Switch_core_codec_destroy ( switch_codec_t *codec)ĭestroy an initalized codec handle. Switch_core_codec_decode_video ( switch_codec_t *codec, switch_frame_t *frame)ĭecode video data using a codec handle. Send control data using a codec handle More.
Switch_core_codec_control ( switch_codec_t *codec, switch_codec_control_command_t cmd, switch_codec_control_type_t ctype, void *cmd_data, switch_codec_control_type_t atype, void *cmd_arg, switch_codec_control_type_t *rtype, void **ret_data) Switch_core_codec_encode_video ( switch_codec_t *codec, switch_frame_t *frame)Įncode video data using a codec handle. Switch_core_codec_decode ( switch_codec_t *codec, switch_codec_t *other_codec, void *encoded_data, uint32_t encoded_data_len, uint32_t encoded_rate, void *decoded_data, uint32_t *decoded_data_len, uint32_t *decoded_rate, unsigned int *flag)ĭecode data using a codec handle. Switch_core_codec_encode ( switch_codec_t *codec, switch_codec_t *other_codec, void *decoded_data, uint32_t decoded_data_len, uint32_t decoded_rate, void *encoded_data, uint32_t *encoded_data_len, uint32_t *encoded_rate, unsigned int *flag)Įncode data using a codec handle. Switch_core_codec_reset ( switch_codec_t *codec) Switch_core_codec_parse_fmtp (const char *codec_name, const char *fmtp, uint32_t rate, switch_codec_fmtp_t *codec_fmtp) Switch_core_codec_copy ( switch_codec_t *codec, switch_codec_t *new_codec, const switch_codec_settings_t *codec_settings, switch_memory_pool_t * pool) Switch_core_codec_init_with_bitrate ( switch_codec_t *codec, const char *codec_name, const char *fmtp, const char *modname, uint32_t rate, int ms, int channels, uint32_t bitrate, uint32_t flags, const switch_codec_settings_t *codec_settings, switch_memory_pool_t * pool) Switch_core_codec_init(_codec, _codec_name, _modname, _fmtp, _rate, _ms, _channels, _flags, _codec_settings, _pool) switch_core_codec_init_with_bitrate(_codec, _codec_name, _modname, _fmtp, _rate, _ms, _channels, 0, _flags, _codec_settings, _pool)