📄 rfc3984.h
字号:
/*mediastreamer2 library - modular sound and video processing and streamingCopyright (C) 2006 Simon MORLAT (simon.morlat@linphone.org)This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/#ifndef rfc3984_h#define rfc3984_h#include "mediastreamer2/mscommon.h"#include "mediastreamer2/msqueue.h"#ifdef __cplusplusextern "C"{#endiftypedef struct Rfc3984Context{ MSQueue q; mblk_t *m; int maxsz; uint32_t last_ts; uint8_t mode; bool_t stap_a_allowed; uint8_t reserved;} Rfc3984Context;void rfc3984_init(Rfc3984Context *ctx);void rfc3984_set_mode(Rfc3984Context *ctx, int mode);/* some stupid phones don't decode STAP-A packets ...*/void rfc3984_enable_stap_a(Rfc3984Context *ctx, bool_t yesno);/*process NALUs and pack them into rtp payloads */void rfc3984_pack(Rfc3984Context *ctx, MSQueue *naluq, MSQueue *rtpq, uint32_t ts);/*process incoming rtp data and output NALUs, whenever possible*/void rfc3984_unpack(Rfc3984Context *ctx, mblk_t *im, MSQueue *naluq);void rfc3984_uninit(Rfc3984Context *ctx);#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -