TagLib 1.11.1 (TagLib::FLAC::Picture Class Reference)

TagLib::FLAC::Picture Class Reference

#include <flacpicture.h>

Inheritance diagram for TagLib::FLAC::Picture:
Collaboration diagram for TagLib::FLAC::Picture:

List of all members.

Public Types

enum  Type {
  Other = 0x00, FileIcon = 0x01, OtherFileIcon = 0x02, FrontCover = 0x03,
  BackCover = 0x04, LeafletPage = 0x05, Media = 0x06, LeadArtist = 0x07,
  Artist = 0x08, Conductor = 0x09, Band = 0x0A, Composer = 0x0B,
  Lyricist = 0x0C, RecordingLocation = 0x0D, DuringRecording = 0x0E, DuringPerformance = 0x0F,
  MovieScreenCapture = 0x10, ColouredFish = 0x11, Illustration = 0x12, BandLogo = 0x13,
  PublisherLogo = 0x14
}

Public Member Functions

 Picture ()
 Picture (const ByteVector &data)
 ~Picture ()
Type type () const
void setType (Type type)
String mimeType () const
void setMimeType (const String &m)
String description () const
void setDescription (const String &desc)
int width () const
void setWidth (int w)
int height () const
void setHeight (int h)
int colorDepth () const
void setColorDepth (int depth)
int numColors () const
void setNumColors (int numColors)
ByteVector data () const
void setData (const ByteVector &data)
int code () const
ByteVector render () const
bool parse (const ByteVector &rawData)

Member Enumeration Documentation

This describes the function or content of the picture.

Enumerator:
Other 

A type not enumerated below.

FileIcon 

32x32 PNG image that should be used as the file icon

OtherFileIcon 

File icon of a different size or format.

FrontCover 

Front cover image of the album.

BackCover 

Back cover image of the album.

LeafletPage 

Inside leaflet page of the album.

Media 

Image from the album itself.

LeadArtist 

Picture of the lead artist or soloist.

Artist 

Picture of the artist or performer.

Conductor 

Picture of the conductor.

Band 

Picture of the band or orchestra.

Composer 

Picture of the composer.

Lyricist 

Picture of the lyricist or text writer.

RecordingLocation 

Picture of the recording location or studio.

DuringRecording 

Picture of the artists during recording.

DuringPerformance 

Picture of the artists during performance.

MovieScreenCapture 

Picture from a movie or video related to the track.

ColouredFish 

Picture of a large, coloured fish.

Illustration 

Illustration related to the track.

BandLogo 

Logo of the band or performer.

PublisherLogo 

Logo of the publisher (record company)


Constructor & Destructor Documentation


Member Function Documentation

int TagLib::FLAC::Picture::code ( ) const [virtual]

Returns the FLAC metadata block type.

Implements TagLib::FLAC::MetadataBlock.

Returns the color depth (in bits-per-pixel) of the image.

Returns the image data.

Returns a text description of the image.

Returns the height of the image.

Returns the mime type of the image. This should in most cases be "image/png" or "image/jpeg".

Returns the number of colors used on the image..

bool TagLib::FLAC::Picture::parse ( const ByteVector rawData)

Parse the picture data in the FLAC picture block format.

Render the content to the FLAC picture block format.

Implements TagLib::FLAC::MetadataBlock.

Sets the color depth (in bits-per-pixel) of the image.

Sets the image data.

Sets a textual description of the image to desc.

Sets the height of the image.

Sets the mime type of the image. This should in most cases be "image/png" or "image/jpeg".

void TagLib::FLAC::Picture::setNumColors ( int  numColors)

Sets the number of colors used on the image (for indexed images).

Sets the type of the image.

Sets the width of the image.

Returns the type of the image.

Returns the width of the image.


The documentation for this class was generated from the following file: