TagLib API Documentation
Public Member Functions | List of all members
TagLib::FLAC::Picture Class Reference

FLAC picture. More...

#include <flacpicture.h>

Inheritance diagram for TagLib::FLAC::Picture:
[legend]
Collaboration diagram for TagLib::FLAC::Picture:
[legend]

Public Member Functions

 Picture ()
 
 Picture (const ByteVector &data)
 
 ~Picture () override
 
 Picture (const Picture &item)=delete
 
Pictureoperator= (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)
 
- Public Member Functions inherited from TagLib::FLAC::MetadataBlock
 MetadataBlock ()
 
virtual ~MetadataBlock ()
 
 MetadataBlock (const MetadataBlock &item)=delete
 
MetadataBlockoperator= (const MetadataBlock &item)=delete
 
virtual int code () const =0
 
virtual ByteVector render () const =0
 

Additional Inherited Members

- Public Types inherited from TagLib::FLAC::MetadataBlock
enum  BlockType {
  StreamInfo = 0 , Padding , Application , SeekTable ,
  VorbisComment , CueSheet , Picture
}
 

Detailed Description

FLAC picture.

Constructor & Destructor Documentation

◆ Picture() [1/3]

TagLib::FLAC::Picture::Picture ( )

◆ Picture() [2/3]

TagLib::FLAC::Picture::Picture ( const ByteVector data)

◆ ~Picture()

TagLib::FLAC::Picture::~Picture ( )
override

◆ Picture() [3/3]

TagLib::FLAC::Picture::Picture ( const Picture item)
delete

Member Function Documentation

◆ code()

int TagLib::FLAC::Picture::code ( ) const
overridevirtual

Returns the FLAC metadata block type.

Implements TagLib::FLAC::MetadataBlock.

◆ colorDepth()

int TagLib::FLAC::Picture::colorDepth ( ) const

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

◆ data()

ByteVector TagLib::FLAC::Picture::data ( ) const

Returns the image data.

◆ description()

String TagLib::FLAC::Picture::description ( ) const

Returns a text description of the image.

◆ height()

int TagLib::FLAC::Picture::height ( ) const

Returns the height of the image.

◆ mimeType()

String TagLib::FLAC::Picture::mimeType ( ) const

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

◆ numColors()

int TagLib::FLAC::Picture::numColors ( ) const

Returns the number of colors used on the image..

◆ operator=()

Picture & TagLib::FLAC::Picture::operator= ( const Picture item)
delete

◆ parse()

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

Parse the picture data in the FLAC picture block format.

◆ render()

ByteVector TagLib::FLAC::Picture::render ( ) const
overridevirtual

Render the content to the FLAC picture block format.

Implements TagLib::FLAC::MetadataBlock.

◆ setColorDepth()

void TagLib::FLAC::Picture::setColorDepth ( int  colorDepth)

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

◆ setData()

void TagLib::FLAC::Picture::setData ( const ByteVector data)

Sets the image data.

◆ setDescription()

void TagLib::FLAC::Picture::setDescription ( const String description)

Sets a textual description of the image to description.

◆ setHeight()

void TagLib::FLAC::Picture::setHeight ( int  height)

Sets the height of the image.

◆ setMimeType()

void TagLib::FLAC::Picture::setMimeType ( const String mimeType)

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

◆ setNumColors()

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

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

◆ setType()

void TagLib::FLAC::Picture::setType ( Type  type)

Sets the type of the image.

◆ setWidth()

void TagLib::FLAC::Picture::setWidth ( int  width)

Sets the width of the image.

◆ type()

Type TagLib::FLAC::Picture::type ( ) const

Returns the type of the image.

◆ width()

int TagLib::FLAC::Picture::width ( ) const

Returns the width of the image.


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