Tag Parser
7.0.3
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
#include <mediaformat.h>
Public Member Functions | |
MediaFormat (GeneralMediaFormat general=GeneralMediaFormat::Unknown, unsigned char sub=0, unsigned char extension=0) | |
Constructs a new media format. More... | |
const char * | name () const |
Returns the name of the media format as C-style string. More... | |
const char * | abbreviation () const |
Returns the abbreviation of the media format as C-style string. More... | |
const char * | shortAbbreviation () const |
Returns a short abbreviation of the media format as C-style string. More... | |
const char * | extensionName () const |
Returns the abbreviation of the media format as C-style string. More... | |
operator bool () const | |
Returns whether the media format is known. More... | |
MediaFormat & | operator+= (const MediaFormat &other) |
"Adds" information from another instance to the object. More... | |
bool | operator== (GeneralMediaFormat general) const |
Returns whether the media format is the specified general media format. More... | |
bool | operator!= (GeneralMediaFormat general) const |
Returns whether the media format is not the specified general media format. More... | |
Public Attributes | |
GeneralMediaFormat | general |
unsigned char | sub |
unsigned char | extension |
Definition at line 243 of file mediaformat.h.
|
inline |
Constructs a new media format.
Definition at line 264 of file mediaformat.h.
const char * 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 444 of file mediaformat.cpp.
const char * 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 968 of file mediaformat.cpp.
const char * 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.
|
inline |
Returns whether the media format is known.
Definition at line 307 of file mediaformat.h.
|
inline |
Returns whether the media format is not the specified general media format.
Definition at line 299 of file mediaformat.h.
|
inline |
"Adds" information from another instance to the object.
Definition at line 274 of file mediaformat.h.
|
inline |
Returns whether the media format is the specified general media format.
Definition at line 291 of file mediaformat.h.
const char * 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 726 of file mediaformat.cpp.
unsigned char TagParser::MediaFormat::extension |
Definition at line 258 of file mediaformat.h.
GeneralMediaFormat TagParser::MediaFormat::general |
Definition at line 256 of file mediaformat.h.
unsigned char TagParser::MediaFormat::sub |
Definition at line 257 of file mediaformat.h.