digiKam
|
Classes | |
class | PostProcessingParameters |
class | PreviewParameters |
Public Types | |
enum | ColorManagementSettings { NoColorConversion , ApplyTransform , ConvertForEditor , ConvertToSRGB , ConvertForDisplay , ConvertForOutput } |
enum | RawDecodingHint { RawDecodingDefaultSettings , RawDecodingGlobalSettings , RawDecodingCustomSettings , RawDecodingTimeOptimized } |
Public Member Functions | |
QString | cacheKey () const |
bool | equalsIgnoreReducedVersion (const LoadingDescription &other) const |
bool | equalsOrBetterThan (const LoadingDescription &other) const |
bool | isPreviewImage () const |
bool | isReducedVersion () const |
bool | isThumbnail () const |
LoadingDescription () | |
LoadingDescription (const QString &filePath, ColorManagementSettings=NoColorConversion) | |
LoadingDescription (const QString &filePath, const DRawDecoding &settings, RawDecodingHint rawDecodingHint=RawDecodingCustomSettings, ColorManagementSettings=NoColorConversion) | |
LoadingDescription (const QString &filePath, const PreviewSettings &settings, int size, ColorManagementSettings=NoColorConversion, PreviewParameters::PreviewType=PreviewParameters::PreviewImage) | |
QStringList | lookupCacheKeys () const |
bool | needCheckRawDecoding () const |
bool | operator!= (const LoadingDescription &other) const |
bool | operator== (const LoadingDescription &other) const |
ThumbnailIdentifier | thumbnailIdentifier () const |
Static Public Member Functions | |
static QStringList | possibleCacheKeys (const QString &filePath) |
static QStringList | possibleThumbnailCacheKeys (const QString &filePath) |
Public Attributes | |
QString | filePath |
PostProcessingParameters | postProcessingParameters |
PreviewParameters | previewParameters |
RawDecodingHint | rawDecodingHint |
DRawDecoding | rawDecodingSettings |
Enumerator | |
---|---|
NoColorConversion | |
ApplyTransform | IccData is an IccTransform. |
ConvertForEditor | |
ConvertToSRGB | |
ConvertForDisplay | IccData can be the output profile. |
ConvertForOutput | IccData is the output profile. |
Digikam::LoadingDescription::LoadingDescription | ( | ) |
An invalid LoadingDescription
|
explicit |
Use this for full loading of non-raw files
References Digikam::LoadingDescription::PostProcessingParameters::colorManagement, and postProcessingParameters.
Digikam::LoadingDescription::LoadingDescription | ( | const QString & | filePath, |
const DRawDecoding & | settings, | ||
RawDecodingHint | rawDecodingHint = RawDecodingCustomSettings , |
||
ColorManagementSettings | cm = NoColorConversion |
||
) |
Use this for full loading of raw files
References Digikam::LoadingDescription::PostProcessingParameters::colorManagement, and postProcessingParameters.
Digikam::LoadingDescription::LoadingDescription | ( | const QString & | filePath, |
const PreviewSettings & | settings, | ||
int | size, | ||
ColorManagementSettings | cm = NoColorConversion , |
||
PreviewParameters::PreviewType | type = PreviewParameters::PreviewImage |
||
) |
For preview and thumbnail jobs: Stores preview max size and Exif rotation. Raw files / preview jobs: If size is not 0, the embedded preview will be loaded if available. If size is 0, DImg based loading will be used with default raw decoding settings. You can also adjust raw decoding settings and hint in this case.
References Digikam::LoadingDescription::PostProcessingParameters::colorManagement, postProcessingParameters, previewParameters, Digikam::LoadingDescription::PreviewParameters::previewSettings, Digikam::LoadingDescription::PreviewParameters::size, and Digikam::LoadingDescription::PreviewParameters::type.
QString Digikam::LoadingDescription::cacheKey | ( | ) | const |
Return the cache key for this description
References Digikam::LoadingDescription::PreviewParameters::DetailThumbnail, Digikam::LoadingDescription::PreviewParameters::extraParameter, filePath, Digikam::DRawDecoderSettings::halfSizeColorImage, Digikam::LoadingDescription::PreviewParameters::NoPreview, previewParameters, RawDecodingCustomSettings, RawDecodingGlobalSettings, rawDecodingHint, rawDecodingSettings, RawDecodingTimeOptimized, Digikam::DRawDecoding::rawPrm, Digikam::DRawDecoderSettings::sixteenBitsImage, Digikam::LoadingDescription::PreviewParameters::size, Digikam::LoadingDescription::PreviewParameters::storageReference, suffix, Digikam::LoadingDescription::PreviewParameters::Thumbnail, and Digikam::LoadingDescription::PreviewParameters::type.
Referenced by Digikam::SharedLoadingTask::cacheKey(), Digikam::ThumbnailLoadThread::Private::checkDescription(), Digikam::SharedLoadingTask::execute(), Digikam::PreviewLoadingTask::execute(), Digikam::ThumbnailLoadingTask::execute(), lookupCacheKeys(), and Digikam::ThumbnailLoadThread::thumbnailLoaded().
bool Digikam::LoadingDescription::equalsIgnoreReducedVersion | ( | const LoadingDescription & | other | ) | const |
Returns whether the other loading task equals this one ignoring parameters used to specify a reduced version.
References filePath.
Referenced by Digikam::SharedLoadingTask::notifyNewLoadingProcess().
bool Digikam::LoadingDescription::equalsOrBetterThan | ( | const LoadingDescription & | other | ) | const |
Returns whether this loading task equals the other one or is superior to it, if the other one is a reduced version
References filePath, Digikam::DRawDecoding::optimizeTimeLoading(), previewParameters, rawDecodingSettings, and Digikam::LoadingDescription::PreviewParameters::size.
bool Digikam::LoadingDescription::isPreviewImage | ( | ) | const |
Returns if this description will load a preview
References Digikam::LoadingDescription::PreviewParameters::PreviewImage, previewParameters, and Digikam::LoadingDescription::PreviewParameters::type.
bool Digikam::LoadingDescription::isReducedVersion | ( | ) | const |
Returns whether this description describes a loading operation which loads the image in a reduced version (quality, size etc.)
References Digikam::DRawDecoderSettings::halfSizeColorImage, Digikam::LoadingDescription::PreviewParameters::NoPreview, previewParameters, rawDecodingSettings, Digikam::DRawDecoding::rawPrm, and Digikam::LoadingDescription::PreviewParameters::type.
Referenced by Digikam::SharedLoadingTask::notifyNewLoadingProcess().
bool Digikam::LoadingDescription::isThumbnail | ( | ) | const |
Returns if this description will load a thumbnail
References Digikam::LoadingDescription::PreviewParameters::DetailThumbnail, previewParameters, Digikam::LoadingDescription::PreviewParameters::Thumbnail, and Digikam::LoadingDescription::PreviewParameters::type.
Referenced by thumbnailIdentifier().
QStringList Digikam::LoadingDescription::lookupCacheKeys | ( | ) | const |
Return all possible cache keys, starting with the best choice, for which a result may be found in the cache for this description. Included in the list are better quality versions, if this description is reduced.
References cacheKey(), Digikam::LoadingDescription::PreviewParameters::DetailThumbnail, filePath, Digikam::DRawDecoderSettings::halfSizeColorImage, Digikam::LoadingDescription::PreviewParameters::NoPreview, previewParameters, RawDecodingCustomSettings, RawDecodingDefaultSettings, RawDecodingGlobalSettings, rawDecodingHint, rawDecodingSettings, RawDecodingTimeOptimized, Digikam::DRawDecoding::rawPrm, Digikam::DRawDecoderSettings::sixteenBitsImage, Digikam::LoadingDescription::PreviewParameters::size, Digikam::LoadingDescription::PreviewParameters::Thumbnail, and Digikam::LoadingDescription::PreviewParameters::type.
Referenced by Digikam::SharedLoadingTask::execute(), and Digikam::PreviewLoadingTask::execute().
bool Digikam::LoadingDescription::needCheckRawDecoding | ( | ) | const |
For some RAW images, the same cache key is not enough to say it is the correct result. You must check the raw decoding settings in this case.
References RawDecodingCustomSettings, RawDecodingGlobalSettings, and rawDecodingHint.
Referenced by Digikam::SharedLoadingTask::execute(), and Digikam::PreviewLoadingTask::execute().
bool Digikam::LoadingDescription::operator!= | ( | const LoadingDescription & | other | ) | const |
bool Digikam::LoadingDescription::operator== | ( | const LoadingDescription & | other | ) | const |
Returns whether the other loading task equals this one
References filePath, postProcessingParameters, previewParameters, and rawDecodingSettings.
|
static |
Returns all possible cacheKeys for the given file path (all cache keys under which the given file could be stored in the cache).
References filePath, and Digikam::ThumbnailSize::HD.
|
static |
References filePath, and Digikam::ThumbnailSize::HD.
Referenced by Digikam::ThumbnailLoadThread::deleteThumbnail().
ThumbnailIdentifier Digikam::LoadingDescription::thumbnailIdentifier | ( | ) | const |
If this referenced a thumbnail, recreate the identifier
References filePath, Digikam::ThumbnailIdentifier::filePath, isThumbnail(), previewParameters, and Digikam::LoadingDescription::PreviewParameters::storageReference.
Referenced by Digikam::ThumbnailLoadingTask::execute(), Digikam::AlbumThumbnailLoader::slotGotThumbnailFromIcon(), and Digikam::ItemThumbnailModel::slotThumbnailLoaded().
QString Digikam::LoadingDescription::filePath |
Referenced by cacheKey(), equalsIgnoreReducedVersion(), equalsOrBetterThan(), Digikam::LoadingTask::execute(), Digikam::SharedLoadingTask::execute(), Digikam::PreviewLoadingTask::execute(), Digikam::ThumbnailLoadingTask::execute(), Digikam::LoadingTask::filePath(), lookupCacheKeys(), Digikam::ThumbnailLoadThread::Private::makeDescriptions(), Digikam::FacePipelineExtendedPackage::operator==(), operator==(), possibleCacheKeys(), possibleThumbnailCacheKeys(), Digikam::DTrashItemModel::refreshThumbnails(), Digikam::EditorCore::slotImageLoaded(), Digikam::EditorCore::slotLoadingProgress(), Digikam::DItemsList::slotThumbnail(), Digikam::GPSItemModel::slotThumbnailLoaded(), ShowFoto::ShowfotoThumbnailModel::slotThumbnailLoaded(), and thumbnailIdentifier().
PostProcessingParameters Digikam::LoadingDescription::postProcessingParameters |
Referenced by Digikam::EditorCore::applyTransform(), Digikam::PreviewLoadThread::createLoadingDescription(), Digikam::ThumbnailLoadThread::Private::createLoadingDescription(), LoadingDescription(), Digikam::SharedLoadingTask::needsPostProcessing(), operator==(), Digikam::SharedLoadingTask::postProcess(), Digikam::ThumbnailLoadingTask::postProcess(), Digikam::SharedLoadingTask::setResult(), and Digikam::ThumbnailLoadingTask::setThumbResult().
PreviewParameters Digikam::LoadingDescription::previewParameters |
Referenced by cacheKey(), Digikam::ThumbnailLoadThread::Private::createLoadingDescription(), equalsOrBetterThan(), Digikam::PreviewLoadingTask::execute(), Digikam::ThumbnailLoadingTask::execute(), isPreviewImage(), isReducedVersion(), isThumbnail(), LoadingDescription(), lookupCacheKeys(), Digikam::ThumbnailLoadThread::Private::makeDescriptions(), operator==(), Digikam::AlbumThumbnailLoader::slotGotThumbnailFromIcon(), Digikam::ItemThumbnailModel::slotThumbnailLoaded(), ShowFoto::ShowfotoThumbnailModel::slotThumbnailLoaded(), and thumbnailIdentifier().
RawDecodingHint Digikam::LoadingDescription::rawDecodingHint |
DRawDecoding Digikam::LoadingDescription::rawDecodingSettings |