代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。