payloadtype.h

来自「ortp协议栈(实时传输协议)」· C头文件 代码 · 共 60 行

H
60
字号
/*  The oRTP LinPhone RTP library intends to provide basics for a RTP 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 PAYLOADTYPE_H#define PAYLOADTYPE_H#include "rtpport.h"struct _PayloadType{	gint type;	#define PAYLOAD_AUDIO_CONTINUOUS 0	#define PAYLOAD_AUDIO_PACKETIZED 1	#define	PAYLOAD_VIDEO 2	#define PAYLOAD_OTHER 3  /* ?? */	gint clock_rate;	double bytes_per_sample;		/* in case of continuous audio data */	char *zero_pattern;	gint pattern_length;	/* other usefull information */	gint normal_bitrate;	/*in bit/s */	char *mime_type;	guint32 flags;};typedef struct _PayloadType PayloadType;	struct _RtpProfile{	char *name;	PayloadType *payload[127];};typedef struct _RtpProfile RtpProfile;extern RtpProfile av_profile;#define rtp_profile_get_name(profile) 	(profile)->name#define rtp_profile_set_name(profile,nm) 	(profile)->name=(nm)#define rtp_profile_set_payload(profile,index,pt)  (profile)->payload[(index)]=(pt)#define rtp_profile_clear_payload(profile,index)	(profile)->payload[(index)]=NULL#define rtp_profile_clear_all(profile)	memset((void*)(profile),0,sizeof(RtpProfile))#define rtp_profile_get_payload(profile,index)	((profile)->payload[(index)])#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?