digiKam
|
Public Member Functions | |
int | count () const |
Returns how many embedded previews are available. More... | |
QByteArray | data (int index=0) |
int | dataSize (int index=0) |
QString | fileExtension (int index=0) |
int | height (int index=0) |
QImage | image (int index=0) |
bool | isEmpty () |
Returns if there are any preview images available. More... | |
MetaEnginePreviews (const QByteArray &imgData) | |
MetaEnginePreviews (const QString &filePath) | |
QString | mimeType (int index=0) |
QString | originalMimeType () const |
Returns the mimeType of the original image, detected from the file's content. More... | |
QSize | originalSize () const |
Returns the pixel size of the original image, as read from the file (not the metadata). More... | |
int | size () const |
int | width (int index=0) |
~MetaEnginePreviews () | |
|
explicit |
Open the given file and scan for embedded preview images
References AutoPtr, image(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
explicit |
Open the given image data and scan the image for embedded preview images.
References AutoPtr, image(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Digikam::MetaEnginePreviews::~MetaEnginePreviews | ( | ) |
int Digikam::MetaEnginePreviews::count | ( | ) | const |
QByteArray Digikam::MetaEnginePreviews::data | ( | int | index = 0 | ) |
Retrieve the image data for the specified embedded preview image
References count(), image(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and size().
Referenced by image().
int Digikam::MetaEnginePreviews::dataSize | ( | int | index = 0 | ) |
QString Digikam::MetaEnginePreviews::fileExtension | ( | int | index = 0 | ) |
References size().
int Digikam::MetaEnginePreviews::height | ( | int | index = 0 | ) |
References size().
QImage Digikam::MetaEnginePreviews::image | ( | int | index = 0 | ) |
Loads the data of the specified preview and creates a QImage from this data. Returns a null QImage if the loading failed.
References data().
Referenced by data(), and MetaEnginePreviews().
bool Digikam::MetaEnginePreviews::isEmpty | ( | ) |
Returns if there are any preview images available.
QString Digikam::MetaEnginePreviews::mimeType | ( | int | index = 0 | ) |
References size().
QString Digikam::MetaEnginePreviews::originalMimeType | ( | ) | const |
Returns the mimeType of the original image, detected from the file's content.
QSize Digikam::MetaEnginePreviews::originalSize | ( | ) | const |
Returns the pixel size of the original image, as read from the file (not the metadata).
Referenced by Digikam::PreviewLoadingTask::execute().
int Digikam::MetaEnginePreviews::size | ( | ) | const |
References count().
Referenced by data(), dataSize(), fileExtension(), height(), mimeType(), and width().
int Digikam::MetaEnginePreviews::width | ( | int | index = 0 | ) |
References size().