亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rtpsession.h

?? ORTP開源的rtp庫
?? H
字號:
 /*  The oRTP library is an RTP (Realtime Transport Protocol - rfc3550) stack.  Copyright (C) 2001  Simon MORLAT simon.morlat@linphone.org  This library is free software; you can redistribute it and/or  modify it under the terms of the GNU Lesser General Public  License as published by the Free Software Foundation; either  version 2.1 of the License, or (at your option) any later version.  This library 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  Lesser General Public License for more details.  You should have received a copy of the GNU Lesser General Public  License along with this library; if not, write to the Free Software  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#ifndef RTPSESSION_H#define RTPSESSION_H#include <ortp/port.h>#include <ortp/rtp.h>#include <ortp/payloadtype.h>#include <ortp/sessionset.h>#include <ortp/rtcp.h>#include <ortp/str_utils.h>#include <ortp/rtpsignaltable.h>#include <ortp/event.h>typedef enum {	RTP_SESSION_RECVONLY,	RTP_SESSION_SENDONLY,	RTP_SESSION_SENDRECV} RtpSessionMode;typedef enum {	RTP_SESSION_RECV_SYNC=1,	/* the rtp session is synchronising in the incoming stream */	RTP_SESSION_SEND_SYNC=1<<1, /* the rtp session is synchronising in the outgoing stream */	RTP_SESSION_SCHEDULED=1<<2, /* the rtp session has to be scheduled */	RTP_SESSION_BLOCKING_MODE=1<<3, /* in blocking mode */	RTP_SESSION_RECV_NOT_STARTED=1<<4,	/* the application has not started to try to recv */	RTP_SESSION_SEND_NOT_STARTED=1<<5,  /* the application has not started to send something */	RTP_SESSION_IN_SCHEDULER=1<<6,	/* the rtp session is in the scheduler list */	RTP_SESSION_USING_EXT_SOCKETS=1<<7 /* the session is using externaly supplied sockets */}RtpSessionFlags;typedef struct _JitterControl{	int jitt_comp;   /* the user jitt_comp in miliseconds*/	int jitt_comp_ts; /* the jitt_comp converted in rtp time (same unit as timestamp) */	int adapt_jitt_comp_ts;	float slide;	float jitter;	int count;	int olddiff;	float inter_jitter;	/* interarrival jitter as defined in the RFC */	int corrective_step;	int corrective_slide;	bool_t adaptive;} JitterControl;typedef struct _WaitPoint{	ortp_mutex_t lock;	ortp_cond_t  cond;	uint32_t time;	bool_t wakeup;} WaitPoint;	typedef struct _RtpStream{	ortp_socket_t socket;	int sockfamily;	int max_rq_size;	int time_jump;	uint32_t ts_jump;	queue_t rq;	queue_t tev_rq;	mblk_t *cached_mp;	int loc_port;#ifdef ORTP_INET6	struct sockaddr_storage rem_addr;#else	struct sockaddr_in rem_addr;#endif	int rem_addrlen;	JitterControl jittctl;	uint32_t snd_time_offset;/*the scheduler time when the application send its first timestamp*/		uint32_t snd_ts_offset;	/* the first application timestamp sent by the application */	uint32_t snd_rand_offset;	/* a random number added to the user offset to make the stream timestamp*/	uint32_t snd_last_ts;	/* the last stream timestamp sended */	uint32_t rcv_time_offset; /*the scheduler time when the application ask for its first timestamp*/	uint32_t rcv_ts_offset;  /* the first stream timestamp */	uint32_t rcv_query_ts_offset;	/* the first user timestamp asked by the application */	uint32_t rcv_diff_ts;	/* difference between the first user timestamp and first stream timestamp */	uint32_t hwrcv_diff_ts;	uint32_t rcv_last_ts;	/* the last stream timestamp got by the application */	uint32_t rcv_last_app_ts; /* the last application timestamp asked by the application */		uint32_t rcv_last_ret_ts; /* the timestamp of the last sample returned (only for continuous audio)*/	uint32_t hwrcv_extseq; /* last received on socket extended sequence number */	uint32_t hwrcv_seq_at_last_SR;	uint32_t hwrcv_since_last_SR;	uint32_t last_rcv_SR_ts;     /* NTP timestamp (middle 32 bits) of last received SR */	struct timeval last_rcv_SR_time;   /* time at which last SR was received  */	uint16_t snd_seq; /* send sequence number */	uint32_t last_rtcp_report_snt_r;	/* the time of the last rtcp report sent, in recv timestamp unit */	uint32_t last_rtcp_report_snt_s;	/* the time of the last rtcp report sent, in send timestamp unit */	uint32_t rtcp_report_snt_interval; /* the interval in timestamp unit between rtcp report sent */	uint32_t last_rtcp_packet_count; /*the sender's octet count in the last sent RTCP SR*/	unsigned int sent_bytes; /* used for bandwidth estimation */	struct timeval send_bw_start; /* used for bandwidth estimation */	unsigned int recv_bytes; /* used for bandwidth estimation */	struct timeval recv_bw_start; /* used for bandwidth estimation */	rtp_stats_t stats;}RtpStream;typedef struct _RtcpStream{	ortp_socket_t socket;	int sockfamily;	mblk_t *cached_mp;#ifdef ORTP_INET6	struct sockaddr_storage rem_addr;#else	struct sockaddr_in rem_addr;#endif	int rem_addrlen;} RtcpStream;typedef struct _RtpSession RtpSession;struct _RtpSession{	RtpSession *next;	/* next RtpSession, when the session are enqueued by the scheduler */	int mask_pos;	/* the position in the scheduler mask of RtpSession : do not move this field: it is part of the ABI since the session_set macros use it*/	RtpProfile *profile;	WaitPoint recv_wp;	WaitPoint send_wp;	uint32_t send_ssrc;	uint32_t recv_ssrc;	int send_pt;/* sent payload type */	int recv_pt;/* recv payload type */	int hw_recv_pt; /* recv payload type before jitter buffer */	int recv_buf_size;	RtpSignalTable on_ssrc_changed;	RtpSignalTable on_payload_type_changed;	RtpSignalTable on_telephone_event_packet;	RtpSignalTable on_telephone_event;	RtpSignalTable on_timestamp_jump;	RtpSignalTable on_network_error;	RtpSignalTable on_rtcp_bye;	struct _OList *signal_tables;	struct _OList *eventqs;	RtpStream rtp;	RtcpStream rtcp;	RtpSessionMode mode;	struct _RtpScheduler *sched;	uint32_t flags;	int dscp;	int multicast_ttl;	int multicast_loopback;	void * user_data;	/* FIXME: Should be a table for all session participants. */	struct timeval last_recv_time; /* Time of receiving the RTP/RTCP packet. */	/* telephony events extension */	int telephone_events_pt;	/* the payload type used for telephony events */	mblk_t *current_tev;		/* the pending telephony events */	mblk_t *sd;	queue_t contributing_sources;	bool_t symmetric_rtp;	bool_t permissive; /*use the permissive algorithm*/};	#ifdef __cplusplusextern "C"{#endif/*private */void rtp_session_init(RtpSession *session, int mode);#define rtp_session_set_flag(session,flag) (session)->flags|=(flag)#define rtp_session_unset_flag(session,flag) (session)->flags&=~(flag)void rtp_session_uninit(RtpSession *session);/* public API */RtpSession *rtp_session_new(int mode);void rtp_session_set_scheduling_mode(RtpSession *session, int yesno);void rtp_session_set_blocking_mode(RtpSession *session, int yesno);void rtp_session_set_profile(RtpSession *session,RtpProfile *profile);RtpProfile *rtp_session_get_profile(RtpSession *session);int rtp_session_signal_connect(RtpSession *session,const char *signal_name, RtpCallback cb, unsigned long user_data);int rtp_session_signal_disconnect_by_callback(RtpSession *session,const char *signal_name, RtpCallback cb);void rtp_session_set_ssrc(RtpSession *session, uint32_t ssrc);void rtp_session_set_seq_number(RtpSession *session, uint16_t seq);uint16_t rtp_session_get_seq_number(RtpSession *session);void rtp_session_set_jitter_compensation(RtpSession *session, int milisec);void rtp_session_enable_adaptive_jitter_compensation(RtpSession *session, bool_t val);bool_t rtp_session_adaptive_jitter_compensation_enabled(RtpSession *session);void rtp_session_set_time_jump_limit(RtpSession *session, int miliseconds);int rtp_session_set_local_addr(RtpSession *session,const char *addr, int port);int rtp_session_get_local_port(const RtpSession *session);int rtp_session_set_remote_addr(RtpSession *session,const char *addr, int port);/* alternatively to the set_remote_addr() and set_local_addr(), an application can givea valid socket (potentially connect()ed )to be used by the RtpSession */void rtp_session_set_sockets(RtpSession *session, int rtpfd, int rtcpfd);/*those methods are provided for people who wants to send non-RTP messages using the RTP/RTCP sockets */ortp_socket_t rtp_session_get_rtp_socket(const RtpSession *session);ortp_socket_t rtp_session_get_rtcp_socket(const RtpSession *session);/* QOS / DSCP */int rtp_session_set_dscp(RtpSession *session, int dscp);int rtp_session_get_dscp(const RtpSession *session);/* Multicast methods */int rtp_session_set_multicast_ttl(RtpSession *session, int ttl);int rtp_session_get_multicast_ttl(RtpSession *session);int rtp_session_set_multicast_loopback(RtpSession *session, int yesno);int rtp_session_get_multicast_loopback(RtpSession *session);int rtp_session_set_send_payload_type(RtpSession *session, int paytype);int rtp_session_get_send_payload_type(const RtpSession *session);int rtp_session_get_recv_payload_type(const RtpSession *session);int rtp_session_set_recv_payload_type(RtpSession *session, int pt);int rtp_session_set_payload_type(RtpSession *session, int pt);void rtp_session_set_symmetric_rtp (RtpSession * session, int yesno);/*low level recv and send functions */mblk_t * rtp_session_recvm_with_ts (RtpSession * session, uint32_t user_ts);mblk_t * rtp_session_create_packet(RtpSession *session,int header_size, const uint8_t *payload, int payload_size);mblk_t * rtp_session_create_packet_with_data(RtpSession *session, uint8_t *payload, int payload_size, void (*freefn)(void*));mblk_t * rtp_session_create_packet_in_place(RtpSession *session,uint8_t *buffer, int size, void (*freefn)(void*) );int rtp_session_sendm_with_ts (RtpSession * session, mblk_t *mp, uint32_t userts);/* high level recv and send functions */int rtp_session_recv_with_ts(RtpSession *session, uint8_t *buffer, int len, uint32_t ts, int *have_more);int rtp_session_send_with_ts(RtpSession *session, const uint8_t *buffer, int len, uint32_t userts);/* event API*/void rtp_session_register_event_queue(RtpSession *session, OrtpEvQueue *q);void rtp_session_unregister_event_queue(RtpSession *session, OrtpEvQueue *q);/* IP bandwidth usage estimation functions, returning bits/s*/float rtp_session_compute_send_bandwidth(RtpSession *session);float rtp_session_compute_recv_bandwidth(RtpSession *session);void rtp_session_send_rtcp_APP(RtpSession *session, uint8_t subtype, const char *name, const uint8_t *data, int datalen);uint32_t rtp_session_get_current_send_ts(RtpSession *session);uint32_t rtp_session_get_current_recv_ts(RtpSession *session);void rtp_session_flush_sockets(RtpSession *session);void rtp_session_release_sockets(RtpSession *session);void rtp_session_reset(RtpSession *session);void rtp_session_destroy(RtpSession *session);const rtp_stats_t * rtp_session_get_stats(const RtpSession *session);void rtp_session_reset_stats(RtpSession *session);void rtp_session_set_data(RtpSession *session, void *data);void *rtp_session_get_data(const RtpSession *session);void rtp_session_set_recv_buf_size(RtpSession *session, int bufsize);/* in use with the scheduler to convert a timestamp in scheduler time unit (ms) */uint32_t rtp_session_ts_to_time(RtpSession *session,uint32_t timestamp);uint32_t rtp_session_time_to_ts(RtpSession *session, int millisecs);/* this function aims at simulating senders with "imprecise" clocks, resulting in rtp packets sent with timestamp uncorrelated with the system clock .This is only availlable to sessions working with the oRTP scheduler */void rtp_session_make_time_distorsion(RtpSession *session, int milisec);/*RTCP functions */void rtp_session_set_source_description(RtpSession *session, const char *cname,	const char *name, const char *email, const char *phone,     const char *loc, const char *tool, const char *note);void rtp_session_add_contributing_source(RtpSession *session, uint32_t csrc,     const char *cname, const char *name, const char *email, const char *phone,     const char *loc, const char *tool, const char *note);void rtp_session_remove_contributing_sources(RtpSession *session, uint32_t csrc);mblk_t* rtp_session_create_rtcp_sdes_packet(RtpSession *session);void rtp_session_get_last_recv_time(RtpSession *session, struct timeval *tv);int rtp_session_bye(RtpSession *session, const char *reason);#ifdef __cplusplus}#endif#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲1区2区3区4区| 另类小说图片综合网| 91精品久久久久久久99蜜桃| 国产成人av一区二区三区在线| 国产成人av资源| 欧美日韩国产系列| 97久久精品人人做人人爽| 国产精品一卡二卡| 国产在线播放一区二区三区| 狠狠色狠狠色合久久伊人| 美国欧美日韩国产在线播放| 偷拍一区二区三区四区| 日韩**一区毛片| 免费人成精品欧美精品| 国产又黄又大久久| 欧美一区二区视频在线观看2022 | 1024国产精品| 久久综合久久综合亚洲| 欧美一级在线视频| 亚洲成人激情综合网| 91在线免费看| 国产精品国产精品国产专区不蜜| 椎名由奈av一区二区三区| 一区二区三区四区不卡在线| 一区二区三区四区蜜桃| 99麻豆久久久国产精品免费| 欧美视频精品在线观看| 99这里只有久久精品视频| 久久精品综合网| 成人欧美一区二区三区白人| 粉嫩久久99精品久久久久久夜| 91蜜桃在线观看| 欧美色网站导航| 一区二区在线观看av| 美国av一区二区| 6080亚洲精品一区二区| 偷窥少妇高潮呻吟av久久免费| 欧美视频在线播放| 国产精品久久影院| 美女尤物国产一区| 精品亚洲免费视频| 91精品在线麻豆| 五月天一区二区| 日韩精品一区二| 亚洲欧洲韩国日本视频| 成人蜜臀av电影| 日韩欧美在线1卡| 亚洲精品成人精品456| 色婷婷精品大在线视频| 日韩精品一区二区在线| 国产一区二区三区电影在线观看| 国产欧美日韩综合精品一区二区| 亚洲国产婷婷综合在线精品| av电影天堂一区二区在线观看| ㊣最新国产の精品bt伙计久久| 色婷婷av一区二区三区之一色屋| 亚洲午夜在线视频| 26uuu色噜噜精品一区二区| 成熟亚洲日本毛茸茸凸凹| 亚洲一区国产视频| 91女神在线视频| 亚洲日本韩国一区| 色婷婷激情综合| 26uuu国产在线精品一区二区| 国产成人午夜视频| 亚洲美女区一区| 欧美日韩国产乱码电影| 日本午夜精品视频在线观看| 国产欧美一区二区精品久导航| 色综合天天狠狠| 久久 天天综合| 中文字幕视频一区| 日韩免费一区二区三区在线播放| 北条麻妃国产九九精品视频| 日韩精品高清不卡| 99精品国产99久久久久久白柏| 亚洲高清三级视频| 国产精品天美传媒| 国产精品99久久久久久久女警 | 在线观看亚洲专区| 自拍偷拍亚洲激情| 日韩欧美久久一区| 欧日韩精品视频| 国产成人av资源| 久久精品国产99国产| 亚洲综合激情另类小说区| 久久久九九九九| gogogo免费视频观看亚洲一| 美女被吸乳得到大胸91| 一区二区在线观看av| 国产性天天综合网| 日韩三级中文字幕| 色婷婷久久综合| 成人福利视频在线看| 欧美国产精品久久| 成人免费黄色大片| 国产又黄又大久久| 九色|91porny| 麻豆成人久久精品二区三区红| 亚洲一区二区三区四区的| 一区在线播放视频| 中文字幕 久热精品 视频在线| 欧美大胆一级视频| 欧美一区二区三区四区高清| 欧美色手机在线观看| 毛片不卡一区二区| 香蕉成人伊视频在线观看| 夜夜精品浪潮av一区二区三区| 国产精品国产三级国产普通话99 | 国产乱码精品一区二区三区av | 色综合亚洲欧洲| 亚洲黄一区二区三区| 国产精品久久久久精k8 | 91亚洲午夜精品久久久久久| 国产suv精品一区二区三区| 韩国欧美一区二区| 激情综合色丁香一区二区| 蜜桃久久精品一区二区| 日韩电影免费一区| 黑人巨大精品欧美一区| 国产精品一区二区三区99| 国产美女精品一区二区三区| 国产精品18久久久| 97国产一区二区| 欧美在线观看你懂的| 欧美日韩精品欧美日韩精品一| 欧美久久久一区| 成人av在线一区二区三区| 99久久免费国产| 欧美三级韩国三级日本一级| 7777精品伊人久久久大香线蕉超级流畅 | 国产精品少妇自拍| 中文字幕在线观看一区| ...中文天堂在线一区| 亚洲尤物在线视频观看| 蜜臀99久久精品久久久久久软件| 精品一区二区三区久久| 成人av电影在线播放| 99久久国产免费看| 欧美精品一级二级三级| 精品国产第一区二区三区观看体验 | 在线视频国内自拍亚洲视频| 7777精品伊人久久久大香线蕉完整版 | 6080yy午夜一二三区久久| 日韩你懂的在线观看| 国产精品美女www爽爽爽| 亚洲综合一区在线| 久久aⅴ国产欧美74aaa| 97久久超碰国产精品电影| 91精品国产高清一区二区三区蜜臀| 欧美不卡视频一区| 欧美日韩一区不卡| 26uuu亚洲综合色欧美 | 欧美在线制服丝袜| 久久久午夜精品| 一区二区久久久久| 精品一区二区三区在线观看| 99精品欧美一区二区三区小说 | 成人免费一区二区三区视频| 亚洲成人tv网| 国产91丝袜在线播放九色| 欧美影院一区二区| 国产欧美一区二区精品性色超碰| 亚洲图片有声小说| 不卡视频在线观看| 欧美成人精品1314www| 亚洲午夜在线视频| 成人丝袜视频网| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 日韩国产欧美在线视频| 99热这里都是精品| 精品国产麻豆免费人成网站| 亚洲综合偷拍欧美一区色| 成人自拍视频在线观看| 欧美成人一区二区三区| 亚洲影视资源网| 99国产精品国产精品久久| 国产欧美视频在线观看| 国模无码大尺度一区二区三区| 精品视频免费看| 亚洲最新视频在线观看| 91女神在线视频| 国产精品免费看片| 国产精品伊人色| 精品处破学生在线二十三| 日韩成人伦理电影在线观看| 色婷婷久久久亚洲一区二区三区| 国产精品五月天| 成人精品电影在线观看| 久久久久久久综合日本| 极品少妇一区二区| 久久伊人蜜桃av一区二区| 免费成人在线影院| 欧美一级国产精品| 蜜臀av一区二区在线观看| 91精品国产乱| 老鸭窝一区二区久久精品| 日韩午夜激情av| 久久99精品国产麻豆不卡| 久久精品视频一区二区|