2015-09-06 19:57:33 +02:00
|
|
|
#include "./matroskatagid.h"
|
2015-04-22 19:22:01 +02:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
namespace Media {
|
|
|
|
|
|
|
|
namespace MatroskaTagIds {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Returns a string for the specified \a targetTypeValue if
|
|
|
|
* known; otherwise returns an empty string.
|
|
|
|
*/
|
|
|
|
const char *matroskaTargetTypeName(uint32 targetTypeValue)
|
|
|
|
{
|
|
|
|
if(targetTypeValue >= 70) {
|
|
|
|
return "collection";
|
|
|
|
} else if(targetTypeValue >= 60) {
|
|
|
|
return "edition, issue, volume, opus, season, sequel";
|
|
|
|
} else if(targetTypeValue >= 50) {
|
|
|
|
return "album, opera, concert, movie, episode";
|
|
|
|
} else if(targetTypeValue >= 40) {
|
|
|
|
return "part, session";
|
|
|
|
} else if(targetTypeValue >= 30) {
|
|
|
|
return "track, song, chapter";
|
|
|
|
} else if(targetTypeValue >= 20) {
|
|
|
|
return "subtrack, part, movement, scene";
|
|
|
|
} else if(targetTypeValue >= 10) {
|
|
|
|
return "shot";
|
|
|
|
} else {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Media
|