◆ 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.
|
◆ DImgHEIFLoader()
Digikam::DImgHEIFLoader::DImgHEIFLoader |
( |
DImg *const |
image | ) |
|
|
explicit |
◆ ~DImgHEIFLoader()
Digikam::DImgHEIFLoader::~DImgHEIFLoader |
( |
| ) |
|
|
override |
◆ checkAllocation()
qint64 Digikam::DImgLoader::checkAllocation |
( |
qint64 |
fullSize | ) |
|
|
staticinherited |
◆ checkExifWorkingColorSpace()
bool Digikam::DImgLoader::checkExifWorkingColorSpace |
( |
| ) |
const |
|
protectedinherited |
◆ granularity()
int Digikam::DImgLoader::granularity |
( |
DImgLoaderObserver *const |
observer, |
|
|
int |
total, |
|
|
float |
progressSlice = 1.0F |
|
) |
| |
|
protectedvirtualinherited |
◆ hasAlpha()
bool Digikam::DImgHEIFLoader::hasAlpha |
( |
| ) |
const |
|
overridevirtual |
◆ hasLoadedData()
bool Digikam::DImgLoader::hasLoadedData |
( |
| ) |
const |
|
virtualinherited |
◆ imageBitsDepth()
int Digikam::DImgLoader::imageBitsDepth |
( |
| ) |
const |
|
protectedinherited |
◆ imageBytesDepth()
int Digikam::DImgLoader::imageBytesDepth |
( |
| ) |
const |
|
protectedinherited |
◆ imageData()
unsigned char *& Digikam::DImgLoader::imageData |
( |
| ) |
|
|
protectedinherited |
References Digikam::DImgLoader::m_image.
Referenced by DigikamImageMagickDImgPlugin::DImgImageMagickLoader::load(), DigikamJPEGDImgPlugin::DImgJPEGLoader::load(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::load(), Digikam::DImgPGFLoader::load(), DigikamQImageDImgPlugin::DImgQImageLoader::load(), DigikamTIFFDImgPlugin::DImgTIFFLoader::load(), save(), DigikamImageMagickDImgPlugin::DImgImageMagickLoader::save(), DigikamJPEGDImgPlugin::DImgJPEGLoader::save(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::save(), Digikam::DImgPGFLoader::save(), and DigikamTIFFDImgPlugin::DImgTIFFLoader::save().
◆ imageEmbeddedText()
QMap< QString, QString > & Digikam::DImgLoader::imageEmbeddedText |
( |
| ) |
const |
|
protectedinherited |
◆ imageGetAttribute()
QVariant Digikam::DImgLoader::imageGetAttribute |
( |
const QString & |
key | ) |
const |
|
protectedinherited |
◆ imageGetEmbbededText()
QString Digikam::DImgLoader::imageGetEmbbededText |
( |
const QString & |
key | ) |
const |
|
protectedinherited |
◆ imageHasAlpha()
bool Digikam::DImgLoader::imageHasAlpha |
( |
| ) |
const |
|
protectedinherited |
◆ imageHeight()
unsigned int & Digikam::DImgLoader::imageHeight |
( |
| ) |
|
|
protectedinherited |
References Digikam::DImgLoader::m_image.
Referenced by DigikamImageMagickDImgPlugin::DImgImageMagickLoader::load(), DigikamJPEGDImgPlugin::DImgJPEGLoader::load(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::load(), Digikam::DImgPGFLoader::load(), DigikamQImageDImgPlugin::DImgQImageLoader::load(), DigikamTIFFDImgPlugin::DImgTIFFLoader::load(), DigikamRAWDImgPlugin::DImgRAWLoader::load(), save(), DigikamImageMagickDImgPlugin::DImgImageMagickLoader::save(), DigikamJPEGDImgPlugin::DImgJPEGLoader::save(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::save(), Digikam::DImgPGFLoader::save(), and DigikamTIFFDImgPlugin::DImgTIFFLoader::save().
◆ imageNumBytes()
quint64 Digikam::DImgLoader::imageNumBytes |
( |
| ) |
const |
|
protectedinherited |
◆ imageSetAttribute()
void Digikam::DImgLoader::imageSetAttribute |
( |
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
|
protectedinherited |
References Digikam::DImgLoader::m_image, Digikam::DImg::setAttribute(), and value.
Referenced by DigikamImageMagickDImgPlugin::DImgImageMagickLoader::load(), DigikamJPEGDImgPlugin::DImgJPEGLoader::load(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::load(), Digikam::DImgPGFLoader::load(), DigikamQImageDImgPlugin::DImgQImageLoader::load(), DigikamTIFFDImgPlugin::DImgTIFFLoader::load(), DigikamRAWDImgPlugin::DImgRAWLoader::load(), Digikam::DImgLoader::readMetadata(), DigikamImageMagickDImgPlugin::DImgImageMagickLoader::save(), DigikamJPEGDImgPlugin::DImgJPEGLoader::save(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::save(), Digikam::DImgPGFLoader::save(), DigikamQImageDImgPlugin::DImgQImageLoader::save(), and DigikamTIFFDImgPlugin::DImgTIFFLoader::save().
◆ imageSetEmbbededText()
void Digikam::DImgLoader::imageSetEmbbededText |
( |
const QString & |
key, |
|
|
const QString & |
text |
|
) |
| |
|
protectedinherited |
◆ imageSetIccProfile()
void Digikam::DImgLoader::imageSetIccProfile |
( |
const IccProfile & |
profile | ) |
|
|
protectedinherited |
◆ imageSixteenBit()
bool Digikam::DImgLoader::imageSixteenBit |
( |
| ) |
const |
|
protectedinherited |
◆ imageWidth()
unsigned int & Digikam::DImgLoader::imageWidth |
( |
| ) |
|
|
protectedinherited |
References Digikam::DImgLoader::m_image.
Referenced by DigikamImageMagickDImgPlugin::DImgImageMagickLoader::load(), DigikamJPEGDImgPlugin::DImgJPEGLoader::load(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::load(), Digikam::DImgPGFLoader::load(), DigikamQImageDImgPlugin::DImgQImageLoader::load(), DigikamTIFFDImgPlugin::DImgTIFFLoader::load(), DigikamRAWDImgPlugin::DImgRAWLoader::load(), save(), DigikamImageMagickDImgPlugin::DImgImageMagickLoader::save(), DigikamJPEGDImgPlugin::DImgJPEGLoader::save(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::save(), Digikam::DImgPGFLoader::save(), and DigikamTIFFDImgPlugin::DImgTIFFLoader::save().
◆ isReadOnly()
bool Digikam::DImgHEIFLoader::isReadOnly |
( |
| ) |
const |
|
overridevirtual |
◆ load()
bool Digikam::DImgHEIFLoader::load |
( |
const QString & |
filePath, |
|
|
DImgLoaderObserver *const |
observer |
|
) |
| |
|
overridevirtual |
◆ loadingFailed()
void Digikam::DImgLoader::loadingFailed |
( |
| ) |
|
|
protectedinherited |
◆ new_failureTolerant() [1/6]
unsigned char * Digikam::DImgLoader::new_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
|
staticinherited |
◆ new_failureTolerant() [2/6]
template<typename Type >
static Type* Digikam::DImgLoader::new_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
|
staticinherited |
◆ new_failureTolerant() [3/6]
template<typename Type >
Q_INLINE_TEMPLATE Type* Digikam::DImgLoader::new_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
|
inherited |
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]
template<typename Type >
Q_INLINE_TEMPLATE Type* Digikam::DImgLoader::new_failureTolerant |
( |
size_t |
size | ) |
|
|
inherited |
◆ new_failureTolerant() [5/6]
unsigned char * Digikam::DImgLoader::new_failureTolerant |
( |
size_t |
unsecureSize | ) |
|
|
staticinherited |
◆ new_failureTolerant() [6/6]
template<typename Type >
static Type* Digikam::DImgLoader::new_failureTolerant |
( |
size_t |
unsecureSize | ) |
|
|
staticinherited |
◆ new_short_failureTolerant() [1/2]
unsigned short * Digikam::DImgLoader::new_short_failureTolerant |
( |
quint64 |
w, |
|
|
quint64 |
h, |
|
|
uint |
typesPerPixel |
|
) |
| |
|
staticinherited |
◆ new_short_failureTolerant() [2/2]
unsigned short * Digikam::DImgLoader::new_short_failureTolerant |
( |
size_t |
unsecureSize | ) |
|
|
staticinherited |
◆ purgeExifWorkingColorSpace()
void Digikam::DImgLoader::purgeExifWorkingColorSpace |
( |
| ) |
|
|
protectedinherited |
◆ readMetadata()
bool Digikam::DImgLoader::readMetadata |
( |
const QString & |
filePath | ) |
|
|
protectedvirtualinherited |
References Digikam::DImg::createHistoryImageId(), Digikam::HistoryImageId::Current, Digikam::DImageHistory::fromXml(), Digikam::DImgLoader::imageSetAttribute(), Digikam::DImgLoader::LoadImageHistory, Digikam::DImgLoader::LoadMetadata, Digikam::DImgLoader::LoadUniqueHash, Digikam::DImgLoader::m_image, Digikam::DImgLoader::m_loadFlags, Digikam::DImg::setItemHistory(), and Digikam::DImg::setMetadata().
Referenced by load(), DigikamImageMagickDImgPlugin::DImgImageMagickLoader::load(), DigikamJPEGDImgPlugin::DImgJPEGLoader::load(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::load(), Digikam::DImgPGFLoader::load(), DigikamQImageDImgPlugin::DImgQImageLoader::load(), DigikamTIFFDImgPlugin::DImgTIFFLoader::load(), and DigikamRAWDImgPlugin::DImgRAWLoader::load().
◆ save()
bool Digikam::DImgHEIFLoader::save |
( |
const QString & |
filePath, |
|
|
DImgLoaderObserver *const |
observer |
|
) |
| |
|
overridevirtual |
Implements Digikam::DImgLoader.
References Digikam::DImgLoaderObserver::continueQuery(), heif_encoder::encoder, Digikam::DImgLoader::granularity(), heif_channel_interleaved, heif_chroma_interleaved_RGB, heif_chroma_interleaved_RGBA, heif_chroma_interleaved_RRGGBB_BE, heif_chroma_interleaved_RRGGBBAA_BE, heif_colorspace_RGB, heif_compression_HEVC, heif_context_alloc(), heif_context_encode_image(), heif_context_encode_thumbnail(), heif_context_free(), heif_context_get_encoder_for_format(), heif_encoder_release(), heif_encoder_set_lossless(), heif_encoder_set_lossy_quality(), heif_encoding_options_alloc(), heif_encoding_options_free(), heif_image_add_plane(), heif_image_create(), heif_image_get_plane(), heif_image_handle_release(), heif_image_handle::image, heif_image::image, Digikam::DImgLoader::imageBytesDepth(), Digikam::DImgLoader::imageData(), Digikam::DImgLoader::imageGetAttribute(), Digikam::DImgLoader::imageHasAlpha(), Digikam::DImgLoader::imageHeight(), Digikam::DImgLoader::imageSixteenBit(), Digikam::DImgLoader::imageWidth(), Digikam::DImgLoaderObserver::progressInfo(), heif_encoding_options::save_alpha_channel, heif_writer::write, heif_writer::writer_api_version, and x265MaxBitsDepth().
◆ saveMetadata()
bool Digikam::DImgLoader::saveMetadata |
( |
const QString & |
filePath | ) |
|
|
protectedvirtualinherited |
◆ setLoadFlags()
void Digikam::DImgLoader::setLoadFlags |
( |
LoadFlags |
flags | ) |
|
|
inherited |
◆ sixteenBit()
bool Digikam::DImgHEIFLoader::sixteenBit |
( |
| ) |
const |
|
overridevirtual |
◆ storeColorProfileInMetadata()
void Digikam::DImgLoader::storeColorProfileInMetadata |
( |
| ) |
|
|
protectedinherited |
◆ x265MaxBitsDepth()
int Digikam::DImgHEIFLoader::x265MaxBitsDepth |
( |
| ) |
|
|
static |
Determine libx265 encoder bits depth capability: 8=standard, 10, 12, or more. Return -1 if encoder instance is not found.
Referenced by save().
◆ m_image
DImg* Digikam::DImgLoader::m_image |
|
protectedinherited |
Referenced by Digikam::DImgLoader::checkExifWorkingColorSpace(), Digikam::DImgLoader::hasLoadedData(), Digikam::DImgLoader::imageBitsDepth(), Digikam::DImgLoader::imageBytesDepth(), Digikam::DImgLoader::imageData(), Digikam::DImgLoader::imageEmbeddedText(), Digikam::DImgLoader::imageGetAttribute(), Digikam::DImgLoader::imageGetEmbbededText(), Digikam::DImgLoader::imageHasAlpha(), Digikam::DImgLoader::imageHeight(), Digikam::DImgLoader::imageNumBytes(), Digikam::DImgLoader::imageSetAttribute(), Digikam::DImgLoader::imageSetEmbbededText(), Digikam::DImgLoader::imageSetIccProfile(), Digikam::DImgLoader::imageSixteenBit(), Digikam::DImgLoader::imageWidth(), Digikam::DImgLoader::loadingFailed(), DigikamRAWDImgPlugin::DImgRAWLoader::postProcess(), Digikam::DImgLoader::purgeExifWorkingColorSpace(), Digikam::DImgLoader::readMetadata(), DigikamImageMagickDImgPlugin::DImgImageMagickLoader::save(), DigikamJPEGDImgPlugin::DImgJPEGLoader::save(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::save(), DigikamQImageDImgPlugin::DImgQImageLoader::save(), DigikamTIFFDImgPlugin::DImgTIFFLoader::save(), Digikam::DImgLoader::saveMetadata(), and Digikam::DImgLoader::storeColorProfileInMetadata().
◆ m_loadFlags
LoadFlags Digikam::DImgLoader::m_loadFlags |
|
protectedinherited |
The documentation for this class was generated from the following files: