Index: webrtc/modules/video_coding/utility/frame_dropper.h |
diff --git a/webrtc/modules/video_coding/utility/include/frame_dropper.h b/webrtc/modules/video_coding/utility/frame_dropper.h |
similarity index 90% |
rename from webrtc/modules/video_coding/utility/include/frame_dropper.h |
rename to webrtc/modules/video_coding/utility/frame_dropper.h |
index 2b78a7264f06e664e50ad2ddc97fd1c88f717c7a..2293cefed2e6489525ab4bf6034572ef51cf8eb0 100644 |
--- a/webrtc/modules/video_coding/utility/include/frame_dropper.h |
+++ b/webrtc/modules/video_coding/utility/frame_dropper.h |
@@ -8,23 +8,21 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_INCLUDE_FRAME_DROPPER_H_ |
-#define WEBRTC_MODULES_VIDEO_CODING_UTILITY_INCLUDE_FRAME_DROPPER_H_ |
+#ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_FRAME_DROPPER_H_ |
+#define WEBRTC_MODULES_VIDEO_CODING_UTILITY_FRAME_DROPPER_H_ |
#include <cstddef> |
#include "webrtc/base/exp_filter.h" |
#include "webrtc/typedefs.h" |
-namespace webrtc |
-{ |
+namespace webrtc { |
// The Frame Dropper implements a variant of the leaky bucket algorithm |
// for keeping track of when to drop frames to avoid bit rate |
// over use when the encoder can't keep its bit rate. |
-class FrameDropper |
-{ |
-public: |
+class FrameDropper { |
+ public: |
FrameDropper(); |
explicit FrameDropper(float max_time_drops); |
virtual ~FrameDropper() {} |
@@ -69,7 +67,7 @@ public: |
// instruction of when to drop frames. |
virtual float ActualFrameRate(uint32_t inputFrameRate) const; |
-private: |
+ private: |
void FillBucket(float inKbits, float outKbits); |
void UpdateRatio(); |
void CapAccumulator(); |
@@ -91,8 +89,8 @@ private: |
bool _fastMode; |
float _cap_buffer_size; |
float _max_time_drops; |
-}; // end of VCMFrameDropper class |
+}; // end of VCMFrameDropper class |
} // namespace webrtc |
-#endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_INCLUDE_FRAME_DROPPER_H_ |
+#endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_FRAME_DROPPER_H_ |