diff options
Diffstat (limited to 'tinyDAV/include/tinydav/tdav_session_av.h')
-rwxr-xr-x | tinyDAV/include/tinydav/tdav_session_av.h | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/tinyDAV/include/tinydav/tdav_session_av.h b/tinyDAV/include/tinydav/tdav_session_av.h index 3460fbf..86ecd15 100755 --- a/tinyDAV/include/tinydav/tdav_session_av.h +++ b/tinyDAV/include/tinydav/tdav_session_av.h @@ -1,19 +1,19 @@ /* * Copyright (C) 2012-2013 Doubango Telecom <http://www.doubango.org> * Copyright (C) 2012 Diop Mamadou Ibrahima -* +* * This file is part of Open Source Doubango Framework. * * DOUBANGO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. -* +* * DOUBANGO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with DOUBANGO. * @@ -38,26 +38,26 @@ TDAV_BEGIN_DECLS #define TDAV_SESSION_AV(self) ((tdav_session_av_t*)(self)) -typedef struct tdav_session_av_s -{ - TMEDIA_DECLARE_SESSION; - - tsk_bool_t use_ipv6; - tsk_bool_t use_rtcp; - tsk_bool_t use_rtcpmux; - enum tmedia_type_e media_type; - enum tmedia_profile_e media_profile; - enum tmedia_mode_e avpf_mode_set; - enum tmedia_mode_e avpf_mode_neg; - tsk_bool_t is_fb_fir_neg; // a=rtcp-fb:* ccm fir - tsk_bool_t is_fb_nack_neg; // a=rtcp-fb:* nack - tsk_bool_t is_fb_googremb_neg; // a=rtcp-fb:* goog-remb - tsk_bool_t use_srtp; - tsk_bool_t is_webrtc2sip_mode_enabled; - uint32_t rtp_ssrc; - - tmedia_srtp_type_t srtp_type; - tmedia_srtp_mode_t srtp_mode; +typedef struct tdav_session_av_s { + TMEDIA_DECLARE_SESSION; + + tsk_bool_t use_ipv6; + tsk_bool_t use_rtcp; + tsk_bool_t use_rtcpmux; + enum tmedia_type_e media_type; + enum tmedia_profile_e media_profile; + enum tmedia_mode_e avpf_mode_set; + enum tmedia_mode_e avpf_mode_neg; + tsk_bool_t is_fb_fir_neg; // a=rtcp-fb:* ccm fir + tsk_bool_t is_fb_nack_neg; // a=rtcp-fb:* nack + tsk_bool_t is_fb_googremb_neg; // a=rtcp-fb:* goog-remb + tsk_bool_t is_fb_doubsjcng_neg; // a=rtcp-fb:* doubs-jcng + tsk_bool_t use_srtp; + tsk_bool_t is_webrtc2sip_mode_enabled; + uint32_t rtp_ssrc; + + tmedia_srtp_type_t srtp_type; + tmedia_srtp_mode_t srtp_mode; struct { uint64_t count_last_time; uint64_t count; @@ -67,67 +67,67 @@ typedef struct tdav_session_av_s uint64_t count; } bytes_out; uint64_t time_last_frame_loss_report; // from jb - int32_t bandwidth_max_upload_kbps; - int32_t bandwidth_max_download_kbps; - int32_t fps; - tsk_bool_t congestion_ctrl_enabled; - tmedia_pref_video_size_t pref_size; // output - - /* sdp capabilities (RFC 5939) */ - struct tdav_sdp_caps_s* sdp_caps; - - /* NAT Traversal context */ - struct tnet_nat_ctx_s* natt_ctx; - struct tnet_ice_ctx_s* ice_ctx; - - char* local_ip; - char* remote_ip; - uint16_t remote_port; - struct tsdp_message_s* remote_sdp; - struct tsdp_message_s* local_sdp; - - struct trtp_manager_s* rtp_manager; - - struct tmedia_consumer_s* consumer; - struct tmedia_producer_s* producer; - - struct{ - struct{ - tnet_dtls_setup_t setup; - tsk_bool_t connection_new; // "new | existing" - } local; - struct{ - tnet_dtls_setup_t setup; - tsk_bool_t connection_new; // "new | existing" - } remote; - } dtls; - - struct{ - uint8_t payload_type; - struct tmedia_codec_s* codec; - uint16_t seq_num; - uint32_t timestamp; - } ulpfec; - - struct{ - uint8_t payload_type; - struct tmedia_codec_s* codec; - } red; - - struct{ - char* reason; - tsk_bool_t is_fatal; - void* tid[1]; - } last_error; - - // codec's payload type mapping used when bypassing is enabled - struct{ - int8_t local; - int8_t remote; - int8_t neg; - } pt_map; - - TSK_DECLARE_SAFEOBJ; + int32_t bandwidth_max_upload_kbps; + int32_t bandwidth_max_download_kbps; + int32_t fps; + tsk_bool_t congestion_ctrl_enabled; + tmedia_pref_video_size_t pref_size; // output + + /* sdp capabilities (RFC 5939) */ + struct tdav_sdp_caps_s* sdp_caps; + + /* NAT Traversal context */ + struct tnet_nat_ctx_s* natt_ctx; + struct tnet_ice_ctx_s* ice_ctx; + + char* local_ip; + char* remote_ip; + uint16_t remote_port; + struct tsdp_message_s* remote_sdp; + struct tsdp_message_s* local_sdp; + + struct trtp_manager_s* rtp_manager; + + struct tmedia_consumer_s* consumer; + struct tmedia_producer_s* producer; + + struct { + struct { + tnet_dtls_setup_t setup; + tsk_bool_t connection_new; // "new | existing" + } local; + struct { + tnet_dtls_setup_t setup; + tsk_bool_t connection_new; // "new | existing" + } remote; + } dtls; + + struct { + uint8_t payload_type; + struct tmedia_codec_s* codec; + uint16_t seq_num; + uint32_t timestamp; + } ulpfec; + + struct { + uint8_t payload_type; + struct tmedia_codec_s* codec; + } red; + + struct { + char* reason; + tsk_bool_t is_fatal; + void* tid[1]; + } last_error; + + // codec's payload type mapping used when bypassing is enabled + struct { + int8_t local; + int8_t remote; + int8_t neg; + } pt_map; + + TSK_DECLARE_SAFEOBJ; } tdav_session_av_t; |