1 #ifndef _AV_TRANSCODER_MEDIA_PROPERTY_UTIL_HPP_
2 #define _AV_TRANSCODER_MEDIA_PROPERTY_UTIL_HPP_
7 #include <libavutil/dict.h>
33 const std::string
separator =
"====================";
41 void add(PropertyVector& propertyVector,
const std::string& key,
const T& value)
45 add(propertyVector, key, ss.str());
49 void add(PropertyVector& propertyVector,
const std::string& key,
const size_t& value);
52 void add(PropertyVector& propertyVector,
const std::string& key,
const float& value);
55 void add(PropertyVector& propertyVector,
const std::string& key,
const std::string& value);
58 void add(PropertyVector& propertyVector,
const std::string& key,
const bool& value);
61 void add(PropertyVector& propertyVector,
const std::string& key,
const Rational& value);
std::vector< std::pair< std::string, std::string > > PropertyVector
PropertyVector is a vector of pair, because the order of properties matters to us.
const std::string separator
void add(PropertyVector &propertyVector, const std::string &key, const size_t &value)
void fillMetadataDictionnary(AVDictionary *avdictionnary, PropertyVector &metadata)
Fill metadata parameter with the given AVDictionary.
std::map< std::string, std::string > PropertyMap
const std::string propertyValueIfError