Tag Parser  6.2.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
id3v2frameids.cpp
Go to the documentation of this file.
1 #include "./id3v2frameids.h"
2 
3 #include "../exceptions.h"
4 
5 namespace Media
6 {
7 
18 namespace Id3v2FrameIds
19 {
20 
25 uint32 convertToShortId(uint32 id)
26 {
27  switch(id) {
28  case lAlbum: return sAlbum;
29  case lArtist: return sArtist;
30  case lComment: return sComment;
31  case lYear: return sYear;
32  case lRecordDate: return sRecordDate;
33  case lTitle: return sTitle;
34  case lGenre: return sGenre;
35  case lTrackPosition: return sTrackPosition;
36  case lEncoder: return sEncoder;
37  case lBpm: return sBpm;
38  case lCover: return sCover;
39  case lWriter: return sWriter;
40  case lLength: return sLength;
41  case lLanguage: return sLanguage;
44  case lGrouping: return sGrouping;
45  case lRecordLabel: return sRecordLabel;
46  default: return 0;
47  }
48 }
49 
54 uint32 convertToLongId(uint32 id)
55 {
56  switch(id) {
57  case sAlbum: return lAlbum;
58  case sArtist: return lArtist;
59  case sComment: return lComment;
60  case sYear: return lYear;
61  case sRecordDate: return lRecordDate;
62  case sTitle: return lTitle;
63  case sGenre: return lGenre;
64  case sTrackPosition: return lTrackPosition;
65  case sEncoder: return lEncoder;
66  case sBpm: return lBpm;
67  case sCover: return lCover;
68  case sWriter: return lWriter;
69  case sLength: return lLength;
70  case sLanguage: return lLanguage;
73  case sGrouping: return lGrouping;
74  case sRecordLabel: return lRecordLabel;
75  default: return 0;
76  }
77 }
78 
79 }
80 
81 }
uint32 convertToShortId(uint32 id)
Converts the specified long frame ID to the equivalent short frame ID.
uint32 convertToLongId(uint32 id)
Converts the specified short frame ID to the equivalent long frame ID.
Contains all classes and functions of the TagInfo library.
Definition: exceptions.h:9