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

Unified Diff: webrtc/modules/audio_coding/codecs/audio_encoder.h

Issue 1184313002: Add AudioEncoder::GetTargetBitrate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing GN compile Created 5 years, 6 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/modules/audio_coding/codecs/audio_encoder_mutable_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/codecs/audio_encoder.h
diff --git a/webrtc/modules/audio_coding/codecs/audio_encoder.h b/webrtc/modules/audio_coding/codecs/audio_encoder.h
index 9025834dfa78704d16f00aed0b5bfe091eda86d7..fe6fd87dfd791b53247bd26cc59fbd73a08f3187 100644
--- a/webrtc/modules/audio_coding/codecs/audio_encoder.h
+++ b/webrtc/modules/audio_coding/codecs/audio_encoder.h
@@ -96,6 +96,11 @@ class AudioEncoder {
// Num10MsFramesInNextPacket().
virtual int Max10MsFramesInAPacket() const = 0;
+ // Returns the current target bitrate in bits/s. The value -1 means that the
+ // codec adapts the target automatically, and a current target cannot be
+ // provided.
+ virtual int GetTargetBitrate() const = 0;
+
// Changes the target bitrate. The implementation is free to alter this value,
// e.g., if the desired value is outside the valid range.
virtual void SetTargetBitrate(int bits_per_second) {}
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/audio_encoder_mutable_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698