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

Unified Diff: webrtc/video/vie_encoder.h

Issue 2887303003: Implement kBalanced degradation preference. (Closed)
Patch Set: address comments Created 3 years, 7 months 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
« no previous file with comments | « no previous file | webrtc/video/vie_encoder.cc » ('j') | webrtc/video/vie_encoder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/vie_encoder.h
diff --git a/webrtc/video/vie_encoder.h b/webrtc/video/vie_encoder.h
index f2d7cfdae2084609589bb26b196a273483a457e0..2b08d369b9394c526b2034d47e4121eaf8f453bb 100644
--- a/webrtc/video/vie_encoder.h
+++ b/webrtc/video/vie_encoder.h
@@ -189,8 +189,10 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>,
std::string ToString() const;
- void IncrementFramerate(int reason, int delta);
- void IncrementResolution(int reason, int delta);
+ void IncrementFramerate(int reason);
+ void IncrementResolution(int reason);
+ void DecrementFramerate(int reason);
+ void DecrementResolution(int reason);
// Gets the total number of downgrades (for all adapt reasons).
int FramerateCount() const;
@@ -205,6 +207,7 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>,
private:
std::string ToString(const std::vector<int>& counters) const;
int Count(const std::vector<int>& counters) const;
+ void MoveCount(std::vector<int>* counters, int from_reason);
// Degradation counters holding number of framerate/resolution reductions
// per adapt reason.
« no previous file with comments | « no previous file | webrtc/video/vie_encoder.cc » ('j') | webrtc/video/vie_encoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698