Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Unified Diff: webrtc/modules/video_coding/utility/frame_dropper.h

Issue 1440873005: modules/video_coding/utility: Remove include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix after rebase mistake Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « webrtc/modules/video_coding/media_optimization.cc ('k') | webrtc/modules/video_coding/utility/frame_dropper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698