提交 3e1f5bb0 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Move some attributes from RtpStream.h to RtpStreamRecv.h.

上级 68207ef8
...@@ -22,8 +22,6 @@ namespace RTC ...@@ -22,8 +22,6 @@ namespace RTC
// Given as argument. // Given as argument.
uint32_t clockRate = 0; uint32_t clockRate = 0;
bool started = false; // Whether at least a RTP packet has been received. bool started = false; // Whether at least a RTP packet has been received.
uint32_t last_sr_timestamp = 0; // The middle 32 bits out of 64 in the NTP timestamp received in the most recent sender report.
uint64_t last_sr_received = 0; // Wallclock time representing the most recent sender report arrival.
// https://tools.ietf.org/html/rfc3550#appendix-A.1 stuff. // https://tools.ietf.org/html/rfc3550#appendix-A.1 stuff.
uint16_t max_seq = 0; // Highest seq. number seen. uint16_t max_seq = 0; // Highest seq. number seen.
uint32_t cycles = 0; // Shifted count of seq. number cycles. uint32_t cycles = 0; // Shifted count of seq. number cycles.
......
...@@ -22,6 +22,8 @@ namespace RTC ...@@ -22,6 +22,8 @@ namespace RTC
void CalculateJitter(uint32_t rtpTimestamp); void CalculateJitter(uint32_t rtpTimestamp);
private: private:
uint32_t last_sr_timestamp = 0; // The middle 32 bits out of 64 in the NTP timestamp received in the most recent sender report.
uint64_t last_sr_received = 0; // Wallclock time representing the most recent sender report arrival.
uint32_t transit = 0; // Relative trans time for prev pkt. uint32_t transit = 0; // Relative trans time for prev pkt.
uint32_t jitter = 0; // Estimated jitter. uint32_t jitter = 0; // Estimated jitter.
}; };
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论