digiKam
|
Public Types | |
enum | ProfileType { InvalidType , Input , Output , Display , Abstract , ColorSpace , DeviceLink , NamedColor } |
Public Member Functions | |
void | close () |
QByteArray | data () |
QString | description () |
QString | filePath () const |
void * | handle () const |
IccProfile () | |
IccProfile (const IccProfile &other) | |
IccProfile (const QByteArray &data) | |
IccProfile (const QString &filePath) | |
bool | isNull () const |
bool | isOpen () const |
bool | isSameProfileAs (IccProfile &other) |
bool | open () |
operator void * () const | |
bool | operator!= (const IccProfile &other) const |
IccProfile & | operator= (const IccProfile &other) |
bool | operator== (const IccProfile &other) const |
ProfileType | type () |
bool | writeToFile (const QString &filePath) |
~IccProfile () | |
Static Public Member Functions | |
static IccProfile | adobeRGB () |
static void | considerOriginalAdobeRGB (const QString &filePath) |
static QList< IccProfile > | defaultProfiles () |
static QStringList | defaultSearchPaths () |
static IccProfile | proPhotoRGB () |
static QList< IccProfile > | scanDirectories (const QStringList &dirs) |
static IccProfile | sRGB () |
static IccProfile | wideGamutRGB () |
Digikam::IccProfile::IccProfile | ( | ) |
Creates a null profile
Referenced by adobeRGB(), proPhotoRGB(), sRGB(), and wideGamutRGB().
|
explicit |
Creates a profile from the given data in memory
References data().
|
explicit |
Creates a profile from the given file
References filePath().
Digikam::IccProfile::IccProfile | ( | const IccProfile & | other | ) |
Digikam::IccProfile::~IccProfile | ( | ) |
|
static |
References IccProfile().
Referenced by defaultProfiles(), and Digikam::DMetadata::getIccProfile().
void Digikam::IccProfile::close | ( | ) |
Close the profile, freeing resources. You can re-open. Called automatically at destruction.
Referenced by Digikam::IccSettings::loadAllProfilesProperties().
|
static |
References filePath().
Referenced by Digikam::IccSettings::Private::scanDirectory().
QByteArray Digikam::IccProfile::data | ( | ) |
Returns the raw profile data. Reads the data from disk if loaded from disk and not yet loaded.
Referenced by IccProfile(), isSameProfileAs(), open(), DigikamImageMagickDImgPlugin::DImgImageMagickLoader::save(), DigikamJPEGDImgPlugin::DImgJPEGLoader::save(), DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::save(), DigikamQImageDImgPlugin::DImgQImageLoader::save(), DigikamTIFFDImgPlugin::DImgTIFFLoader::save(), Digikam::DMetadata::setIccProfile(), Digikam::IccProfilesMenuAction::slotTriggered(), and writeToFile().
|
static |
Returns a list with the profiles above
References adobeRGB(), proPhotoRGB(), sRGB(), and wideGamutRGB().
Referenced by Digikam::IccSettings::allProfiles().
|
static |
Returns the default search paths for ICC profiles. This does not include any user-specified settings.
References Digikam::macOSBundlePrefix(), and QT_SKIP_EMPTY_PARTS.
Referenced by Digikam::IccSettings::allProfiles(), and Digikam::SetupICC::iccRepositoryIsValid().
QString Digikam::IccProfile::description | ( | ) |
Reads the profile description. Opens the profile if necessary.
References dkCmsTakeProductDesc(), and open().
Referenced by Digikam::IccTransformFilter::filterAction(), Digikam::iccProfileLessThan(), Digikam::IccSettings::loadAllProfilesProperties(), Digikam::ThumbnailLoadingTask::postProcess(), Digikam::IccSettings::Private::profileFromWindowSystem(), and Digikam::IccSettings::profilesForDescription().
QString Digikam::IccProfile::filePath | ( | ) | const |
Returns the filename that this profile was read from. returns a null QString() if this profile was loaded from memory.
Referenced by considerOriginalAdobeRGB(), DigikamBqmIccConvertPlugin::IccConvert::defaultSettings(), IccProfile(), and writeToFile().
void * Digikam::IccProfile::handle | ( | ) | const |
Access to the LCMS cmsHPROFILE handle.
bool Digikam::IccProfile::isNull | ( | ) | const |
Referenced by Digikam::DImgLoader::checkExifWorkingColorSpace(), Digikam::DImg::convertToPixmap(), Digikam::PreviewLoadThread::createLoadingDescription(), Digikam::RawProcessingFilter::filterImage(), Digikam::IccManager::getTransform(), Digikam::ICCProfileInfoDlg::ICCProfileInfoDlg(), Digikam::IccManager::isSRGB(), Digikam::IccSettings::monitorProfile(), Digikam::IccSettings::monitorProfileFromSystem(), Digikam::IccTransformFilter::parametersSuccessfullyRead(), Digikam::IccTransformFilter::readParametersError(), Digikam::IccProfilesComboBox::setCurrentProfile(), Digikam::DMetadata::setIccProfile(), Digikam::IccProfilesMenuAction::slotTriggered(), Digikam::DImgLoader::storeColorProfileInMetadata(), Digikam::IccManager::transformForDisplay(), Digikam::IccManager::transformForOutput(), and Digikam::IccManager::transformToSRGB().
bool Digikam::IccProfile::isOpen | ( | ) | const |
Returns if the profile is opened.
Referenced by Digikam::IccSettings::loadAllProfilesProperties().
bool Digikam::IccProfile::isSameProfileAs | ( | IccProfile & | other | ) |
This method compares the actual profile data bit by bit.
References data().
Referenced by Digikam::IccManager::displayTransform(), Digikam::IccManager::isSRGB(), Digikam::IccManager::transformForDisplay(), and Digikam::IccManager::transformToSRGB().
bool Digikam::IccProfile::open | ( | ) |
Open this profile. Returns true if the operation succeeded or the profile is already open. Returns false if the profile is null or the operation failed. You need to open each profile after construction.
References data(), and dkCmsOpenProfileFromMem().
Referenced by description(), Digikam::IccManager::displayProfile(), Digikam::IccSettings::Private::scanDirectory(), and type().
|
inline |
|
inline |
References Digikam::operator==().
IccProfile & Digikam::IccProfile::operator= | ( | const IccProfile & | other | ) |
bool Digikam::IccProfile::operator== | ( | const IccProfile & | other | ) | const |
Returns true if both profiles are null, if both profiles are created from the same file profile, or if the loaded profile data is identical. Note: This will not ensure that the data is loaded. Use isSameProfile().
|
static |
References IccProfile().
Referenced by defaultProfiles().
|
static |
|
static |
Returns the profiles available with RawEngine. You still need to call open() on them.
References IccProfile().
Referenced by Digikam::PreviewLoadThread::createLoadingDescription(), defaultProfiles(), Digikam::IccManager::displayProfile(), Digikam::DMetadata::getIccProfile(), Digikam::SetupICC::iccRepositoryIsValid(), Digikam::IccManager::imageProfile(), Digikam::IccManager::isSRGB(), Digikam::IccSettings::monitorProfile(), Digikam::IccManager::transformForDisplay(), Digikam::IccManager::transformForOutput(), and Digikam::IccManager::transformToSRGB().
IccProfile::ProfileType Digikam::IccProfile::type | ( | ) |
< 'nkbf', proprietary in Nikon profiles
References Abstract, ColorSpace, DeviceLink, Display, dkCmsGetDeviceClass(), icSigAbstractClass, icSigColorSpaceClass, icSigDisplayClass, icSigInputClass, icSigLinkClass, icSigNamedColorClass, icSigOutputClass, Input, InvalidType, NamedColor, open(), and Output.
Referenced by Digikam::IccSettings::displayProfiles(), Digikam::IccSettings::inputProfiles(), Digikam::IccSettings::loadAllProfilesProperties(), Digikam::IccSettings::outputProfiles(), and Digikam::IccSettings::workspaceProfiles().
|
static |
References IccProfile().
Referenced by defaultProfiles().
bool Digikam::IccProfile::writeToFile | ( | const QString & | filePath | ) |
Writes the profile to the given file.
References data(), and filePath().