358 lines
8.1 KiB
C++
358 lines
8.1 KiB
C++
#ifndef MEDIA_MATROSKATAGIDS_H
|
|
#define MEDIA_MATROSKATAGIDS_H
|
|
|
|
#include "../tagtarget.h"
|
|
|
|
namespace Media {
|
|
|
|
/*!
|
|
* \brief Encapsulates Matroska tag IDs.
|
|
*/
|
|
namespace MatroskaTagIds {
|
|
|
|
inline LIB_EXPORT const char *original() {
|
|
return "ORIGINAL";
|
|
}
|
|
inline LIB_EXPORT const char *sample() {
|
|
return "SAMPLE";
|
|
}
|
|
inline LIB_EXPORT const char *country() {
|
|
return "COUNTRY";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *totalParts() {
|
|
return "TOTAL_PARTS";
|
|
}
|
|
inline LIB_EXPORT const char *partNumber() {
|
|
return "PART_NUMBER";
|
|
}
|
|
inline LIB_EXPORT const char *partOffset() {
|
|
return "PART_OFFSET";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *title() {
|
|
return "TITLE";
|
|
}
|
|
inline LIB_EXPORT const char *subtitle() {
|
|
return "SUBTITLE";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *url() {
|
|
return "URL";
|
|
}
|
|
inline LIB_EXPORT const char *sortWith() {
|
|
return "SORT_WITH";
|
|
}
|
|
inline LIB_EXPORT const char *instruments() {
|
|
return "INSTRUMENTS";
|
|
}
|
|
inline LIB_EXPORT const char *email() {
|
|
return "EMAIL";
|
|
}
|
|
inline LIB_EXPORT const char *address() {
|
|
return "ADDRESS";
|
|
}
|
|
inline LIB_EXPORT const char *fax() {
|
|
return "FAX";
|
|
}
|
|
inline LIB_EXPORT const char *phone() {
|
|
return "PHONE";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *artist() {
|
|
return "ARTIST";
|
|
}
|
|
inline LIB_EXPORT const char *album() {
|
|
return "ALBUM";
|
|
}
|
|
inline LIB_EXPORT const char *leadPerformer() {
|
|
return "LEAD_PERFORMER";
|
|
}
|
|
inline LIB_EXPORT const char *accompaniment() {
|
|
return "ACCOMPANIMENT";
|
|
}
|
|
inline LIB_EXPORT const char *composer() {
|
|
return "COMPOSER";
|
|
}
|
|
inline LIB_EXPORT const char *arranger() {
|
|
return "ARRANGER";
|
|
}
|
|
inline LIB_EXPORT const char *lyrics() {
|
|
return "LYRICS";
|
|
}
|
|
inline LIB_EXPORT const char *lyricist() {
|
|
return "LYRICIST";
|
|
}
|
|
inline LIB_EXPORT const char *conductor() {
|
|
return "CONDUCTOR";
|
|
}
|
|
inline LIB_EXPORT const char *director() {
|
|
return "DIRECTOR";
|
|
}
|
|
inline LIB_EXPORT const char *assistantDirector() {
|
|
return "ASSISTANT_DIRECTOR";
|
|
}
|
|
inline LIB_EXPORT const char *directorOfPhotography() {
|
|
return "DIRECTOR_OF_PHOTOGRAPHY";
|
|
}
|
|
inline LIB_EXPORT const char *soundEngineer() {
|
|
return "SOUND_ENGINEER";
|
|
}
|
|
inline LIB_EXPORT const char *artDirector() {
|
|
return "ART_DIRECTOR";
|
|
}
|
|
inline LIB_EXPORT const char *productionDesigner() {
|
|
return "PRODUCTION_DESIGNER";
|
|
}
|
|
inline LIB_EXPORT const char *choregrapher() {
|
|
return "CHOREGRAPHER";
|
|
}
|
|
inline LIB_EXPORT const char *costumeDesigner() {
|
|
return "COSTUME_DESIGNER";
|
|
}
|
|
inline LIB_EXPORT const char *actor() {
|
|
return "ACTOR";
|
|
}
|
|
inline LIB_EXPORT const char *character() {
|
|
return "CHARACTER";
|
|
}
|
|
inline LIB_EXPORT const char *writtenBy() {
|
|
return "WRITTEN_BY";
|
|
}
|
|
inline LIB_EXPORT const char *screenplayBy() {
|
|
return "SCREENPLAY_BY";
|
|
}
|
|
inline LIB_EXPORT const char *editedBy() {
|
|
return "EDITED_BY";
|
|
}
|
|
inline LIB_EXPORT const char *producer() {
|
|
return "PRODUCER";
|
|
}
|
|
inline LIB_EXPORT const char *coproducer() {
|
|
return "COPRODUCER";
|
|
}
|
|
inline LIB_EXPORT const char *executiveProducer() {
|
|
return "EXECUTIVE_PRODUCER";
|
|
}
|
|
inline LIB_EXPORT const char *distributedBy() {
|
|
return "DISTRIBUTED_BY";
|
|
}
|
|
inline LIB_EXPORT const char *masteredBy() {
|
|
return "MASTERED_BY";
|
|
}
|
|
inline LIB_EXPORT const char *encodedBy() {
|
|
return "ENCODED_BY";
|
|
}
|
|
inline LIB_EXPORT const char *mixedBy() {
|
|
return "MIXED_BY";
|
|
}
|
|
inline LIB_EXPORT const char *remixedBy() {
|
|
return "REMIXED_BY";
|
|
}
|
|
inline LIB_EXPORT const char *productionStudio() {
|
|
return "PRODUCTION_STUDIO";
|
|
}
|
|
inline LIB_EXPORT const char *thanksTo() {
|
|
return "THANKS_TO";
|
|
}
|
|
inline LIB_EXPORT const char *publisher() {
|
|
return "PUBLISHER";
|
|
}
|
|
inline LIB_EXPORT const char *label() {
|
|
return "LABEL";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *genre() {
|
|
return "GENRE";
|
|
}
|
|
inline LIB_EXPORT const char *mood() {
|
|
return "MOOD";
|
|
}
|
|
inline LIB_EXPORT const char *originalMediaType() {
|
|
return "ORIGINAL_MEDIA_TYPE";
|
|
}
|
|
inline LIB_EXPORT const char *contentType() {
|
|
return "CONTENT_TYPE";
|
|
}
|
|
inline LIB_EXPORT const char *subject() {
|
|
return "SUBJECT";
|
|
}
|
|
inline LIB_EXPORT const char *description() {
|
|
return "DESCRIPTION";
|
|
}
|
|
inline LIB_EXPORT const char *keywords() {
|
|
return "KEYWORDS";
|
|
}
|
|
inline LIB_EXPORT const char *summary() {
|
|
return "SUMMARY";
|
|
}
|
|
inline LIB_EXPORT const char *synopsis() {
|
|
return "SYNOPSIS";
|
|
}
|
|
inline LIB_EXPORT const char *initialKey() {
|
|
return "INITIAL_KEY";
|
|
}
|
|
inline LIB_EXPORT const char *period() {
|
|
return "PERIOD";
|
|
}
|
|
inline LIB_EXPORT const char *lawRating() {
|
|
return "LAW_RATING";
|
|
}
|
|
inline LIB_EXPORT const char *icra() {
|
|
return "ICRA";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *dateRelease() {
|
|
return "DATE_RELEASED";
|
|
}
|
|
inline LIB_EXPORT const char *dateRecorded() {
|
|
return "DATE_RECORDED";
|
|
}
|
|
inline LIB_EXPORT const char *dateEncoded() {
|
|
return "DATE_ENCODED";
|
|
}
|
|
inline LIB_EXPORT const char *dateTagged() {
|
|
return "DATE_TAGGED";
|
|
}
|
|
inline LIB_EXPORT const char *dateDigitized() {
|
|
return "DATE_DIGITIZED";
|
|
}
|
|
inline LIB_EXPORT const char *dateWritten() {
|
|
return "DATE_WRITTEN";
|
|
}
|
|
inline LIB_EXPORT const char *datePurchased() {
|
|
return "DATE_PURCHASED";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *recordingLocation() {
|
|
return "RECORDING_LOCATION";
|
|
}
|
|
inline LIB_EXPORT const char *compositionLocation() {
|
|
return "COMPOSITION_LOCATION";
|
|
}
|
|
inline LIB_EXPORT const char *composerNationality() {
|
|
return "COMPOSER_NATIONALITY";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *comment() {
|
|
return "COMMENT";
|
|
}
|
|
inline LIB_EXPORT const char *playCounter() {
|
|
return "PLAY_COUNTER";
|
|
}
|
|
inline LIB_EXPORT const char *rating() {
|
|
return "RATING";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *encoder() {
|
|
return "ENCODER";
|
|
}
|
|
inline LIB_EXPORT const char *encoderSettings() {
|
|
return "ENCODER_SETTINGS";
|
|
}
|
|
inline LIB_EXPORT const char *bps() {
|
|
return "BPS";
|
|
}
|
|
inline LIB_EXPORT const char *fps() {
|
|
return "FPS";
|
|
}
|
|
inline LIB_EXPORT const char *bpm() {
|
|
return "BPM";
|
|
}
|
|
inline LIB_EXPORT const char *duration() {
|
|
return "DURATION";
|
|
}
|
|
inline LIB_EXPORT const char *numberOfFrames() {
|
|
return "NUMBER_OF_FRAMES";
|
|
}
|
|
inline LIB_EXPORT const char *numberOfBytes() {
|
|
return "NUMBER_OF_BYTES";
|
|
}
|
|
inline LIB_EXPORT const char *measure() {
|
|
return "MEASURE";
|
|
}
|
|
inline LIB_EXPORT const char *tuning() {
|
|
return "TUNING";
|
|
}
|
|
inline LIB_EXPORT const char *replaygainGain() {
|
|
return "REPLAYGAIN_GAIN";
|
|
}
|
|
inline LIB_EXPORT const char *replaygainPeak() {
|
|
return "REPLAYGAIN_PEAK";
|
|
}
|
|
inline LIB_EXPORT const char *identifiers() {
|
|
return "Identifiers";
|
|
}
|
|
inline LIB_EXPORT const char *isrc() {
|
|
return "ISRC";
|
|
}
|
|
inline LIB_EXPORT const char *mcdi() {
|
|
return "MCDI";
|
|
}
|
|
inline LIB_EXPORT const char *isbn() {
|
|
return "ISBN";
|
|
}
|
|
inline LIB_EXPORT const char *barcode() {
|
|
return "BARCODE";
|
|
}
|
|
inline LIB_EXPORT const char *catalogNumber() {
|
|
return "CATALOG_NUMBER";
|
|
}
|
|
inline LIB_EXPORT const char *labelCode() {
|
|
return "LABEL_CODE";
|
|
}
|
|
inline LIB_EXPORT const char *lccn() {
|
|
return "LCCN";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *purchaseItem() {
|
|
return "PURCHASE_ITEM";
|
|
}
|
|
inline LIB_EXPORT const char *purchaseInfo() {
|
|
return "PURCHASE_INFO";
|
|
}
|
|
inline LIB_EXPORT const char *purchaseOwner() {
|
|
return "PURCHASE_OWNER";
|
|
}
|
|
inline LIB_EXPORT const char *purchasePrice() {
|
|
return "PURCHASE_PRICE";
|
|
}
|
|
inline LIB_EXPORT const char *purchaseCurrency() {
|
|
return "PURCHASE_CURRENCY";
|
|
}
|
|
|
|
inline LIB_EXPORT const char *copyright() {
|
|
return "COPYRIGHT";
|
|
}
|
|
inline LIB_EXPORT const char *productionCopyright() {
|
|
return "PRODUCTION_COPYRIGHT";
|
|
}
|
|
inline LIB_EXPORT const char *license() {
|
|
return "LICENSE";
|
|
}
|
|
inline LIB_EXPORT const char *termsOfUse() {
|
|
return "TERMS_OF_USE";
|
|
}
|
|
|
|
}
|
|
|
|
/*!
|
|
* \brief Returns the general TagTargetLevel for the Matroska specific \a targetLevelValue.
|
|
*/
|
|
inline LIB_EXPORT TagTargetLevel matroskaTagTargetLevel(uint64 targetLevelValue)
|
|
{
|
|
return targetLevelValue > 70 ? TagTargetLevel::Collection : static_cast<TagTargetLevel>(targetLevelValue / 10);
|
|
}
|
|
|
|
/*!
|
|
* \brief Returns the Matroska specific target level value for the specified general \a targetLevel.
|
|
*/
|
|
inline LIB_EXPORT uint64 matroskaTagTargetLevelValue(TagTargetLevel targetLevel)
|
|
{
|
|
return static_cast<uint64>(targetLevel) * 10;
|
|
}
|
|
|
|
} // namespace Media
|
|
|
|
#endif // MEDIA_MATROSKATAGIDS_H
|