digiKam
Digikam::LoadingDescription Class Reference

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
 

Member Enumeration Documentation

◆ ColorManagementSettings

Enumerator
NoColorConversion 
ApplyTransform 

IccData is an IccTransform.

ConvertForEditor 
ConvertToSRGB 
ConvertForDisplay 

IccData can be the output profile.

ConvertForOutput 

IccData is the output profile.

◆ RawDecodingHint

Enumerator
RawDecodingDefaultSettings 

The raw decoding options passed are taken from default, hardcoded settings

RawDecodingGlobalSettings 

The raw decoding options passed are taken from global settings

RawDecodingCustomSettings 

The raw decoding options may be customly edited by the user

RawDecodingTimeOptimized 

The raw decoding options are hardcoded settings optimized for loading time The halfSizeColorImage and 16bit settings can be adjusted separately

Constructor & Destructor Documentation

◆ LoadingDescription() [1/4]

Digikam::LoadingDescription::LoadingDescription ( )

An invalid LoadingDescription

◆ LoadingDescription() [2/4]

Digikam::LoadingDescription::LoadingDescription ( const QString &  filePath,
ColorManagementSettings  cm = NoColorConversion 
)
explicit

Use this for full loading of non-raw files

References Digikam::LoadingDescription::PostProcessingParameters::colorManagement, and postProcessingParameters.

◆ LoadingDescription() [3/4]

Digikam::LoadingDescription::LoadingDescription ( const QString &  filePath,
const DRawDecoding settings,
RawDecodingHint  rawDecodingHint = RawDecodingCustomSettings,
ColorManagementSettings  cm = NoColorConversion 
)

◆ LoadingDescription() [4/4]

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.

Member Function Documentation

◆ cacheKey()

◆ equalsIgnoreReducedVersion()

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().

◆ equalsOrBetterThan()

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.

◆ isPreviewImage()

bool Digikam::LoadingDescription::isPreviewImage ( ) const

◆ isReducedVersion()

bool Digikam::LoadingDescription::isReducedVersion ( ) const

◆ isThumbnail()

bool Digikam::LoadingDescription::isThumbnail ( ) const

◆ lookupCacheKeys()

◆ needCheckRawDecoding()

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().

◆ operator!=()

bool Digikam::LoadingDescription::operator!= ( const LoadingDescription other) const

◆ operator==()

bool Digikam::LoadingDescription::operator== ( const LoadingDescription other) const

Returns whether the other loading task equals this one

References filePath, postProcessingParameters, previewParameters, and rawDecodingSettings.

◆ possibleCacheKeys()

QStringList Digikam::LoadingDescription::possibleCacheKeys ( const QString &  filePath)
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.

◆ possibleThumbnailCacheKeys()

QStringList Digikam::LoadingDescription::possibleThumbnailCacheKeys ( const QString &  filePath)
static

◆ thumbnailIdentifier()

Member Data Documentation

◆ filePath

◆ postProcessingParameters

◆ previewParameters

◆ rawDecodingHint

◆ rawDecodingSettings


The documentation for this class was generated from the following files: