aboutsummaryrefslogtreecommitdiff
path: root/webrtc/config.h
diff options
context:
space:
mode:
authorsprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-01-07 09:54:34 +0000
committersprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-01-07 09:54:34 +0000
commitccd42840bcee8db145be91b3308912a24f710a6f (patch)
tree2ffeacd1a3398c4a0397f9001aa028eb96d2e772 /webrtc/config.h
parent0b7d8e6fcb819974315d46e033b04bbe96d206f2 (diff)
downloadwebrtc-ccd42840bcee8db145be91b3308912a24f710a6f.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@5344 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/config.h')
-rw-r--r--webrtc/config.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/webrtc/config.h b/webrtc/config.h
index 3ff3bb861f..f42895ae21 100644
--- a/webrtc/config.h
+++ b/webrtc/config.h
@@ -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) {}