20 #include "HybridABRManager.h"
23 void HybridABRManager::ReadPlayerConfig(AampAbrConfig *mAampAbrConfig)
27 long HybridABRManager::CheckAbrThresholdSize(
int bufferlen,
int downloadTimeMs ,
long currentProfilebps ,
int fragmentDurationMs ,
CurlAbortReason abortReason)
32 void HybridABRManager::UpdateABRBitrateDataBasedOnCacheLength(std::vector < std::pair<long long,long> > &mAbrBitrateData,
long downloadbps,
bool LowLatencyMode)
36 void HybridABRManager::UpdateABRBitrateDataBasedOnCacheLife(std::vector < std::pair<long long,long> > &mAbrBitrateData , std::vector< long> &tmpData)
40 long HybridABRManager::UpdateABRBitrateDataBasedOnCacheOutlier(std::vector< long> &tmpData)
45 bool HybridABRManager::CheckProfileChange(
double totalFetchedDuration ,
int currProfileIndex ,
long availBW)
50 bool HybridABRManager::IsLowestProfile(
int currentProfileIndex,
bool IstrickplayMode)
55 void HybridABRManager::GetDesiredProfileOnBuffer(
int currProfileIndex,
int &newProfileIndex,
double bufferValue,
double minBufferNeeded,
const std::string& periodId)
60 void HybridABRManager::CheckRampupFromSteadyState(
int currProfileIndex,
int &newProfileIndex,
long nwBandwidth,
double bufferValue,
long newBandwidth,
BitrateChangeReason &mhBitrateReason,
int &mMaxBufferCountCheck,
const std::string& periodId)
64 void HybridABRManager::CheckRampdownFromSteadyState(
int currProfileIndex,
int &newProfileIndex,
BitrateChangeReason &mBitrateReason,
int mABRLowBufferCounter,
const std::string& periodId)
68 long long HybridABRManager::ABRGetCurrentTimeMS(
void)
73 bool HybridABRManager::GetLowLatencyStartABR()
78 void HybridABRManager::SetLowLatencyStartABR(
bool bStart)
82 bool HybridABRManager::GetLowLatencyServiceConfigured()
87 void HybridABRManager::SetLowLatencyServiceConfigured(
bool bConfig)
91 bool HybridABRManager::IsABRDataGoodToEstimate(
long time_diff)
96 void HybridABRManager::CheckLLDashABRSpeedStoreSize(
struct SpeedCache *speedcache,
long &bitsPerSecond,
long time_now,
long total_dl_diff,
long time_diff,
long currentTotalDownloaded)