summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2013-09-27 17:42:12 -0700
committerJohann <johannkoenig@google.com>2013-09-27 17:47:49 -0700
commit30c08634416a99a0f627e4de3a5f49dcf0a72fd3 (patch)
treef5bad83acd4b9e75579f772b4c7e27eb08cc3189 /media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h
parent465da60d885c8fa4e7cea4626478574ce17a54a9 (diff)
downloadframeworks_av-30c08634416a99a0f627e4de3a5f49dcf0a72fd3.zip
frameworks_av-30c08634416a99a0f627e4de3a5f49dcf0a72fd3.tar.gz
frameworks_av-30c08634416a99a0f627e4de3a5f49dcf0a72fd3.tar.bz2
Change VP8 encoder bitrate
Allow the bitrate to be updated while the encoder is running. Bug: 8422347 Change-Id: I8427fe20921b00f92b8f99fe21691709fab354b0
Diffstat (limited to 'media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h')
-rw-r--r--media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h b/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h
index 4ee5e51..076830f 100644
--- a/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h
+++ b/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.h
@@ -128,7 +128,10 @@ private:
int32_t mHeight;
// Target bitrate set for the encoder, in bits per second.
- int32_t mBitrate;
+ uint32_t mBitrate;
+
+ // If a request for a change it bitrate has been received.
+ bool mBitrateUpdated;
// Bitrate control mode, either constant or variable
vpx_rc_mode mBitrateControlMode;