diff options
author | Chong Zhang <chz@google.com> | 2014-07-22 09:12:03 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-07-22 16:19:56 -0700 |
commit | 2606b10d51c2dceb851a2ea63e803aba4134bf00 (patch) | |
tree | 7a2d5f875972b20188bbce44e5e4b78cc5f0c4af /include/media/stagefright | |
parent | 225d5b20409fd400bfa4ed5e9bc1d5babb498471 (diff) | |
download | frameworks_av-2606b10d51c2dceb851a2ea63e803aba4134bf00.zip frameworks_av-2606b10d51c2dceb851a2ea63e803aba4134bf00.tar.gz frameworks_av-2606b10d51c2dceb851a2ea63e803aba4134bf00.tar.bz2 |
update battery stats for video/audio
Bug: 12979595
Change-Id: Iafd93046a4fd9f22bcd66084deace746a7ca5d3c
Diffstat (limited to 'include/media/stagefright')
-rw-r--r-- | include/media/stagefright/MediaCodec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaCodec.h b/include/media/stagefright/MediaCodec.h index 3f7508b..26a0963 100644 --- a/include/media/stagefright/MediaCodec.h +++ b/include/media/stagefright/MediaCodec.h @@ -30,6 +30,7 @@ struct AMessage; struct AString; struct CodecBase; struct ICrypto; +struct IBatteryStats; struct SoftwareRenderer; struct Surface; @@ -51,6 +52,8 @@ struct MediaCodec : public AHandler { CB_OUTPUT_FORMAT_CHANGED = 4, }; + struct BatteryNotifier; + static sp<MediaCodec> CreateByType( const sp<ALooper> &looper, const char *mime, bool encoder); @@ -225,6 +228,9 @@ private: sp<AMessage> mInputFormat; sp<AMessage> mCallback; + bool mBatteryStatNotified; + bool mIsVideo; + // initial create parameters AString mInitName; bool mInitNameIsType; @@ -294,6 +300,7 @@ private: status_t onSetParameters(const sp<AMessage> ¶ms); status_t amendOutputFormatWithCodecSpecificData(const sp<ABuffer> &buffer); + void updateBatteryStat(); DISALLOW_EVIL_CONSTRUCTORS(MediaCodec); }; |