X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Flibjingle%2Fsource%2Ftalk%2Fmedia%2Fbase%2Fvideocapturer.h;h=6b1c46ddd35b07da3986f1d3818447997a24b8f9;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=c45ad78f8ec64eb6203f7950c6a7e78cb2815784;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/libjingle/source/talk/media/base/videocapturer.h b/src/third_party/libjingle/source/talk/media/base/videocapturer.h index c45ad78..6b1c46d 100644 --- a/src/third_party/libjingle/source/talk/media/base/videocapturer.h +++ b/src/third_party/libjingle/source/talk/media/base/videocapturer.h @@ -294,7 +294,8 @@ class VideoCapturer // should be called only periodically to log statistics. void GetStats(VariableInfo* adapt_drop_stats, VariableInfo* effect_drop_stats, - VariableInfo* frame_time_stats); + VariableInfo* frame_time_stats, + VideoFormat* last_captured_frame_format); protected: // Callback attached to SignalFrameCaptured where SignalVideoFrames is called. @@ -348,6 +349,8 @@ class VideoCapturer // Returns true if format doesn't fulfill all applied restrictions. bool ShouldFilterFormat(const VideoFormat& format) const; + void UpdateStats(const CapturedFrame* captured_frame); + // Helper function to save statistics on the current data from a // RollingAccumulator into stats. template @@ -385,6 +388,8 @@ class VideoCapturer talk_base::RollingAccumulator effect_frame_drops_data_; double previous_frame_time_; talk_base::RollingAccumulator frame_time_data_; + // The captured frame format before potential adapation. + VideoFormat last_captured_frame_format_; talk_base::CriticalSection crit_; VideoProcessors video_processors_;