![]() |
Miam-Player
0.8.0
A nice music player
|
An ASF attached picture interface implementation. More...
#include <asfpicture.h>
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 } |
This describes the function or content of the picture. More... | |
Public Member Functions | |
Picture () | |
Constructs an empty picture. More... | |
Picture (const Picture &other) | |
Construct an picture as a copy of other. More... | |
virtual | ~Picture () |
Destroys the picture. More... | |
Picture & | operator= (const Picture &other) |
Copies the contents of other into this picture. More... | |
void | swap (Picture &other) |
Exchanges the content of the Picture by the content of other. More... | |
bool | isValid () const |
Returns true if Picture stores valid picture. More... | |
String | mimeType () const |
Returns the mime type of the image. More... | |
void | setMimeType (const String &value) |
Sets the mime type of the image. More... | |
Type | type () const |
Returns the type of the image. More... | |
void | setType (const ASF::Picture::Type &t) |
Sets the type for the image. More... | |
String | description () const |
Returns a text description of the image. More... | |
void | setDescription (const String &desc) |
Sets a textual description of the image to desc. More... | |
ByteVector | picture () const |
Returns the image data as a ByteVector. More... | |
void | setPicture (const ByteVector &p) |
Sets the image data to p. More... | |
ByteVector | render () const |
Returns picture as binary raw data value. More... | |
int | dataSize () const |
Returns picture as binary raw data value. More... | |
void | parse (const ByteVector &) |
Static Public Member Functions | |
static Picture | fromInvalid () |
An ASF attached picture interface implementation.
This is an implementation of ASF attached pictures interface. Pictures may be included in attributes, one per WM/Picture attribute (but there may be multiple WM/Picture attribute in a single tag). These pictures are usually in either JPEG or PNG format.
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) |
TagLib::ASF::Picture::Picture | ( | ) |
Constructs an empty picture.
TagLib::ASF::Picture::Picture | ( | const Picture & | other | ) |
Construct an picture as a copy of other.
|
virtual |
Destroys the picture.
int TagLib::ASF::Picture::dataSize | ( | ) | const |
Returns picture as binary raw data value.
String TagLib::ASF::Picture::description | ( | ) | const |
Returns a text description of the image.
|
static |
bool TagLib::ASF::Picture::isValid | ( | ) | const |
Returns true if Picture stores valid picture.
String TagLib::ASF::Picture::mimeType | ( | ) | const |
Returns the mime type of the image.
This should in most cases be "image/png" or "image/jpeg".
Copies the contents of other into this picture.
void TagLib::ASF::Picture::parse | ( | const ByteVector & | ) |
ByteVector TagLib::ASF::Picture::picture | ( | ) | const |
Returns the image data as a ByteVector.
ByteVector TagLib::ASF::Picture::render | ( | ) | const |
Returns picture as binary raw data value.
void TagLib::ASF::Picture::setDescription | ( | const String & | desc | ) |
Sets a textual description of the image to desc.
void TagLib::ASF::Picture::setMimeType | ( | const String & | value | ) |
Sets the mime type of the image.
This should in most cases be "image/png" or "image/jpeg".
void TagLib::ASF::Picture::setPicture | ( | const ByteVector & | p | ) |
Sets the image data to p.
p should be of the type specified in this frame's mime-type specification.
void TagLib::ASF::Picture::setType | ( | const ASF::Picture::Type & | t | ) |
void TagLib::ASF::Picture::swap | ( | Picture & | other | ) |
Exchanges the content of the Picture by the content of other.