📄 payloadtype.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -