USB_Config_Vendor/CC_SDK/Include/Module/Comm/CCRTCP.h

27 lines
950 B
C
Raw Normal View History

2026-02-03 14:36:30 +08:00
#ifndef SRCCTL_CC_RTCP_H
#define SRCCTL_CC_RTCP_H
#include <cstdint>
namespace CTL{
// 示例发送者报告SR和接收者报告RR的结构体简化版
struct SenderReport {
uint32_t ssrc; // 同步源标识符
uint32_t ntp_timestamp; // 网络时间协议时间戳
uint32_t rtp_timestamp; // RTP时间戳
uint32_t packet_count; // 发送的RTP包数量
uint32_t octet_count; // 发送的RTP字节总量
};
struct ReceiverReport {
uint32_t ssrc; // 同步源标识符
float fraction_lost; // 丢包率
uint32_t cumulative_lost; // 累计丢包数
uint32_t highest_seq_num; // 已接收的最大序列号
uint32_t jitter; // 抖动
uint32_t lsr; // 最后一次SR报告的NTP中间32位
uint32_t dlsr; // 延迟自SR以来的时间
};
}
#endif