summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-10-12 16:55:11 -0700
committerAndreas Huber <andih@google.com>2010-10-13 10:39:41 -0700
commit7fbdb0903dfbf70b314a74e64e28fb880cdb9247 (patch)
treefc9511b938ec6183dcf9d41d5f892bee2e8d85de /media/libstagefright/include
parent5cb77e080ced5362b5f047e107327b3cb6ece6c9 (diff)
downloadframeworks_av-7fbdb0903dfbf70b314a74e64e28fb880cdb9247.zip
frameworks_av-7fbdb0903dfbf70b314a74e64e28fb880cdb9247.tar.gz
frameworks_av-7fbdb0903dfbf70b314a74e64e28fb880cdb9247.tar.bz2
Attempt to derive the avg. bitrate of the entire stream from metadata.
related-to-bug: 3093224 Change-Id: I4726b023373e04468cc12fd64f7fe6ee923add95
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r--media/libstagefright/include/AwesomePlayer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h
index 079adca..46a0c65 100644
--- a/media/libstagefright/include/AwesomePlayer.h
+++ b/media/libstagefright/include/AwesomePlayer.h
@@ -152,6 +152,8 @@ private:
bool mSeekNotificationSent;
int64_t mSeekTimeUs;
+ int64_t mBitrate; // total bitrate of the file (in bps) or -1 if unknown.
+
bool mWatchForAudioSeekComplete;
bool mWatchForAudioEOS;
@@ -254,6 +256,8 @@ private:
static void OnRTSPSeekDoneWrapper(void *cookie);
void onRTSPSeekDone();
+ bool getBitrate(int64_t *bitrate);
+
AwesomePlayer(const AwesomePlayer &);
AwesomePlayer &operator=(const AwesomePlayer &);
};