Tag Parser
6.4.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The FlacMetaDataBlockPicture class is a FLAC "METADATA_BLOCK_PICTURE" parser and maker. More...
#include <flacmetadata.h>
Public Member Functions | |
FlacMetaDataBlockPicture (TagValue &tagValue) | |
Constructs a new FLAC "METADATA_BLOCK_PICTURE". More... | |
void | parse (std::istream &inputStream, uint32 maxSize) |
Parses the FLAC "METADATA_BLOCK_PICTURE". More... | |
uint32 | requiredSize () const |
Returns the number of bytes make() will write. More... | |
void | make (std::ostream &outputStream) |
Makes the FLAC "METADATA_BLOCK_PICTURE". More... | |
uint32 | pictureType () const |
Returns the picture type according to the ID3v2 APIC frame. More... | |
void | setPictureType (uint32 pictureType) |
Sets the picture type according to the ID3v2 APIC frame. More... | |
TagValue & | value () |
Returns the tag value the picture is read from/stored to. More... | |
The FlacMetaDataBlockPicture class is a FLAC "METADATA_BLOCK_PICTURE" parser and maker.
Definition at line 258 of file flacmetadata.h.
|
inline |
Constructs a new FLAC "METADATA_BLOCK_PICTURE".
The picture is read from/stored to the specified tagValue. The FlacMetaDataBlockPicture does not take ownership over the specified tagValue.
Definition at line 283 of file flacmetadata.h.
void Media::FlacMetaDataBlockPicture::make | ( | std::ostream & | outputStream | ) |
Makes the FLAC "METADATA_BLOCK_PICTURE".
Definition at line 120 of file flacmetadata.cpp.
void Media::FlacMetaDataBlockPicture::parse | ( | std::istream & | inputStream, |
uint32 | maxSize | ||
) |
Parses the FLAC "METADATA_BLOCK_PICTURE".
maxSize specifies the maximum size of the structure.
Definition at line 84 of file flacmetadata.cpp.
|
inline |
Returns the picture type according to the ID3v2 APIC frame.
Definition at line 291 of file flacmetadata.h.
uint32 Media::FlacMetaDataBlockPicture::requiredSize | ( | ) | const |
Returns the number of bytes make() will write.
Definition at line 112 of file flacmetadata.cpp.
|
inline |
Sets the picture type according to the ID3v2 APIC frame.
Definition at line 299 of file flacmetadata.h.
|
inline |
Returns the tag value the picture is read from/stored to.
Definition at line 307 of file flacmetadata.h.