summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
diff options
context:
space:
mode:
authorLeena Winterrowd <lenhardw@codeaurora.org>2015-01-29 07:40:03 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-29 07:40:03 +0000
commitce25d85ad22e6df4b861d17e9e67cb6d0e62c363 (patch)
treebacc1924137d3e0e749a1ba47756f3c80eaa1718 /media/libstagefright/include
parent0512881b08d03d10d6f164566c9a787d2f56ab6d (diff)
parenta93fd2be99d21629bed504b9b7df035fc2f54562 (diff)
downloadframeworks_av-ce25d85ad22e6df4b861d17e9e67cb6d0e62c363.zip
frameworks_av-ce25d85ad22e6df4b861d17e9e67cb6d0e62c363.tar.gz
frameworks_av-ce25d85ad22e6df4b861d17e9e67cb6d0e62c363.tar.bz2
am a93fd2be: stagefright: httplive: Decouple block size from bandwidth estimate
* commit 'a93fd2be99d21629bed504b9b7df035fc2f54562': stagefright: httplive: Decouple block size from bandwidth estimate
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r--media/libstagefright/include/HTTPBase.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/include/HTTPBase.h b/media/libstagefright/include/HTTPBase.h
index 1c3cd5e..0c66e27 100644
--- a/media/libstagefright/include/HTTPBase.h
+++ b/media/libstagefright/include/HTTPBase.h
@@ -48,6 +48,8 @@ struct HTTPBase : public DataSource {
virtual status_t setBandwidthStatCollectFreq(int32_t freqMs);
+ virtual void setBandwidthHistorySize(size_t numHistoryItems);
+
static void RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag);
static void UnRegisterSocketUserTag(int sockfd);
@@ -55,7 +57,7 @@ struct HTTPBase : public DataSource {
static void UnRegisterSocketUserMark(int sockfd);
protected:
- void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
+ virtual void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
private:
struct BandwidthEntry {
@@ -69,6 +71,7 @@ private:
size_t mNumBandwidthHistoryItems;
int64_t mTotalTransferTimeUs;
size_t mTotalTransferBytes;
+ size_t mMaxBandwidthHistoryItems;
enum {
kMinBandwidthCollectFreqMs = 1000, // 1 second