1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef VIDEO_REPORT_BLOCK_STATS_H_
- #define VIDEO_REPORT_BLOCK_STATS_H_
- #include <stdint.h>
- #include <map>
- #include "modules/rtp_rtcp/include/rtcp_statistics.h"
- namespace webrtc {
- class ReportBlockStats {
- public:
- ReportBlockStats();
- ~ReportBlockStats();
-
- void Store(uint32_t ssrc, const RtcpStatistics& rtcp_stats);
-
-
- int FractionLostInPercent() const;
- private:
-
- struct Report {
- uint32_t extended_highest_sequence_number;
- int32_t packets_lost;
- };
-
-
- void StoreAndAddPacketIncrement(uint32_t ssrc, const Report& report);
-
- uint32_t num_sequence_numbers_;
- uint32_t num_lost_sequence_numbers_;
-
- std::map<uint32_t, Report> prev_reports_;
- };
- }
- #endif
|