Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The MediaFormat class specifies the format of media data. More...
#include <mediaformat.h>
Public Member Functions | |
constexpr | MediaFormat (GeneralMediaFormat general=GeneralMediaFormat::Unknown, unsigned char sub=0, unsigned char extension=0) |
Constructs a new media format. | |
std::string_view | name () const |
Returns the name of the media format as C-style string. | |
std::string_view | abbreviation () const |
Returns the abbreviation of the media format as C-style string. | |
std::string_view | shortAbbreviation () const |
Returns a short abbreviation of the media format as C-style string. | |
std::string_view | extensionName () const |
Returns the abbreviation of the media format as C-style string. | |
constexpr | operator bool () const |
Returns whether the media format is known. | |
constexpr MediaFormat & | operator+= (const MediaFormat &other) |
"Adds" information from another instance to the object. | |
constexpr bool | operator== (GeneralMediaFormat general) const |
Returns whether the media format is the specified general media format. | |
constexpr bool | operator!= (GeneralMediaFormat general) const |
Returns whether the media format is not the specified general media format. | |
Public Attributes | |
GeneralMediaFormat | general |
unsigned char | sub |
unsigned char | extension |
The MediaFormat class specifies the format of media data.
|
constexpr |
Constructs a new media format.
Definition at line 268 of file mediaformat.h.
std::string_view TagParser::MediaFormat::abbreviation | ( | ) | const |
Returns the abbreviation of the media format as C-style string.
Returns an empty string if no abbreviation is available.
Definition at line 448 of file mediaformat.cpp.
std::string_view TagParser::MediaFormat::extensionName | ( | ) | const |
Returns the abbreviation of the media format as C-style string.
Returns an empty string if no abbreviation is available.
Definition at line 1042 of file mediaformat.cpp.
std::string_view TagParser::MediaFormat::name | ( | ) | const |
Returns the name of the media format as C-style string.
Returns an empty string if no name is available.
Definition at line 17 of file mediaformat.cpp.
|
constexpr |
Returns whether the media format is known.
Definition at line 311 of file mediaformat.h.
|
constexpr |
Returns whether the media format is not the specified general media format.
Definition at line 303 of file mediaformat.h.
|
constexpr |
"Adds" information from another instance to the object.
Definition at line 278 of file mediaformat.h.
|
constexpr |
Returns whether the media format is the specified general media format.
Definition at line 295 of file mediaformat.h.
std::string_view TagParser::MediaFormat::shortAbbreviation | ( | ) | const |
Returns a short abbreviation of the media format as C-style string.
Returns an empty string if no abbreviation is available.
Definition at line 765 of file mediaformat.cpp.
unsigned char TagParser::MediaFormat::extension |
Definition at line 262 of file mediaformat.h.
GeneralMediaFormat TagParser::MediaFormat::general |
Definition at line 260 of file mediaformat.h.
unsigned char TagParser::MediaFormat::sub |
Definition at line 261 of file mediaformat.h.