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

Unified Diff: webrtc/test/fake_encoder.h

Issue 2510583002: Reland #2 of Issue 2434073003: Extract bitrate allocation ... (Closed)
Patch Set: Addressed comments Created 4 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
« no previous file with comments | « webrtc/test/configurable_frame_size_encoder.cc ('k') | webrtc/test/fake_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fake_encoder.h
diff --git a/webrtc/test/fake_encoder.h b/webrtc/test/fake_encoder.h
index d5e7b480dfeac2bb47057921f38f16db8c764022..57b39a4404ed857b3e4c4cc7323e9e1f2fb0034e 100644
--- a/webrtc/test/fake_encoder.h
+++ b/webrtc/test/fake_encoder.h
@@ -39,7 +39,8 @@ class FakeEncoder : public VideoEncoder {
EncodedImageCallback* callback) override;
int32_t Release() override;
int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override;
- int32_t SetRates(uint32_t new_target_bitrate, uint32_t framerate) override;
+ int32_t SetRateAllocation(const BitrateAllocation& rate_allocation,
+ uint32_t framerate) override;
const char* ImplementationName() const override;
static const char* kImplementationName;
@@ -48,7 +49,7 @@ class FakeEncoder : public VideoEncoder {
Clock* const clock_;
VideoCodec config_;
EncodedImageCallback* callback_;
- int target_bitrate_kbps_;
+ BitrateAllocation target_bitrate_;
int max_target_bitrate_kbps_;
int64_t last_encode_time_ms_;
uint8_t encoded_buffer_[100000];
« no previous file with comments | « webrtc/test/configurable_frame_size_encoder.cc ('k') | webrtc/test/fake_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698