diff options
author | Luca Muscariello <lumuscar+fdio@cisco.com> | 2017-06-23 14:51:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2017-06-23 14:51:19 +0000 |
commit | ea99c36cadfab26fe4bf523931f87132c01a54a2 (patch) | |
tree | 13fc8ff2f6072add96f987a1a68a15c22d68d911 /Adaptation/BufferBasedAdaptationWithRateBased.h | |
parent | e207b82a2b7e70e2700cf1c4237a2e819c655809 (diff) | |
parent | a644414fd2c3a3f7f41e716b6875a78981e4cfe1 (diff) |
Merge "adding mpd live handling + automatic mpd fetching" into viper/master
Diffstat (limited to 'Adaptation/BufferBasedAdaptationWithRateBased.h')
-rw-r--r-- | Adaptation/BufferBasedAdaptationWithRateBased.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Adaptation/BufferBasedAdaptationWithRateBased.h b/Adaptation/BufferBasedAdaptationWithRateBased.h index 5c787d30..45147ed2 100644 --- a/Adaptation/BufferBasedAdaptationWithRateBased.h +++ b/Adaptation/BufferBasedAdaptationWithRateBased.h @@ -29,7 +29,8 @@ namespace adaptation class BufferBasedAdaptationWithRateBased : public AbstractAdaptationLogic { public: - BufferBasedAdaptationWithRateBased(dash::mpd::IMPD *mpd, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet, bool isVid, struct AdaptationParameters *params); +// BufferBasedAdaptationWithRateBased(dash::mpd::IMPD *mpd, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet, bool isVid, struct AdaptationParameters *params); + BufferBasedAdaptationWithRateBased(viper::managers::StreamType type, libdash::framework::mpd::MPDWrapper *mpdWrapper, struct AdaptationParameters *params); virtual ~BufferBasedAdaptationWithRateBased(); virtual LogicType getType(); @@ -48,22 +49,22 @@ public: private: uint64_t currentBitrate; - std::vector<uint64_t> availableBitrates; - viper::managers::IMultimediaManagerBase *multimediaManager; - dash::mpd::IRepresentation *representation; + std::vector<uint64_t> availableBitrates; + viper::managers::IMultimediaManagerBase *multimediaManager; + dash::mpd::IRepresentation *representation; uint32_t reservoirThreshold; uint32_t maxThreshold; uint32_t lastBufferFill; - int m_count; - int switchUpThreshold; - bool bufferEOS; - bool shouldAbort; - double alphaRate; + int m_count; + int switchUpThreshold; + bool bufferEOS; + bool shouldAbort; + double alphaRate; uint64_t averageBw; uint64_t instantBw; - int myQuality; - double slackParam; - bool isCheckedForReceiver; + int myQuality; + double slackParam; + bool isCheckedForReceiver; }; } } |