1#ifndef TAG_PARSER_MEDIAFORMAT_H
2#define TAG_PARSER_MEDIAFORMAT_H
110namespace SubFormats {
243namespace ExtensionFormats {
249 constexpr MediaFormat(GeneralMediaFormat general = GeneralMediaFormat::Unknown,
unsigned char sub = 0,
unsigned char extension = 0);
251 std::string_view name()
const;
252 std::string_view abbreviation()
const;
253 std::string_view shortAbbreviation()
const;
254 std::string_view extensionName()
const;
255 constexpr operator bool()
const;
256 constexpr MediaFormat &operator+=(
const MediaFormat &other);
257 constexpr bool operator==(GeneralMediaFormat general)
const;
258 constexpr bool operator!=(GeneralMediaFormat general)
const;
271 , extension(extension)
297 return this->general ==
general;
305 return this->general !=
general;
311constexpr MediaFormat::operator bool()
const
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Contains all classes and functions of the TagInfo library.
MediaType
The MediaType enum specifies the type of media data (audio, video, text, ...).
GeneralMediaFormat
The GeneralMediaFormat enum specifies the general format of media data (PCM, MPEG-4,...
@ MicrosoftVideoCodecManager
@ MicrosoftAudioCodecManager
@ UncompressedVideoFrames
@ SynthesizedTextureStream
TAG_PARSER_EXPORT std::string_view mediaTypeName(MediaType mediaType)
Returns the string representation for the specified mediaType.