diff options
author | sprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-01-07 09:54:34 +0000 |
---|---|---|
committer | sprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-01-07 09:54:34 +0000 |
commit | 49812e6680a6392d53897b82b1b8dbfca6dd4faa (patch) | |
tree | a5f2d0931cb826a06cc543d28cca0f37d13d1c13 /config.h | |
parent | c902d880d3ea38dd395f6b896e0fbc904b6678dd (diff) | |
download | webrtc-49812e6680a6392d53897b82b1b8dbfca6dd4faa.tar.gz |
Wire up statistics in video send stream of new video engine api
Note, this CL does not contain any tests. Those are implemeted as call
tests and will be submitted when the receive stream is wired up as well.
BUG=2235
R=mflodman@webrtc.org, pbos@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/5559006
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5344 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -16,6 +16,7 @@ #include <string> #include <vector> +#include "webrtc/common_types.h" #include "webrtc/typedefs.h" namespace webrtc { @@ -33,6 +34,22 @@ struct RtpStatistics { std::string c_name; }; +struct StreamStats { + StreamStats() : key_frames(0), delta_frames(0), bitrate_bps(0) {} + uint32_t key_frames; + uint32_t delta_frames; + int32_t bitrate_bps; + StreamDataCounters rtp_stats; + RtcpStatistics rtcp_stats; + + bool operator==(const StreamStats& other) const { + return key_frames == other.key_frames && + delta_frames == other.delta_frames && + bitrate_bps == other.bitrate_bps && rtp_stats == other.rtp_stats && + rtcp_stats == other.rtcp_stats; + } +}; + // Settings for NACK, see RFC 4585 for details. struct NackConfig { NackConfig() : rtp_history_ms(0) {} |