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

Unified Diff: webrtc/video_send_stream.h

Issue 2368223002: Add VideoSendStream::Stats::prefered_media_bitrate_bps (Closed)
Patch Set: . Created 4 years, 3 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
« webrtc/video/vie_encoder.cc ('K') | « webrtc/video/vie_encoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_send_stream.h
diff --git a/webrtc/video_send_stream.h b/webrtc/video_send_stream.h
index 2948d46874245962bf3488b2090952abc4f9f2d6..b53d16eba2058685be2e65aae541ecbd9fac2cb1 100644
--- a/webrtc/video_send_stream.h
+++ b/webrtc/video_send_stream.h
@@ -14,6 +14,7 @@
#include <map>
#include <string>
#include <vector>
+#include <utility>
#include "webrtc/common_types.h"
#include "webrtc/common_video/include/frame_callback.h"
@@ -53,8 +54,14 @@ class VideoSendStream {
int encode_frame_rate = 0;
int avg_encode_time_ms = 0;
int encode_usage_percent = 0;
+ // Bitrate the encoder is currently configured to use due to bandwidth
+ // limitations.
int target_media_bitrate_bps = 0;
+ // Bitrate the encoder is actually producing.
int media_bitrate_bps = 0;
+ // Media bitrate this VideoSendStream is configured to prefer if there are
+ // no bandwidth limitations.
+ int preferred_media_bitrate_bps = 0;
bool suspended = false;
bool bw_limited_resolution = false;
std::map<uint32_t, StreamStats> substreams;
« webrtc/video/vie_encoder.cc ('K') | « webrtc/video/vie_encoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698