#include <flacpicture.h>
Public Member Functions | |
Picture () | |
Picture (const ByteVector &data) | |
~Picture () override | |
Picture (const Picture &item)=delete | |
Picture & | operator= (const Picture &item)=delete |
Type | type () const |
void | setType (Type type) |
String | mimeType () const |
void | setMimeType (const String &mimeType) |
String | description () const |
void | setDescription (const String &description) |
int | width () const |
void | setWidth (int width) |
int | height () const |
void | setHeight (int height) |
int | colorDepth () const |
void | setColorDepth (int colorDepth) |
int | numColors () const |
void | setNumColors (int numColors) |
ByteVector | data () const |
void | setData (const ByteVector &data) |
int | code () const override |
ByteVector | render () const override |
bool | parse (const ByteVector &data) |
![]() | |
MetadataBlock () | |
virtual | ~MetadataBlock () |
MetadataBlock (const MetadataBlock &item)=delete | |
MetadataBlock & | operator= (const MetadataBlock &item)=delete |
Additional Inherited Members | |
![]() | |
enum | BlockType { StreamInfo = 0 , Padding , Application , SeekTable , VorbisComment , CueSheet , Picture } |
FLAC picture.
TagLib::FLAC::Picture::Picture | ( | ) |
TagLib::FLAC::Picture::Picture | ( | const ByteVector & | data | ) |
|
override |
|
overridevirtual |
Returns the FLAC metadata block type.
Implements TagLib::FLAC::MetadataBlock.
int TagLib::FLAC::Picture::colorDepth | ( | ) | const |
Returns the color depth (in bits-per-pixel) of the image.
ByteVector TagLib::FLAC::Picture::data | ( | ) | const |
Returns the image data.
String TagLib::FLAC::Picture::description | ( | ) | const |
Returns a text description of the image.
int TagLib::FLAC::Picture::height | ( | ) | const |
Returns the height of the image.
String TagLib::FLAC::Picture::mimeType | ( | ) | const |
Returns the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
int TagLib::FLAC::Picture::numColors | ( | ) | const |
Returns the number of colors used on the image..
bool TagLib::FLAC::Picture::parse | ( | const ByteVector & | data | ) |
Parse the picture data in the FLAC picture block format.
|
overridevirtual |
Render the content to the FLAC picture block format.
Implements TagLib::FLAC::MetadataBlock.
Sets the color depth (in bits-per-pixel) of the image.
void TagLib::FLAC::Picture::setData | ( | const ByteVector & | data | ) |
Sets the image data.
Sets a textual description of the image to description.
Sets the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
Sets the number of colors used on the image (for indexed images).
void TagLib::FLAC::Picture::setType | ( | Type | type | ) |
Sets the type of the image.
Type TagLib::FLAC::Picture::type | ( | ) | const |
Returns the type of the image.
int TagLib::FLAC::Picture::width | ( | ) | const |
Returns the width of the image.