Tag Parser  8.0.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
signature.h
Go to the documentation of this file.
1 #ifndef TAG_PARSER_SIGNATURE_H
2 #define TAG_PARSER_SIGNATURE_H
3 
4 #include "./mediaformat.h"
5 
6 #include <c++utilities/conversion/types.h>
7 
8 namespace TagParser {
9 
11 
17 enum class ContainerFormat : unsigned int {
18  Unknown,
19  Ac3Frames,
20  Adts,
21  Ar,
22  Asf,
23  Bzip2,
24  Dirac,
25  Ebml,
26  Elf,
27  Flac,
28  FlashVideo,
29  Gif87a,
30  Gif89a,
31  Gzip,
32  Id2v2Tag,
33  Ivf,
35  Jpeg,
36  Lha,
37  Lzip,
38  Lzw,
39  Matroska,
40  Midi,
41  MonkeysAudio,
42  Mp4,
44  Ogg,
46  Png,
48  QuickTime,
49  Rar,
50  Riff,
51  RiffAvi,
52  RiffWave,
53  SevenZ,
54  Tar,
57  Utf16Text,
58  Utf32Text,
59  Utf8Text,
60  WavPack,
61  Webm,
63  WindowsIcon,
64  Xz,
65  YUV4Mpeg2,
66  Zip,
67 };
68 
69 TAG_PARSER_EXPORT ContainerFormat parseSignature(const char *buffer, int bufferSize);
70 TAG_PARSER_EXPORT const char *containerFormatName(ContainerFormat containerFormat);
72  ContainerFormat containerFormat, MediaType mediaType = MediaType::Unknown, unsigned int version = 0);
74 TAG_PARSER_EXPORT const char *containerMimeType(ContainerFormat containerFormat, MediaType mediaType = MediaType::Unknown);
75 TAG_PARSER_EXPORT TagTargetLevel containerTargetLevel(ContainerFormat containerFormat, uint64 targetLevelValue);
77 
78 } // namespace TagParser
79 
80 #endif // TAG_PARSER_SIGNATURE_H
TAG_PARSER_EXPORT uint64 containerTargetLevelValue(ContainerFormat containerFormat, TagTargetLevel targetLevel)
Returns the raw target level value for the specified containerFormat and general targetLevel.
Definition: signature.cpp:584
TagTargetLevel
The TagTargetLevel enum specifies tag target levels.
Definition: tagtarget.h:17
TAG_PARSER_EXPORT TagTargetLevel containerTargetLevel(ContainerFormat containerFormat, uint64 targetLevelValue)
Returns the general TagTargetLevel for the specified container format and raw targetLevelValue.
Definition: signature.cpp:570
DECLARE_ENUM_CLASS(MediaType, unsigned int)
constexpr TAG_PARSER_EXPORT const char * version()
MediaType
The MediaType enum specifies the type of media data (audio, video, text, ...).
Definition: mediaformat.h:13
TAG_PARSER_EXPORT const char * containerMimeType(ContainerFormat containerFormat, MediaType mediaType=MediaType::Unknown)
Returns the MIME-type of the container format as C-style string.
Definition: signature.cpp:497
ContainerFormat
Specifies the container format.
Definition: signature.h:17
TAG_PARSER_EXPORT const char * containerFormatName(ContainerFormat containerFormat)
Returns the name of the specified container format as C-style string.
Definition: signature.cpp:371
TAG_PARSER_EXPORT const char * containerFormatAbbreviation(ContainerFormat containerFormat, MediaType mediaType=MediaType::Unknown, unsigned int version=0)
Returns the abbreviation of the container format as C-style string considering the specified media ty...
Definition: signature.cpp:249
TAG_PARSER_EXPORT ContainerFormat parseSignature(const char *buffer, int bufferSize)
Parses the signature read from the specified buffer.
Definition: signature.cpp:102
TAG_PARSER_EXPORT const char * containerFormatSubversion(ContainerFormat containerFormat)
Returns the subversion of the container format as C-style string.
Definition: signature.cpp:476
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:9
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.