1 Star 0 Fork 2

anonymous / rtsp

forked from 飞猪饭饭 / rtsp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
r_util.h 933 Bytes
一键复制 编辑 原始数据 按行查看 历史
greenjim301 提交于 2017-10-02 12:07 . first commit
#ifndef __R_UTIL_H__
#define __R_UTIL_H__
#include "r_string.h"
#include <stdint.h>
#include <stdarg.h>
#include <debugapi.h>
enum
{
RTSP_INIT,
RTSP_OPTIONS_SEND,
RTSP_DESCRIBE_SEND,
RTSP_SETUP0_SEND,
RTSP_SETUP1_SEND,
RTSP_PLAY_SEND,
RTSP_REV_STREAM,
RTSP_TEARDOWN_SEND,
};
#define VIDEO_TYPE 0
#define AUDIO_TYPE 1
#define RTP_VERSION 2
#define RTP_FLAG_MARKER 0x2 ///< RTP marker bit was set for this packet
#define R_RB16(x) ((((const uint8_t*)(x))[0] << 8) | ((const uint8_t*)(x))[1])
#define R_RB32(x) ((((const uint8_t*)(x))[0] << 24) | \
(((const uint8_t*)(x))[1] << 16) | \
(((const uint8_t*)(x))[2] << 8) | \
((const uint8_t*)(x))[3])
static const uint8_t start_sequence[] = { 0, 0, 0, 1 };
void SkipSpace(char*& p);
int SkipLine(char*& p);
int get_rtsp_addr(r_string& url, r_string& host, int& port);
void r_log(const char* pszFormat, ...) ;
#endif
1
https://gitee.com/jibamao/rtsp.git
git@gitee.com:jibamao/rtsp.git
jibamao
rtsp
rtsp
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891