stream_filter/dash/mpd/AdaptationSet.cpp \
stream_filter/dash/mpd/AdaptationSet.h \
stream_filter/dash/mpd/BaseUrl.h \
- stream_filter/dash/mpd/BasicCMManager.cpp \
- stream_filter/dash/mpd/BasicCMManager.h \
stream_filter/dash/mpd/BasicCMParser.cpp \
stream_filter/dash/mpd/BasicCMParser.h \
stream_filter/dash/mpd/CommonAttributesElements.cpp \
stream_filter/dash/mpd/CommonAttributesElements.h \
stream_filter/dash/mpd/ContentDescription.cpp \
stream_filter/dash/mpd/ContentDescription.h \
- stream_filter/dash/mpd/IMPDManager.h \
- stream_filter/dash/mpd/IMPDManager.cpp \
+ stream_filter/dash/mpd/MPDManager.hpp \
+ stream_filter/dash/mpd/MPDManager.cpp \
stream_filter/dash/mpd/IMPDParser.cpp \
stream_filter/dash/mpd/IMPDParser.h \
stream_filter/dash/mpd/IsoffMainParser.cpp \
stream_filter/dash/mpd/IsoffMainParser.h \
- stream_filter/dash/mpd/IsoffMainManager.cpp \
- stream_filter/dash/mpd/IsoffMainManager.h \
stream_filter/dash/mpd/MPD.cpp \
stream_filter/dash/mpd/MPD.h \
stream_filter/dash/mpd/MPDFactory.cpp \
return this->buffer->peek(pp_peek, i_peek);
}
-const mpd::IMPDManager* DASHManager::getMpdManager() const
+const mpd::MPDManager* DASHManager::getMpdManager() const
{
return this->mpdManager;
}
#include "xml/Node.h"
#include "adaptationlogic/IAdaptationLogic.h"
#include "adaptationlogic/AdaptationLogicFactory.h"
-#include "mpd/IMPDManager.h"
+#include "mpd/MPDManager.hpp"
#include "mpd/MPDManagerFactory.h"
#include "buffer/BlockBuffer.h"
#include "DASHDownloader.h"
int peek ( const uint8_t **pp_peek, size_t i_peek );
int seekBackwards ( unsigned len );
- const mpd::IMPDManager* getMpdManager () const;
+ const mpd::MPDManager* getMpdManager () const;
const logic::IAdaptationLogic* getAdaptionLogic() const;
const http::Chunk *getCurrentChunk() const;
http::Chunk *currentChunk;
logic::IAdaptationLogic *adaptationLogic;
logic::IAdaptationLogic::LogicType logicType;
- mpd::IMPDManager *mpdManager;
+ mpd::MPDManager *mpdManager;
mpd::MPD *mpd;
stream_t *stream;
DASHDownloader *downloader;
using namespace dash::xml;
using namespace dash::mpd;
-AbstractAdaptationLogic::AbstractAdaptationLogic (IMPDManager *mpdManager, stream_t *stream) :
+AbstractAdaptationLogic::AbstractAdaptationLogic (MPDManager *mpdManager, stream_t *stream) :
bpsAvg (0),
bpsLastChunk (0),
mpdManager (mpdManager),
#include "xml/Node.h"
#include "http/Chunk.h"
#include "mpd/MPD.h"
-#include "mpd/IMPDManager.h"
+#include "mpd/MPDManager.hpp"
#include "mpd/Period.h"
#include "mpd/Representation.h"
#include "mpd/Segment.h"
class AbstractAdaptationLogic : public IAdaptationLogic
{
public:
- AbstractAdaptationLogic (dash::mpd::IMPDManager *mpdManager, stream_t *stream);
+ AbstractAdaptationLogic (dash::mpd::MPDManager *mpdManager, stream_t *stream);
virtual ~AbstractAdaptationLogic ();
virtual void downloadRateChanged (uint64_t bpsAvg, uint64_t bpsLastChunk);
private:
int bpsAvg;
long bpsLastChunk;
- dash::mpd::IMPDManager *mpdManager;
+ dash::mpd::MPDManager *mpdManager;
stream_t *stream;
mtime_t bufferedMicroSec;
int bufferedPercent;
using namespace dash::mpd;
IAdaptationLogic* AdaptationLogicFactory::create ( IAdaptationLogic::LogicType logic,
- IMPDManager *mpdManager, stream_t *stream)
+ MPDManager *mpdManager, stream_t *stream)
{
switch(logic)
{
#include "adaptationlogic/IAdaptationLogic.h"
#include "xml/Node.h"
-#include "mpd/IMPDManager.h"
+#include "mpd/MPDManager.hpp"
#include "adaptationlogic/AlwaysBestAdaptationLogic.h"
#include "adaptationlogic/RateBasedAdaptationLogic.h"
class AdaptationLogicFactory
{
public:
- static IAdaptationLogic* create (IAdaptationLogic::LogicType logic, dash::mpd::IMPDManager *mpdManager, stream_t *stream);
+ static IAdaptationLogic* create (IAdaptationLogic::LogicType logic, dash::mpd::MPDManager *mpdManager, stream_t *stream);
};
}
}
using namespace dash::http;
using namespace dash::mpd;
-AlwaysBestAdaptationLogic::AlwaysBestAdaptationLogic (IMPDManager *mpdManager, stream_t *stream) :
+AlwaysBestAdaptationLogic::AlwaysBestAdaptationLogic (MPDManager *mpdManager, stream_t *stream) :
AbstractAdaptationLogic (mpdManager, stream)
{
this->mpdManager = mpdManager;
#include "Representationselectors.hpp"
#include "http/Chunk.h"
#include "xml/Node.h"
-#include "mpd/IMPDManager.h"
+#include "mpd/MPDManager.hpp"
#include "mpd/Period.h"
#include "mpd/Segment.h"
-#include "mpd/BasicCMManager.h"
#include <vector>
namespace dash
class AlwaysBestAdaptationLogic : public AbstractAdaptationLogic
{
public:
- AlwaysBestAdaptationLogic (dash::mpd::IMPDManager *mpdManager, stream_t *stream);
+ AlwaysBestAdaptationLogic (dash::mpd::MPDManager *mpdManager, stream_t *stream);
virtual ~AlwaysBestAdaptationLogic ();
dash::http::Chunk* getNextChunk();
private:
std::vector<mpd::Segment *> schedule;
- dash::mpd::IMPDManager *mpdManager;
+ dash::mpd::MPDManager *mpdManager;
size_t count;
dash::mpd::Representation *bestRepresentation;
using namespace dash::http;
using namespace dash::mpd;
-RateBasedAdaptationLogic::RateBasedAdaptationLogic (IMPDManager *mpdManager, stream_t *stream) :
+RateBasedAdaptationLogic::RateBasedAdaptationLogic (MPDManager *mpdManager, stream_t *stream) :
AbstractAdaptationLogic (mpdManager, stream),
mpdManager (mpdManager),
count (0),
#include "adaptationlogic/AbstractAdaptationLogic.h"
#include "xml/Node.h"
-#include "mpd/IMPDManager.h"
+#include "mpd/MPDManager.hpp"
#include "http/Chunk.h"
-#include "mpd/BasicCMManager.h"
#include <vlc_common.h>
#include <vlc_stream.h>
class RateBasedAdaptationLogic : public AbstractAdaptationLogic
{
public:
- RateBasedAdaptationLogic (dash::mpd::IMPDManager *mpdManager, stream_t *stream);
+ RateBasedAdaptationLogic (dash::mpd::MPDManager *mpdManager, stream_t *stream);
dash::http::Chunk* getNextChunk();
const dash::mpd::Representation *getCurrentRepresentation() const;
private:
- dash::mpd::IMPDManager *mpdManager;
+ dash::mpd::MPDManager *mpdManager;
size_t count;
dash::mpd::Period *currentPeriod;
int width;
+++ /dev/null
-/*
- * BasicCMManager.cpp
- *****************************************************************************
- * Copyright (C) 2010 - 2011 Klagenfurt University
- *
- * Created on: Aug 10, 2010
- * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
- * Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "BasicCMManager.h"
-
-using namespace dash::mpd;
-
-BasicCMManager::BasicCMManager(MPD *mpd) :
- IMPDManager(mpd)
-{
-
-}
+++ /dev/null
-/*
- * BasicCMManager.h
- *****************************************************************************
- * Copyright (C) 2010 - 2011 Klagenfurt University
- *
- * Created on: Aug 10, 2010
- * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
- * Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#ifndef BASICCMMANAGER_H_
-#define BASICCMMANAGER_H_
-
-#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "mpd/IMPDManager.h"
-#include "mpd/SegmentInfo.h"
-#include "mpd/Segment.h"
-
-namespace dash
-{
- namespace mpd
- {
- class BasicCMManager : public IMPDManager
- {
- public:
- BasicCMManager (MPD *mpd);
-
- };
- }
-}
-
-#endif /* BASICCMMANAGER_H_ */
+++ /dev/null
-/*
- * IsoffMainManager.cpp
- *****************************************************************************
- * Copyright (C) 2010 - 2012 Klagenfurt University
- *
- * Created on: Jan 27, 2010
- * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
- * Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "IsoffMainManager.h"
-#include "../adaptationlogic/Representationselectors.hpp"
-
-using namespace dash::mpd;
-using namespace dash::logic;
-
-IsoffMainManager::IsoffMainManager(MPD *mpd) :
- IMPDManager( mpd )
-{
-
-}
-
+++ /dev/null
-/*
- * IsoffMainManager.h
- *****************************************************************************
- * Copyright (C) 2010 - 2012 Klagenfurt University
- *
- * Created on: Jan 27, 2010
- * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
- * Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#ifndef ISOFFMAINMANAGER_H_
-#define ISOFFMAINMANAGER_H_
-
-#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "mpd/IMPDManager.h"
-#include "mpd/AdaptationSet.h"
-#include "mpd/SegmentInfo.h"
-#include "mpd/Segment.h"
-
-namespace dash
-{
- namespace mpd
- {
- class IsoffMainManager : public IMPDManager
- {
- public:
- IsoffMainManager (MPD *mpd);
-
- };
- }
-}
-
-#endif /* ISOFFMAINMANAGER_H_ */
/*
- * IMPDManager.cpp
+ * MPDManager.cpp
*****************************************************************************
* Copyright (C) 2014 - VideoLAN Authors
*
# include "config.h"
#endif
-#include "IMPDManager.h"
+#include "MPDManager.hpp"
#include <limits>
using namespace dash::mpd;
-IMPDManager::IMPDManager(MPD *mpd_) :
+MPDManager::MPDManager(MPD *mpd_) :
mpd(mpd_)
{
}
-IMPDManager::~IMPDManager()
+MPDManager::~MPDManager()
{
delete mpd;
}
-const std::vector<Period*>& IMPDManager::getPeriods() const
+const std::vector<Period*>& MPDManager::getPeriods() const
{
return mpd->getPeriods();
}
-Period* IMPDManager::getFirstPeriod() const
+Period* MPDManager::getFirstPeriod() const
{
std::vector<Period *> periods = getPeriods();
return NULL;
}
-Period* IMPDManager::getNextPeriod(Period *period)
+Period* MPDManager::getNextPeriod(Period *period)
{
std::vector<Period *> periods = getPeriods();
return NULL;
}
-const MPD* IMPDManager::getMPD() const
+const MPD* MPDManager::getMPD() const
{
return mpd;
}
/*
- * IMPDManager.h
+ * MPDManager.hpp
*****************************************************************************
* Copyright (C) 2010 - 2011 Klagenfurt University
*
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#ifndef IMPDMANAGER_H_
-#define IMPDMANAGER_H_
+#ifndef MPDMANAGER_H_
+#define MPDMANAGER_H_
#include "mpd/MPD.h"
#include "mpd/Period.h"
{
namespace mpd
{
- class IMPDManager
+ class MPDManager
{
public:
- IMPDManager( MPD *mpd );
- virtual ~IMPDManager();
+ MPDManager( MPD *mpd );
+ virtual ~MPDManager();
virtual const std::vector<Period *>& getPeriods () const;
virtual Period* getFirstPeriod () const;
};
}
}
-#endif /* IMPDMANAGER_H_ */
+#endif /* MPDMANAGER_H_ */
using namespace dash::mpd;
-IMPDManager* MPDManagerFactory::create( MPD *mpd )
+MPDManager* MPDManagerFactory::create( MPD *mpd )
{
switch( mpd->getProfile() )
{
case mpd::Profile::ISOOnDemand:
case mpd::Profile::Full:
- return new BasicCMManager (mpd);
case mpd::Profile::ISOMain:
- return new IsoffMainManager (mpd);
+ return new MPDManager(mpd);
default:
return NULL;
}
#ifndef MPDMANAGERFACTORY_H_
#define MPDMANAGERFACTORY_H_
-#include "mpd/IMPDManager.h"
-#include "mpd/BasicCMManager.h"
-#include "mpd/IsoffMainManager.h"
+#include "mpd/MPDManager.hpp"
namespace dash
{
class MPDManagerFactory
{
public:
- static IMPDManager* create( MPD *mpd );
+ static MPDManager* create( MPD *mpd );
};
}
}
#include <vlc_stream.h>
#include <vlc_xml.h>
-#include "mpd/IMPDManager.h"
+#include "mpd/MPDManager.hpp"
#include "xml/Node.h"
namespace dash