#include <dimgloader.h>
◆ LoadFlag
This is the list of loading modes usable by DImg image plugins
Enumerator |
---|
LoadItemInfo | Load image information without image data.
Image info as width and height
|
LoadMetadata | Image metadata.
|
LoadICCData | Image color profile.
|
LoadImageData | Full image data.
|
LoadUniqueHash | Image unique hash.
|
LoadImageHistory | Image version history.
|
LoadPreview | Special mode to load reduced image data.
Load embedded preview image instead full size image
|
LoadAll | Helper to load all information, metadata and full image.
|
◆ ~DImgLoader()
Digikam::DImgLoader::~DImgLoader |
( |
| ) |
|
|
virtual |
◆ DImgLoader()
Digikam::DImgLoader::DImgLoader |
( |
DImg *const |
image | ) |
|
|
explicitprotected |
◆ checkAllocation()
qint64 Digikam::DImgLoader::checkAllocation |
( |
qint64 |
fullSize | ) |
|
|
static |
Value returned : -1 : unsupported platform 0 : parse failure from supported platform 1 : parse done with success from supported platform
Referenced by new_failureTolerant().
◆ checkExifWorkingColorSpace()
bool Digikam::DImgLoader::checkExifWorkingColorSpace |
( |
| ) |
const |
|
protected |
◆ convertCompressionForLibJpeg()
int Digikam::DImgLoader::convertCompressionForLibJpeg |
( |
int |
value | ) |
|
|
static |
◆ convertCompressionForLibPng()
int Digikam::DImgLoader::convertCompressionForLibPng |
( |
int |
value | ) |
|
|
static |
◆ granularity()
int Digikam::DImgLoader::granularity |
( |
DImgLoaderObserver *const |
observer, |
|
|
int |
total, |
|
|
float |
progressSlice = 1.0F |
|
) |
| |
|
protectedvirtual |
◆ hasAlpha()
virtual bool Digikam::DImgLoader::hasAlpha |
( |
| ) |
const |
|
pure virtual |
◆ hasLoadedData()
bool Digikam::DImgLoader::hasLoadedData |
( |
| ) |
const |
|
virtual |
◆ imageBitsDepth()
int Digikam::DImgLoader::imageBitsDepth |
( |
| ) |
const |
|
protected |
◆ imageBytesDepth()
int Digikam::DImgLoader::imageBytesDepth |
( |
| ) |
const |
|
protected |
◆ imageData()
unsigned char *& Digikam::DImgLoader::imageData |
( |
| ) |
|
|
protected |
◆ imageEmbeddedText()
QMap< QString, QString > & Digikam::DImgLoader::imageEmbeddedText |
( |
| ) |
const |
|
protected |
◆ imageGetAttribute()
QVariant Digikam::DImgLoader::imageGetAttribute |
( |
const QString & |
key | ) |
const |
|
protected |
◆ imageGetEmbbededText()
QString Digikam::DImgLoader::imageGetEmbbededText |
( |
const QString & |
key | ) |
const |
|
protected |
◆ imageHasAlpha()
bool Digikam::DImgLoader::imageHasAlpha |
( |
| ) |
const |
|
protected |
◆ imageHeight()
unsigned int & Digikam::DImgLoader::imageHeight |
( |
| ) |
|
|
protected |
◆ imageNumBytes()
quint64 Digikam::DImgLoader::imageNumBytes |
( |
| ) |
const |
|
protected |
◆ imageSetAttribute()
void Digikam::DImgLoader::imageSetAttribute |
( |
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
|
protected |
◆ imageSetEmbbededText()
void Digikam::DImgLoader::imageSetEmbbededText |
( |
const QString & |
key, |
|
|
const QString & |
text |
|
) |
| |
|
protected |
◆ imageSetIccProfile()
void Digikam::DImgLoader::imageSetIccProfile |
( |
const IccProfile & |
profile | ) |
|
|
protected |
◆ imageSixteenBit()
bool Digikam::DImgLoader::imageSixteenBit |
( |
| ) |
const |
|
protected |
◆ imageWidth()
unsigned int & Digikam::DImgLoader::imageWidth |
( |
| ) |
|
|
protected |
◆ isReadOnly()
virtual bool Digikam::DImgLoader::isReadOnly |
( |
| ) |
const |
|
pure virtual |
◆ load()
virtual bool Digikam::DImgLoader::load |
( |
const QString & |
filePath, |
|
|
DImgLoaderObserver *const |
observer |
|
) |
| |
|
pure virtual |
◆ loadingFailed()
void Digikam::DImgLoader::loadingFailed |
( |
| ) |
|
|
protected |
◆ new_failureTolerant() [1/6]
unsigned char * Digikam::DImgLoader::new_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
|
static |
◆ new_failureTolerant() [2/6]
static Type * Digikam::DImgLoader::new_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
|
static |
◆ new_failureTolerant() [3/6]
Q_INLINE_TEMPLATE Type * Digikam::DImgLoader::new_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
Allows safe multiplication of requested pixel number and bytes per pixel, avoiding particularly 32 bits overflow and exceeding the size_t type
◆ new_failureTolerant() [4/6]
Q_INLINE_TEMPLATE Type * Digikam::DImgLoader::new_failureTolerant |
( |
size_t |
size | ) |
|
◆ new_failureTolerant() [5/6]
unsigned char * Digikam::DImgLoader::new_failureTolerant |
( |
size_t |
unsecureSize | ) |
|
|
static |
◆ new_failureTolerant() [6/6]
static Type * Digikam::DImgLoader::new_failureTolerant |
( |
size_t |
unsecureSize | ) |
|
|
static |
◆ new_short_failureTolerant() [1/2]
unsigned short * Digikam::DImgLoader::new_short_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
|
static |
◆ new_short_failureTolerant() [2/2]
unsigned short * Digikam::DImgLoader::new_short_failureTolerant |
( |
size_t |
unsecureSize | ) |
|
|
static |
◆ purgeExifWorkingColorSpace()
void Digikam::DImgLoader::purgeExifWorkingColorSpace |
( |
| ) |
|
|
protected |
◆ readMetadata()
bool Digikam::DImgLoader::readMetadata |
( |
const QString & |
filePath | ) |
|
|
protectedvirtual |
References Digikam::DImg::createHistoryImageId(), Digikam::HistoryImageId::Current, Digikam::DImageHistory::fromXml(), imageSetAttribute(), LoadImageHistory, LoadMetadata, LoadUniqueHash, m_image, m_loadFlags, Digikam::DImg::setItemHistory(), and Digikam::DImg::setMetadata().
◆ save()
virtual bool Digikam::DImgLoader::save |
( |
const QString & |
filePath, |
|
|
DImgLoaderObserver *const |
observer |
|
) |
| |
|
pure virtual |
◆ saveMetadata()
bool Digikam::DImgLoader::saveMetadata |
( |
const QString & |
filePath | ) |
|
|
protectedvirtual |
◆ setLoadFlags()
void Digikam::DImgLoader::setLoadFlags |
( |
LoadFlags |
flags | ) |
|
◆ sixteenBit()
virtual bool Digikam::DImgLoader::sixteenBit |
( |
| ) |
const |
|
pure virtual |
◆ storeColorProfileInMetadata()
void Digikam::DImgLoader::storeColorProfileInMetadata |
( |
| ) |
|
|
protected |
◆ m_image
DImg* Digikam::DImgLoader::m_image = nullptr |
|
protected |
Referenced by checkExifWorkingColorSpace(), hasLoadedData(), imageBitsDepth(), imageBytesDepth(), imageData(), imageEmbeddedText(), imageGetAttribute(), imageGetEmbbededText(), imageHasAlpha(), imageHeight(), imageNumBytes(), imageSetAttribute(), imageSetEmbbededText(), imageSetIccProfile(), imageSixteenBit(), imageWidth(), loadingFailed(), purgeExifWorkingColorSpace(), readMetadata(), saveMetadata(), and storeColorProfileInMetadata().
◆ m_loadFlags
LoadFlags Digikam::DImgLoader::m_loadFlags = LoadAll |
|
protected |
The documentation for this class was generated from the following files: