Commit eb92562d authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: add representation codecs

parent 11ab2cdc
...@@ -54,6 +54,16 @@ void BaseRepresentation::setBandwidth( uint64_t bandwidth ) ...@@ -54,6 +54,16 @@ void BaseRepresentation::setBandwidth( uint64_t bandwidth )
this->bandwidth = bandwidth; this->bandwidth = bandwidth;
} }
const std::list<std::string> & BaseRepresentation::getCodecs() const
{
return codecs;
}
void BaseRepresentation::addCodec(const std::string &codec)
{
codecs.push_back(codec);
}
void BaseRepresentation::debug(vlc_object_t *obj, int indent) const void BaseRepresentation::debug(vlc_object_t *obj, int indent) const
{ {
std::string text(indent, ' '); std::string text(indent, ' ');
...@@ -71,3 +81,8 @@ std::string BaseRepresentation::contextualize(size_t, const std::string &compone ...@@ -71,3 +81,8 @@ std::string BaseRepresentation::contextualize(size_t, const std::string &compone
{ {
return component; return component;
} }
bool BaseRepresentation::validateCodec(const std::string &) const
{
return true;
}
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#define BASEREPRESENTATION_H_ #define BASEREPRESENTATION_H_
#include <string> #include <string>
#include <list>
#include "CommonAttributesElements.h" #include "CommonAttributesElements.h"
#include "SegmentInformation.hpp" #include "SegmentInformation.hpp"
...@@ -53,6 +54,8 @@ namespace adaptative ...@@ -53,6 +54,8 @@ namespace adaptative
*/ */
uint64_t getBandwidth () const; uint64_t getBandwidth () const;
void setBandwidth ( uint64_t bandwidth ); void setBandwidth ( uint64_t bandwidth );
const std::list<std::string> & getCodecs () const;
void addCodec (const std::string &);
void debug (vlc_object_t *,int = 0) const; void debug (vlc_object_t *,int = 0) const;
...@@ -61,8 +64,10 @@ namespace adaptative ...@@ -61,8 +64,10 @@ namespace adaptative
const BaseSegmentTemplate *) const; const BaseSegmentTemplate *) const;
protected: protected:
virtual bool validateCodec(const std::string &) const;
BaseAdaptationSet *adaptationSet; BaseAdaptationSet *adaptationSet;
uint64_t bandwidth; uint64_t bandwidth;
std::list<std::string> codecs;
}; };
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment