diff options
author | sprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-12-04 15:09:27 +0000 |
---|---|---|
committer | sprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-12-04 15:09:27 +0000 |
commit | 5fdd10a56c3d7dcf2ea3cb2cd1118f616b783d24 (patch) | |
tree | 2d13269542ec8b68c105c356ba6191666a789cca /common_types.h | |
parent | f1630b1f53156a9723ae5431f2fb1e54786593b9 (diff) | |
download | webrtc-5fdd10a56c3d7dcf2ea3cb2cd1118f616b783d24.tar.gz |
Add send frame rate statistics callback
BUG=2235
R=mflodman@webrtc.org, pbos@webrtc.org, stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/4479005
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5213 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'common_types.h')
-rw-r--r-- | common_types.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/common_types.h b/common_types.h index 7138b053..a45cf069 100644 --- a/common_types.h +++ b/common_types.h @@ -138,7 +138,6 @@ enum FileFormats kFileFormatPcm32kHzFile = 9 }; - enum ProcessingTypes { kPlaybackPerChannel = 0, @@ -148,6 +147,15 @@ enum ProcessingTypes kRecordingPreprocessing }; +enum FrameType +{ + kFrameEmpty = 0, + kAudioFrameSpeech = 1, + kAudioFrameCN = 2, + kVideoFrameKey = 3, // independent frame + kVideoFrameDelta = 4, // depends on the previus frame +}; + // Interface for encrypting and decrypting regular data and rtp/rtcp packets. // Implement this interface if you wish to provide an encryption scheme to // the voice or video engines. @@ -302,9 +310,9 @@ class BitrateStatisticsObserver { class FrameCountObserver { public: virtual ~FrameCountObserver() {} - virtual void Notify(const unsigned int key_frames, - const unsigned int delta_frames, - const unsigned int ssrc) = 0; + virtual void FrameCountUpdated(FrameType frame_type, + uint32_t frame_count, + const unsigned int ssrc) = 0; }; // ================================================================== @@ -322,17 +330,6 @@ struct CodecInst int rate; // bits/sec unlike {start,min,max}Bitrate elsewhere in this file! }; -enum FrameType -{ - kFrameEmpty = 0, - kAudioFrameSpeech = 1, - kAudioFrameCN = 2, - kVideoFrameKey = 3, // independent frame - kVideoFrameDelta = 4, // depends on the previus frame - kVideoFrameGolden = 5, // depends on a old known previus frame - kVideoFrameAltRef = 6 -}; - // RTP enum {kRtpCsrcSize = 15}; // RFC 3550 page 13 |