RTS API Documentation
1.10.11
|
Go to the source code of this file.
Variables | |
static uint32_t | CODEC_ID = 1 |
switch_codec_t* switch_core_session_get_effective_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 311 of file switch_core_codec.c.
References switch_core_session::read_codec.
switch_codec_t* switch_core_session_get_effective_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 474 of file switch_core_codec.c.
References switch_core_session::write_codec.
switch_codec_t* switch_core_session_get_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 318 of file switch_core_codec.c.
References switch_core_session::read_codec, and switch_core_session::real_read_codec.
switch_codec_t* switch_core_session_get_video_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 532 of file switch_core_codec.c.
References switch_core_session::video_read_codec.
switch_codec_t* switch_core_session_get_video_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 577 of file switch_core_codec.c.
References switch_core_session::video_write_codec.
switch_codec_t* switch_core_session_get_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 482 of file switch_core_codec.c.
References switch_core_session::real_write_codec, and switch_core_session::write_codec.
void switch_core_session_lock_codec_read | ( | switch_core_session_t * | session | ) |
Definition at line 72 of file switch_core_codec.c.
References switch_core_session::codec_read_mutex, and switch_mutex_lock().
void switch_core_session_lock_codec_write | ( | switch_core_session_t * | session | ) |
Definition at line 62 of file switch_core_codec.c.
References switch_core_session::codec_write_mutex, and switch_mutex_lock().
switch_status_t switch_core_session_set_read_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 203 of file switch_core_codec.c.
References switch_codec_implementation::actual_samples_per_second, switch_codec_implementation::bits_per_second, CF_MEDIA_SET, switch_core_session::channel, switch_frame::codec, switch_core_session::codec_read_mutex, switch_codec_implementation::decoded_bytes_per_packet, switch_core_session::enc_read_frame, switch_core_session::enc_write_frame, switch_codec_implementation::ianacode, switch_codec_implementation::iananame, switch_codec::implementation, memset(), switch_codec::next, switch_core_session::raw_read_frame, switch_core_session::raw_write_frame, switch_core_session::read_codec, switch_core_session::read_impl, switch_core_session::real_read_codec, switch_core_session::real_read_impl, switch_codec_implementation::samples_per_second, switch_channel_event_set_data(), switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_DEBUG, switch_log_printf(), switch_mutex_lock(), switch_mutex_unlock(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_core_session_set_real_read_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 94 of file switch_core_codec.c.
References switch_codec_implementation::actual_samples_per_second, switch_codec_implementation::bits_per_second, switch_core_session::bug_codec, switch_core_session::bug_rwlock, CF_MEDIA_SET, switch_core_session::channel, switch_frame::codec, switch_core_session::codec_read_mutex, switch_codec_implementation::decoded_bytes_per_packet, switch_core_session::enc_read_frame, switch_core_session::enc_write_frame, switch_codec_implementation::ianacode, switch_codec_implementation::iananame, switch_codec::implementation, memset(), switch_codec::next, switch_core_session::raw_read_frame, switch_core_session::raw_write_frame, switch_core_session::read_codec, switch_core_session::read_impl, switch_core_session::real_read_codec, switch_core_session::real_read_impl, switch_codec_implementation::samples_per_second, switch_channel_event_set_data(), switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_channel_set_variable, switch_core_codec_destroy(), switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_DEBUG, switch_log_printf(), switch_mutex_lock(), switch_mutex_unlock(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_thread_rwlock_unlock(), and switch_thread_rwlock_wrlock().
switch_status_t switch_core_session_set_video_read_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 492 of file switch_core_codec.c.
References switch_codec_implementation::actual_samples_per_second, switch_core_session::channel, switch_codec_implementation::iananame, switch_codec::implementation, memset(), switch_channel_event_set_data(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_ERROR, switch_log_printf(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_core_session::video_read_codec, and switch_core_session::video_read_impl.
switch_status_t switch_core_session_set_video_write_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 541 of file switch_core_codec.c.
References switch_codec_implementation::actual_samples_per_second, switch_core_session::channel, switch_codec_implementation::iananame, switch_codec::implementation, switch_channel_event_set_data(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_ERROR, switch_log_printf(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_core_session::video_write_codec, and switch_core_session::video_write_impl.
switch_status_t switch_core_session_set_write_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 409 of file switch_core_codec.c.
References switch_codec_implementation::actual_samples_per_second, switch_codec_implementation::bits_per_second, switch_core_session::channel, switch_codec_implementation::codec_id, switch_core_session::codec_write_mutex, switch_codec_implementation::iananame, switch_codec::implementation, switch_core_session::real_write_codec, switch_codec_implementation::samples_per_second, switch_channel_event_set_data(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_ERROR, switch_log_printf(), switch_mutex_lock(), switch_mutex_unlock(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_core_session::write_codec, and switch_core_session::write_impl.
void switch_core_session_unlock_codec_read | ( | switch_core_session_t * | session | ) |
Definition at line 77 of file switch_core_codec.c.
References switch_core_session::codec_read_mutex, and switch_mutex_unlock().
void switch_core_session_unlock_codec_write | ( | switch_core_session_t * | session | ) |
Definition at line 67 of file switch_core_codec.c.
References switch_core_session::codec_write_mutex, and switch_mutex_unlock().
void switch_core_session_unset_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 46 of file switch_core_codec.c.
References switch_frame::codec, switch_core_session::codec_read_mutex, switch_core_session::enc_read_frame, switch_core_session::enc_write_frame, switch_codec::mutex, mutex, switch_core_session::raw_read_frame, switch_core_session::raw_write_frame, switch_core_session::read_codec, switch_core_session::real_read_codec, switch_mutex_lock(), and switch_mutex_unlock().
void switch_core_session_unset_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 82 of file switch_core_codec.c.
References switch_core_session::codec_write_mutex, switch_codec::mutex, mutex, switch_core_session::real_write_codec, switch_mutex_lock(), switch_mutex_unlock(), and switch_core_session::write_codec.
|
static |
Definition at line 39 of file switch_core_codec.c.
Referenced by switch_core_codec_next_id().