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
This commit is contained in:
sprang@webrtc.org
2014-01-07 09:54:34 +00:00
parent 0b7d8e6fcb
commit ccd42840bc
13 changed files with 575 additions and 45 deletions

View File

@ -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) {}