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

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

?? rtcpsdespacket.h

?? jrtp庫
?? H
字號:
/*  This file is a part of JRTPLIB  Copyright (c) 1999-2007 Jori Liesenborgs  Contact: jori.liesenborgs@gmail.com  This library was developed at the "Expertisecentrum Digitale Media"  (http://www.edm.uhasselt.be), a research center of the Hasselt University  (http://www.uhasselt.be). The library is based upon work done for   my thesis at the School for Knowledge Technology (Belgium/The Netherlands).  Permission is hereby granted, free of charge, to any person obtaining a  copy of this software and associated documentation files (the "Software"),  to deal in the Software without restriction, including without limitation  the rights to use, copy, modify, merge, publish, distribute, sublicense,  and/or sell copies of the Software, and to permit persons to whom the  Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included  in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS  IN THE SOFTWARE.*//** * \file rtcpsdespacket.h */#ifndef RTCPSDESPACKET_H#define RTCPSDESPACKET_H#include "rtpconfig.h"#include "rtcppacket.h"#include "rtpstructs.h"#include "rtpdefines.h"#if ! (defined(WIN32) || defined(_WIN32_WCE))	#include <netinet/in.h>#endif // WIN32class RTCPCompoundPacket;/** Describes an RTCP source description packet. */class RTCPSDESPacket : public RTCPPacket{public:	/** Identifies the type of an SDES item. */	enum ItemType 	{ 		None,	/**< Used when the iteration over the items has finished. */		CNAME,	/**< Used for a CNAME (canonical name) item. */		NAME,	/**< Used for a NAME item. */		EMAIL,	/**< Used for an EMAIL item. */		PHONE,	/**< Used for a PHONE item. */		LOC,	/**< Used for a LOC (location) item. */		TOOL,	/**< Used for a TOOL item. */		NOTE,	/**< Used for a NOTE item. */		PRIV,	/**< Used for a PRIV item. */		Unknown /**< Used when there is an item present, but the type is not recognized. */	};		/** Creates an instance based on the data in \c data with length \c datalen.	 *  Creates an instance based on the data in \c data with length \c datalen. Since the \c data pointer	 *  is referenced inside the class (no copy of the data is made) one must make sure that the memory it 	 *  points to is valid as long as the class instance exists.	 */	RTCPSDESPacket(uint8_t *data,size_t datalen);	~RTCPSDESPacket()							{ }	/** Returns the number of SDES chunks in the SDES packet.	 *  Returns the number of SDES chunks in the SDES packet. Each chunk has its own SSRC identifier. 	 */	int GetChunkCount() const;		/** Starts the iteration over the chunks.	 *  Starts the iteration. If no SDES chunks are present, the function returns \c false. Otherwise,	 *  it returns \c true and sets the current chunk to be the first chunk.	 */	bool GotoFirstChunk();	/** Sets the current chunk to the next available chunk.	 *  Sets the current chunk to the next available chunk. If no next chunk is present, this function returns	 *  \c false, otherwise it returns \c true.	 */	bool GotoNextChunk();	/** Returns the SSRC identifier of the current chunk. */	uint32_t GetChunkSSRC() const;	/** Starts the iteration over the SDES items in the current chunk.	 *  Starts the iteration over the SDES items in the current chunk. If no SDES items are 	 *  present, the function returns \c false. Otherwise, the function sets the current item	 *  to be the first one and returns \c true.	 */	bool GotoFirstItem();	/** Advances the iteration to the next item in the current chunk. 	 *  If there's another item in the chunk, the current item is set to be the next one and the function	 *  returns \c true. Otherwise, the function returns \c false.	 */	bool GotoNextItem();	/** Returns the SDES item type of the current item in the current chunk. */	ItemType GetItemType() const;	/** Returns the item length of the current item in the current chunk. */	size_t GetItemLength() const;	/** Returns the item data of the current item in the current chunk. */	uint8_t *GetItemData();#ifdef RTP_SUPPORT_SDESPRIV	/** If the current item is an SDES PRIV item, this function returns the length of the 	 *  prefix string of the private item. 	 */	size_t GetPRIVPrefixLength() const;	/** If the current item is an SDES PRIV item, this function returns actual data of the	 *  prefix string.	 */	uint8_t *GetPRIVPrefixData();	/** If the current item is an SDES PRIV item, this function returns the length of the	 *  value string of the private item.	 */	size_t GetPRIVValueLength() const;	/** If the current item is an SDES PRIV item, this function returns actual value data of the	 *  private item.	 */	uint8_t *GetPRIVValueData();#endif // RTP_SUPPORT_SDESPRIV#ifdef RTPDEBUG	void Dump();#endif // RTPDEBUGprivate:	uint8_t *currentchunk;	int curchunknum;	size_t itemoffset;};inline int RTCPSDESPacket::GetChunkCount() const{	if (!knownformat)		return 0;	RTCPCommonHeader *hdr = (RTCPCommonHeader *)data;	return ((int)hdr->count);}inline bool RTCPSDESPacket::GotoFirstChunk(){	if (GetChunkCount() == 0)	{		currentchunk = 0;		return false;	}	currentchunk = data+sizeof(RTCPCommonHeader);	curchunknum = 1;	itemoffset = sizeof(uint32_t);	return true;}inline bool RTCPSDESPacket::GotoNextChunk(){	if (!knownformat)		return false;	if (currentchunk == 0)		return false;	if (curchunknum == GetChunkCount())		return false;		size_t offset = sizeof(uint32_t);	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+sizeof(uint32_t));		while (sdeshdr->sdesid != 0)	{		offset += sizeof(RTCPSDESHeader);		offset += (size_t)(sdeshdr->length);		sdeshdr = (RTCPSDESHeader *)(currentchunk+offset);	}	offset++; // for the zero byte	if ((offset&0x03) != 0)		offset += (4-(offset&0x03));	currentchunk += offset;	curchunknum++;	itemoffset = sizeof(uint32_t);	return true;}inline uint32_t RTCPSDESPacket::GetChunkSSRC() const{	if (!knownformat)		return 0;	if (currentchunk == 0)		return 0;	uint32_t *ssrc = (uint32_t *)currentchunk;	return ntohl(*ssrc);}inline bool RTCPSDESPacket::GotoFirstItem(){	if (!knownformat)		return false;	if (currentchunk == 0)		return false;	itemoffset = sizeof(uint32_t);	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid == 0)		return false;	return true;}inline bool RTCPSDESPacket::GotoNextItem(){	if (!knownformat)		return false;	if (currentchunk == 0)		return false;		RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid == 0)		return false;		size_t offset = itemoffset;	offset += sizeof(RTCPSDESHeader);	offset += (size_t)(sdeshdr->length);	sdeshdr = (RTCPSDESHeader *)(currentchunk+offset);	if (sdeshdr->sdesid == 0)		return false;	itemoffset = offset;	return true;}inline RTCPSDESPacket::ItemType RTCPSDESPacket::GetItemType() const{	if (!knownformat)		return None;	if (currentchunk == 0)		return None;	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	switch (sdeshdr->sdesid)	{	case 0:		return None;	case RTCP_SDES_ID_CNAME:		return CNAME;	case RTCP_SDES_ID_NAME:		return NAME;	case RTCP_SDES_ID_EMAIL:		return EMAIL;	case RTCP_SDES_ID_PHONE:		return PHONE;	case RTCP_SDES_ID_LOCATION:		return LOC;	case RTCP_SDES_ID_TOOL:		return TOOL;	case RTCP_SDES_ID_NOTE:		return NOTE;	case RTCP_SDES_ID_PRIVATE:		return PRIV;	default:		return Unknown;	}	return Unknown;}inline size_t RTCPSDESPacket::GetItemLength() const{	if (!knownformat)		return None;	if (currentchunk == 0)		return None;	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid == 0)		return 0;	return (size_t)(sdeshdr->length);}inline uint8_t *RTCPSDESPacket::GetItemData(){	if (!knownformat)		return 0;	if (currentchunk == 0)		return 0;	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid == 0)		return 0;	return (currentchunk+itemoffset+sizeof(RTCPSDESHeader));}#ifdef RTP_SUPPORT_SDESPRIVinline size_t RTCPSDESPacket::GetPRIVPrefixLength() const{	if (!knownformat)		return 0;	if (currentchunk == 0)		return 0;	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid != RTCP_SDES_ID_PRIVATE)		return 0;	if (sdeshdr->length == 0)		return 0;	uint8_t *preflen = currentchunk+itemoffset+sizeof(RTCPSDESHeader);	size_t prefixlength = (size_t)(*preflen);	if (prefixlength > (size_t)((sdeshdr->length)-1))		return 0;	return prefixlength;}inline uint8_t *RTCPSDESPacket::GetPRIVPrefixData(){	if (!knownformat)		return 0;	if (currentchunk == 0)		return 0;	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid != RTCP_SDES_ID_PRIVATE)		return 0;	if (sdeshdr->length == 0)		return 0;	uint8_t *preflen = currentchunk+itemoffset+sizeof(RTCPSDESHeader);	size_t prefixlength = (size_t)(*preflen);	if (prefixlength > (size_t)((sdeshdr->length)-1))		return 0;	if (prefixlength == 0)		return 0;	return (currentchunk+itemoffset+sizeof(RTCPSDESHeader)+1);}inline size_t RTCPSDESPacket::GetPRIVValueLength() const{	if (!knownformat)		return 0;	if (currentchunk == 0)		return 0;	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid != RTCP_SDES_ID_PRIVATE)		return 0;	if (sdeshdr->length == 0)		return 0;	uint8_t *preflen = currentchunk+itemoffset+sizeof(RTCPSDESHeader);	size_t prefixlength = (size_t)(*preflen);	if (prefixlength > (size_t)((sdeshdr->length)-1))		return 0;	return ((size_t)(sdeshdr->length))-prefixlength-1;}inline uint8_t *RTCPSDESPacket::GetPRIVValueData(){	if (!knownformat)		return 0;	if (currentchunk == 0)		return 0;	RTCPSDESHeader *sdeshdr = (RTCPSDESHeader *)(currentchunk+itemoffset);	if (sdeshdr->sdesid != RTCP_SDES_ID_PRIVATE)		return 0;	if (sdeshdr->length == 0)		return 0;	uint8_t *preflen = currentchunk+itemoffset+sizeof(RTCPSDESHeader);	size_t prefixlength = (size_t)(*preflen);	if (prefixlength > (size_t)((sdeshdr->length)-1))		return 0;	size_t valuelen = ((size_t)(sdeshdr->length))-prefixlength-1;	if (valuelen == 0)		return 0;	return (currentchunk+itemoffset+sizeof(RTCPSDESHeader)+1+prefixlength);}#endif // RTP_SUPPORT_SDESPRIV#endif // RTCPSDESPACKET_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一线二线三线| 亚洲成人一区二区在线观看| 亚洲人成网站影音先锋播放| 日韩激情av在线| 91视频免费播放| 久久精品水蜜桃av综合天堂| 香蕉成人伊视频在线观看| 成人动漫视频在线| 精品久久五月天| 亚洲一区二区三区四区的| 成人激情动漫在线观看| 久久久久久夜精品精品免费| 奇米影视一区二区三区小说| 在线一区二区三区做爰视频网站| 久久久久久一二三区| 久久av资源站| 日韩欧美中文字幕制服| 午夜久久久久久久久| 在线视频你懂得一区| 亚洲精选免费视频| 99久久精品国产麻豆演员表| 国产精品丝袜一区| 国产高清不卡一区二区| 精品国产在天天线2019| 久久97超碰国产精品超碰| 欧美一区二区三区在线观看视频| 亚洲一级二级三级在线免费观看| 99久久精品情趣| 亚洲色图视频免费播放| www.色综合.com| 国产精品电影院| 色激情天天射综合网| 亚洲综合自拍偷拍| 欧美裸体一区二区三区| 三级成人在线视频| 日韩免费高清视频| 国产成人av影院| 国产欧美va欧美不卡在线| 国产精品资源在线看| 国产日韩欧美高清在线| av亚洲精华国产精华精华| 一区二区在线观看视频在线观看| 91丨porny丨蝌蚪视频| 亚洲一区二区在线观看视频| 欧洲av在线精品| 久久精品国产秦先生| 久久精品在线免费观看| av爱爱亚洲一区| 亚洲国产一区二区在线播放| 91麻豆精品国产91久久久| 久久精品国产成人一区二区三区| 久久欧美中文字幕| 91麻豆国产精品久久| 天天综合色天天综合色h| 久久综合久久鬼色中文字| 成人精品高清在线| 午夜激情久久久| 国产亚洲成aⅴ人片在线观看| 99视频有精品| 七七婷婷婷婷精品国产| 国产丝袜欧美中文另类| 欧美在线观看视频在线| 久久99国产乱子伦精品免费| 中文字幕在线不卡一区二区三区| 欧美色网站导航| 国产精品综合av一区二区国产馆| 亚洲三级在线免费观看| 日韩午夜激情视频| 91亚洲精华国产精华精华液| 日韩精品福利网| 中文字幕在线不卡| 日韩欧美一二三四区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 热久久一区二区| 国产丝袜欧美中文另类| 欧美日韩国产123区| 成人中文字幕电影| 毛片av一区二区| 亚洲综合激情网| 国产精品三级在线观看| 日韩午夜精品电影| 91国产免费观看| 成人在线视频一区| 精品在线你懂的| 亚洲国产精品自拍| 国产精品毛片久久久久久| 精品国产青草久久久久福利| 色婷婷综合久久| 成人18精品视频| 国产精一品亚洲二区在线视频| 日韩精品电影一区亚洲| 亚洲青青青在线视频| 国产肉丝袜一区二区| 日韩免费高清视频| 日韩一区二区免费在线观看| 在线观看www91| 91麻豆.com| 成人av在线电影| 国产ts人妖一区二区| 国产在线精品一区二区三区不卡 | 久久91精品久久久久久秒播| 亚洲一区二区精品久久av| 午夜电影一区二区| 日韩理论在线观看| 国产精品美女久久久久久| 国产三区在线成人av| 国产欧美精品国产国产专区| 2023国产精华国产精品| 精品99一区二区三区| 久久欧美中文字幕| 国产日韩欧美激情| 国产精品久久国产精麻豆99网站| 久久久亚洲精品石原莉奈| 国产三级久久久| 国产精品久久综合| 亚洲日本va在线观看| 一级中文字幕一区二区| 亚洲成人免费视| 日本在线不卡一区| 狠狠色狠狠色综合| 国产又粗又猛又爽又黄91精品| 国产精品资源网| eeuss影院一区二区三区| 97久久精品人人做人人爽 | 亚洲精品国产成人久久av盗摄| 亚洲人妖av一区二区| 一区二区三区日韩欧美精品| 亚洲一区av在线| 免费久久99精品国产| 国产美女主播视频一区| 成人高清免费在线播放| 色综合一区二区| 欧美福利视频一区| 久久久久久久综合色一本| 亚洲欧美在线另类| 亚瑟在线精品视频| 精品一区免费av| 97aⅴ精品视频一二三区| 91久久国产最好的精华液| 7777精品伊人久久久大香线蕉 | 成人黄色免费短视频| 欧美在线|欧美| 日韩欧美国产系列| 欧美国产欧美综合| 亚洲三级在线免费观看| 日本va欧美va精品发布| 国产成人精品影视| 欧美视频在线不卡| 久久综合狠狠综合久久激情| 国产精品成人一区二区艾草| 亚洲123区在线观看| 国产91在线观看丝袜| 欧洲一区二区三区免费视频| 日韩欧美视频一区| 亚洲乱码国产乱码精品精可以看| 视频一区免费在线观看| av网站一区二区三区| 欧美一区二区三区成人| 国产精品麻豆欧美日韩ww| 日韩1区2区日韩1区2区| 91首页免费视频| 2023国产精品自拍| 性久久久久久久| 91丨九色丨尤物| 久久久久久久久蜜桃| 日本怡春院一区二区| 91蜜桃网址入口| 欧美国产精品劲爆| 精品一区二区三区香蕉蜜桃| 欧美在线高清视频| 综合分类小说区另类春色亚洲小说欧美| 日本aⅴ亚洲精品中文乱码| 日本韩国欧美一区| 国产精品视频线看| 久久66热偷产精品| 欧美一区二区福利在线| 一区二区三区国产精品| 99精品欧美一区| 国产精品日韩精品欧美在线| 美女一区二区三区| 欧美精品粉嫩高潮一区二区| 亚洲精品视频一区| av一区二区三区在线| 国产无人区一区二区三区| 免费在线观看不卡| 欧美一区二区三区在线视频 | 亚洲精品乱码久久久久久| 成人丝袜高跟foot| 国产丝袜在线精品| 精品一区二区日韩| 欧美成人精品3d动漫h| 日韩av一二三| 欧美精品黑人性xxxx| 亚洲福利一区二区| 欧美日韩免费高清一区色橹橹| 亚洲精品老司机| 欧美日韩中文精品| 天堂资源在线中文精品| 欧美一区二区视频在线观看| 日本一不卡视频|