Tag Parser  7.0.0
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,
34  Jpeg,
35  Lha,
36  Lzip,
37  Lzw,
38  Matroska,
39  MonkeysAudio,
40  Mp4,
42  Ogg,
44  Png,
46  QuickTime,
47  Rar,
48  Riff,
49  RiffAvi,
50  RiffWave,
51  SevenZ,
52  Tar,
55  Utf16Text,
56  Utf32Text,
57  Utf8Text,
58  WavPack,
59  Webm,
61  WindowsIcon,
62  Xz,
63  YUV4Mpeg2,
64  Zip,
65 };
66 
67 TAG_PARSER_EXPORT ContainerFormat parseSignature(const char *buffer, int bufferSize);
68 TAG_PARSER_EXPORT const char *containerFormatName(ContainerFormat containerFormat);
70  ContainerFormat containerFormat, MediaType mediaType = MediaType::Unknown, unsigned int version = 0);
72 TAG_PARSER_EXPORT const char *containerMimeType(ContainerFormat containerFormat, MediaType mediaType = MediaType::Unknown);
73 TAG_PARSER_EXPORT TagTargetLevel containerTargetLevel(ContainerFormat containerFormat, uint64 targetLevelValue);
75 
76 } // namespace TagParser
77 
78 #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:568
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:554
DECLARE_ENUM_CLASS(MediaType, unsigned int)
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:483
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:361
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:243
TAG_PARSER_EXPORT ContainerFormat parseSignature(const char *buffer, int bufferSize)
Parses the signature read from the specified buffer.
Definition: signature.cpp:100
TAG_PARSER_EXPORT const char * containerFormatSubversion(ContainerFormat containerFormat)
Returns the subversion of the container format as C-style string.
Definition: signature.cpp:462
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.