digiKam
|
Public Member Functions | |
bool | addToXmpTagStringBag (const char *const xmpTagName, const QStringList &entriesToAdd) const |
bool | applyChanges (bool setVersion=false) const |
DMetadata () | |
DMetadata (const MetaEngineData &data) | |
DMetadata (const QString &filePath) | |
bool | getACDSeeTagsPath (QStringList &tagsPath) const |
QString | getCameraSerialNumber () const |
bool | getCopyrightInformation (Template &t) const |
IptcCoreContactInfo | getCreatorContactInfo () const |
IccProfile | getIccProfile () const |
IptcCoreLocationInfo | getIptcCoreLocation () const |
QStringList | getIptcCoreSubjects () const |
int | getItemColorLabel (const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
CaptionsMap | getItemComments (const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
bool | getItemFacesMap (QMultiMap< QString, QVariant > &facesPath) const |
QString | getItemHistory () const |
int | getItemPickLabel () const |
int | getItemRating (const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
bool | getItemTagsPath (QStringList &tagsPath, const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
CaptionsMap | getItemTitles (const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
QString | getItemUniqueId () const |
QString | getLensDescription () const |
QVariant | getMetadataField (MetadataInfo::Field field) const |
QVariantList | getMetadataFields (const MetadataFields &fields) const |
Template | getMetadataTemplate () const |
int | getMSecsInfo () const |
PhotoInfoContainer | getPhotographInformation () const |
VideoInfoContainer | getVideoInformation () const |
QStringList | getXmpKeywords () const |
QStringList | getXmpSubCategories () const |
QStringList | getXmpSubjects () const |
bool | hasItemHistoryTag () const |
bool | load (const QString &filePath, Backend *backend=nullptr) |
bool | loadUsingFFmpeg (const QString &filePath) |
bool | loadUsingRawEngine (const QString &filePath) |
bool | mSecTimeStamp (const char *const exifTagName, int &ms) const |
void | registerMetadataSettings () |
bool | removeExifColorSpace () const |
bool | removeExifTags (const QStringList &tagFilters) |
bool | removeFromXmpTagStringBag (const char *const xmpTagName, const QStringList &entriesToRemove) const |
bool | removeIptcTags (const QStringList &tagFilters) |
bool | removeItemFacesMap () const |
bool | removeMetadataTemplate () const |
bool | removeXmpKeywords (const QStringList &keywordsToRemove) |
bool | removeXmpSubCategories (const QStringList &categoriesToRemove) |
bool | removeXmpSubjects (const QStringList &subjectsToRemove) |
bool | removeXmpTags (const QStringList &tagFilters) |
bool | save (const QString &filePath, bool setVersion=false) const |
bool | setACDSeeTagsPath (const QStringList &tagsPath) const |
bool | setCreatorContactInfo (const IptcCoreContactInfo &info) const |
bool | setIccProfile (const IccProfile &profile) |
bool | setIptcCoreLocation (const IptcCoreLocationInfo &location) const |
bool | setItemColorLabel (int colorId, const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
bool | setItemComments (const CaptionsMap &comments, const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
bool | setItemFacesMap (const QMultiMap< QString, QVariant > &facesPath, bool write, const QSize &size=QSize()) const |
bool | setItemHistory (const QString &imageHistoryXml) const |
bool | setItemPickLabel (int pickId) const |
bool | setItemRating (int rating, const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
bool | setItemTagsPath (const QStringList &tagsPath, const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
bool | setItemTitles (const CaptionsMap &title, const DMetadataSettingsContainer &settings=DMetadataSettings::instance() ->settings()) const |
bool | setItemUniqueId (const QString &uuid) const |
bool | setMetadataTemplate (const Template &t) const |
void | setSettings (const MetaEngineSettingsContainer &settings) |
bool | setXmpKeywords (const QStringList &newKeywords) const |
bool | setXmpSubCategories (const QStringList &newSubCategories) const |
bool | setXmpSubjects (const QStringList &newSubjects) const |
~DMetadata () | |
General methods | |
MetaEngineData | data () const |
void | setData (const MetaEngineData &data) |
bool | loadFromData (const QByteArray &imgData) |
bool | isEmpty () const |
QSize | getPixelSize () const |
QString | getMimeType () const |
void | setWriteRawFiles (const bool on) |
bool | writeRawFiles () const |
void | setWriteDngFiles (const bool on) |
bool | writeDngFiles () const |
void | setUseXMPSidecar4Reading (const bool on) |
bool | useXMPSidecar4Reading () const |
void | setUseCompatibleFileName (const bool on) |
bool | useCompatibleFileName () const |
void | setMetadataWritingMode (const int mode) |
int | metadataWritingMode () const |
void | setUpdateFileTimeStamp (bool on) |
bool | updateFileTimeStamp () const |
Metadata item information manipulation methods | |
bool | setItemProgramId (const QString &program, const QString &version) const |
QSize | getItemDimensions () const |
bool | setItemDimensions (const QSize &size) const |
MetaEngine::ImageOrientation | getItemOrientation () const |
bool | setItemOrientation (ImageOrientation orientation) const |
MetaEngine::ImageColorWorkSpace | getItemColorWorkSpace () const |
bool | setItemColorWorkSpace (ImageColorWorkSpace workspace) const |
QDateTime | getItemDateTime () const |
bool | setImageDateTime (const QDateTime &dateTime, bool setDateTimeDigitized=false) const |
QDateTime | getDigitizationDateTime (bool fallbackToCreationTime=false) const |
bool | getItemPreview (QImage &preview) const |
bool | setItemPreview (const QImage &preview) const |
Static Public Member Functions | |
static double | apexApertureToFNumber (double aperture) |
static double | apexShutterSpeedToExposureTime (double shutterSpeed) |
static CountryCodeMap | countryCodeMap () |
static QMap< int, QString > | possibleValuesForEnumField (MetadataInfo::Field field) |
static MetaEngine::AltLangMap | toAltLangMap (const QVariant &var) |
static QStringList | valuesToString (const QVariantList &list, const MetadataFields &fields) |
static QString | valueToString (const QVariant &value, MetadataInfo::Field field) |
static QString | videoColorModelToString (VIDEOCOLORMODEL videoColorModel) |
Static methods | |
static bool | initializeExiv2 () |
static bool | supportXmp () |
static bool | supportBmff () |
static bool | supportMetadataWriting (const QString &typeMime) |
static QString | Exiv2Version () |
File I/O methods | |
void | setFilePath (const QString &path) |
QString | getFilePath () const |
bool | loadFromSidecarAndMerge (const QString &filePath) |
bool | exportChanges (const QString &exvTmpFile, QStringList &removedTags) const |
static QString | sidecarFilePathForFile (const QString &path, bool useLR=false) |
static QString | sidecarPath (const QString &path) |
static QUrl | sidecarUrl (const QUrl &url) |
static QUrl | sidecarUrl (const QString &path) |
static bool | hasSidecar (const QString &path) |
static QString | backendName (Backend t) |
Comments manipulation methods | |
bool | hasComments () const |
bool | clearComments () const |
QByteArray | getComments () const |
QString | getCommentsDecoded () const |
bool | setComments (const QByteArray &data) const |
static bool | canWriteComment (const QString &filePath) |
static QString | detectLanguageAlt (const QString &value, QString &lang) |
Exif manipulation methods | |
TagsMap | getStdExifTagsList () const |
TagsMap | getMakernoteTagsList () const |
bool | hasExif () const |
bool | clearExif () const |
QByteArray | getExifEncoded (bool addExifHeader=false) const |
bool | setExif (const QByteArray &data) const |
QImage | getExifThumbnail (bool fixOrientation) const |
bool | rotateExifQImage (QImage &image, ImageOrientation orientation) const |
bool | setExifThumbnail (const QImage &thumb) const |
bool | removeExifThumbnail () const |
bool | setTiffThumbnail (const QImage &thumb) const |
QString | getExifComment (bool readDescription=true) const |
bool | setExifComment (const QString &comment, bool writeDescription=true) const |
QString | getExifTagString (const char *exifTagName, bool escapeCR=true) const |
bool | setExifTagString (const char *exifTagName, const QString &value) const |
bool | getExifTagLong (const char *exifTagName, long &val) const |
bool | getExifTagLong (const char *exifTagName, long &val, int component) const |
bool | setExifTagLong (const char *exifTagName, long val) const |
bool | getExifTagRational (const char *exifTagName, long int &num, long int &den, int component=0) const |
bool | setExifTagRational (const char *exifTagName, long int num, long int den) const |
QByteArray | getExifTagData (const char *exifTagName) const |
bool | setExifTagData (const char *exifTagName, const QByteArray &data) const |
QVariant | getExifTagVariant (const char *exifTagName, bool rationalAsListOfInts=true, bool escapeCR=true, int component=0) const |
bool | setExifTagVariant (const char *exifTagName, const QVariant &data, bool rationalWantSmallDenominator=true) const |
bool | removeExifTag (const char *exifTagName) const |
QString | getExifTagTitle (const char *exifTagName) |
QString | getExifTagDescription (const char *exifTagName) |
QString | createExifUserStringFromValue (const char *exifTagName, const QVariant &val, bool escapeCR=true) |
MetaEngine::MetaDataMap | getExifTagsDataList (const QStringList &exifKeysFilter=QStringList(), bool invertSelection=false, bool extractBinary=true) const |
static bool | canWriteExif (const QString &filePath) |
IPTC manipulation methods | |
MetaEngine::TagsMap | getIptcTagsList () const |
bool | hasIptc () const |
bool | clearIptc () const |
QByteArray | getIptc (bool addIrbHeader=false) const |
bool | setIptc (const QByteArray &data) const |
QString | getIptcTagString (const char *iptcTagName, bool escapeCR=true) const |
bool | setIptcTagString (const char *iptcTagName, const QString &value) const |
QStringList | getIptcTagsStringList (const char *iptcTagName, bool escapeCR=true) const |
bool | setIptcTagsStringList (const char *iptcTagName, int maxSize, const QStringList &oldValues, const QStringList &newValues) const |
QByteArray | getIptcTagData (const char *iptcTagName) const |
bool | setIptcTagData (const char *iptcTagName, const QByteArray &data) const |
bool | removeIptcTag (const char *iptcTagName) const |
QString | getIptcTagTitle (const char *iptcTagName) |
QString | getIptcTagDescription (const char *iptcTagName) |
MetaEngine::MetaDataMap | getIptcTagsDataList (const QStringList &iptcKeysFilter=QStringList(), bool invertSelection=false) const |
QStringList | getIptcKeywords () const |
bool | setIptcKeywords (const QStringList &oldKeywords, const QStringList &newKeywords) const |
QStringList | getIptcSubjects () const |
bool | setIptcSubjects (const QStringList &oldSubjects, const QStringList &newSubjects) const |
QStringList | getIptcSubCategories () const |
bool | setIptcSubCategories (const QStringList &oldSubCategories, const QStringList &newSubCategories) const |
static bool | canWriteIptc (const QString &filePath) |
XMP manipulation methods | |
MetaEngine::TagsMap | getXmpTagsList () const |
bool | hasXmp () const |
bool | clearXmp () const |
QByteArray | getXmp () const |
bool | setXmp (const QByteArray &data) const |
QString | getXmpTagString (const char *xmpTagName, bool escapeCR=true) const |
bool | setXmpTagString (const char *xmpTagName, const QString &value) const |
bool | setXmpTagString (const char *xmpTagName, const QString &value, XmpTagType type) const |
QString | getXmpTagTitle (const char *xmpTagName) |
QString | getXmpTagDescription (const char *xmpTagName) |
MetaEngine::MetaDataMap | getXmpTagsDataList (const QStringList &xmpKeysFilter=QStringList(), bool invertSelection=false) const |
MetaEngine::AltLangMap | getXmpTagStringListLangAlt (const char *xmpTagName, bool escapeCR=true) const |
bool | setXmpTagStringListLangAlt (const char *xmpTagName, const MetaEngine::AltLangMap &values) const |
QString | getXmpTagStringLangAlt (const char *xmpTagName, const QString &langAlt, bool escapeCR) const |
bool | setXmpTagStringLangAlt (const char *xmpTagName, const QString &value, const QString &langAlt) const |
QStringList | getXmpTagStringSeq (const char *xmpTagName, bool escapeCR=true) const |
bool | setXmpTagStringSeq (const char *xmpTagName, const QStringList &seq) const |
QStringList | getXmpTagStringBag (const char *xmpTagName, bool escapeCR) const |
bool | setXmpTagStringBag (const char *xmpTagName, const QStringList &bag) const |
QVariant | getXmpTagVariant (const char *xmpTagName, bool rationalAsListOfInts=true, bool stringEscapeCR=true) const |
bool | removeXmpTag (const char *xmpTagName, bool family=false) const |
static bool | canWriteXmp (const QString &filePath) |
static bool | registerXmpNameSpace (const QString &uri, const QString &prefix) |
static bool | unregisterXmpNameSpace (const QString &uri) |
GPS manipulation methods | |
bool | initializeGPSInfo () |
bool | getGPSInfo (double &altitude, double &latitude, double &longitude) const |
QString | getGPSLatitudeString () const |
QString | getGPSLongitudeString () const |
bool | getGPSLatitudeNumber (double *const latitude) const |
bool | getGPSLongitudeNumber (double *const longitude) const |
bool | getGPSAltitude (double *const altitude) const |
bool | setGPSInfo (const double altitude, const double latitude, const double longitude) |
bool | setGPSInfo (const double *const altitude, const double latitude, const double longitude) |
bool | setGPSInfo (const double altitude, const QString &latitude, const QString &longitude) |
bool | removeGPSInfo () |
static void | convertToRational (const double number, long int *const numerator, long int *const denominator, const int rounding) |
static void | convertToRationalSmallDenominator (const double number, long int *const numerator, long int *const denominator) |
static double | convertDegreeAngleToDouble (double degrees, double minutes, double seconds) |
static QString | convertToGPSCoordinateString (const long int numeratorDegrees, const long int denominatorDegrees, const long int numeratorMinutes, const long int denominatorMinutes, const long int numeratorSeconds, const long int denominatorSeconds, const char directionReference) |
static QString | convertToGPSCoordinateString (const bool isLatitude, double coordinate) |
static bool | convertFromGPSCoordinateString (const QString &coordinate, long int *const numeratorDegrees, long int *const denominatorDegrees, long int *const numeratorMinutes, long int *const denominatorMinutes, long int *const numeratorSeconds, long int *const denominatorSeconds, char *const directionReference) |
static bool | convertFromGPSCoordinateString (const QString &gpsString, double *const coordinate) |
static bool | convertToUserPresentableNumbers (const QString &coordinate, int *const degrees, int *const minutes, double *const seconds, char *const directionReference) |
static void | convertToUserPresentableNumbers (const bool isLatitude, double coordinate, int *const degrees, int *const minutes, double *const seconds, char *const directionReference) |
bool | setProgramId () const |
|
inherited |
A map used to store a list of Alternative Language values. The map key is the language code following RFC3066 notation (like "fr-FR" for French), and the map value the text.
typedef QMap<QString, QString> Digikam::DMetadata::CountryCodeMap |
|
inherited |
A map used to store Tags Key and Tags Value.
|
inherited |
A map used to store Tags Key and a list of Tags properties :
|
inherited |
Metadata Backend used to populate information.
Enumerator | |
---|---|
Exiv2Backend | Default backend used by MetaEngine. |
LibRawBackend | DMetadata only. |
LibHeifBackend | DMetadata only. |
ImageMagickBackend | DMetadata only. |
FFMpegBackend | DMetadata only. |
NoBackend | No backend used (aka file cannot be read) |
|
inherited |
|
inherited |
|
inherited |
The item metadata writing mode, between item file metadata and XMP sidecar file, depending on the context.
|
inherited |
Digikam::DMetadata::DMetadata | ( | ) |
References registerMetadataSettings().
|
explicit |
References load(), and registerMetadataSettings().
|
explicit |
References registerMetadataSettings().
Digikam::DMetadata::~DMetadata | ( | ) |
bool Digikam::DMetadata::addToXmpTagStringBag | ( | const char *const | xmpTagName, |
const QStringList & | entriesToAdd | ||
) | const |
Set an Xmp tag content using a list of strings defined by the 'entriesToAdd' parameter. The existing entries are preserved. The method will compare all new with all already existing entries to prevent duplicates in the image. Return true if the entries have been added to metadata.
References Digikam::MetaEngine::getXmpTagStringBag(), and Digikam::MetaEngine::setXmpTagStringBag().
Referenced by setXmpSubCategories(), and setXmpSubjects().
|
static |
Referenced by getMetadataField().
|
static |
Referenced by getMetadataField().
bool Digikam::DMetadata::applyChanges | ( | bool | setVersion = false | ) | const |
References Digikam::MetaEngine::applyChanges(), and Digikam::MetaEngine::getFilePath().
|
staticinherited |
Return a string of backend name used to parse metadata from file. See Backend enum for details.
References Digikam::MetaEngine::FFMpegBackend, Digikam::MetaEngine::ImageMagickBackend, Digikam::MetaEngine::LibHeifBackend, Digikam::MetaEngine::LibRawBackend, and Digikam::MetaEngine::NoBackend.
Referenced by load().
|
staticinherited |
Return 'true' if Comments can be written in file.
References AutoPtr, and Digikam::s_metaEngineMutex.
|
staticinherited |
Return 'true' if Exif can be written in file.
References AutoPtr, and Digikam::s_metaEngineMutex.
|
staticinherited |
Return 'true' if Iptc can be written in file.
References AutoPtr, and Digikam::s_metaEngineMutex.
|
staticinherited |
Return 'true' if Xmp can be written in file.
References AutoPtr, and Digikam::s_metaEngineMutex.
|
inherited |
Clear the Comments metadata container in memory.
References Digikam::MetaEngine::setComments().
|
inherited |
Clear the Exif metadata container in memory.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Clear the Iptc metadata container in memory.
References Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Clear the Xmp metadata container in memory.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
staticinherited |
Converts degrees values as a double representation. This code take a care about hemisphere position.
Referenced by Digikam::DRawDecoder::Private::fillIndentifyInfo().
|
staticinherited |
Converts a GPSCoordinate string as defined by XMP to three rationals and the direction reference. Returns true if the conversion was successful. If minutes is given in the fractional form, a denominator of 1000000 for the minutes will be used.
Referenced by Digikam::MetaEngine::getGPSLatitudeNumber(), Digikam::MetaEngine::getGPSLongitudeNumber(), Digikam::MetaEngine::setGPSInfo(), Digikam::ItemPosition::setLatitude(), and Digikam::ItemPosition::setLongitude().
|
staticinherited |
Convert a GPSCoordinate string as defined by XMP to a double floating point number in degrees where the sign determines the direction ref (North + / South - ; East + / West -). Returns true if the conversion was successful.
|
staticinherited |
Converts a GPS position stored as double floating point number in degrees to the form described as GPSCoordinate in the XMP specification.
|
staticinherited |
Converts a GPS position stored as rationals in Exif to the form described as GPSCoordinate in the XMP specification, either in the from "256,45,34N" or "256,45.566667N"
Precision: A second at sea level measures 30m for our purposes, a minute 1800m. (for more details, see https://en.wikipedia.org/wiki/Geographic_coordinate_system) This means with a decimal precision of 8 for minutes we get +/-0,018mm. (if I calculated correctly)
Referenced by Digikam::MetaEngine::getGPSLatitudeString(), Digikam::MetaEngine::getGPSLongitudeString(), Digikam::MetaEngine::setGPSInfo(), Digikam::ItemPosition::setLatitude(), and Digikam::ItemPosition::setLongitude().
|
staticinherited |
This method converts 'number' to a rational value, returned in the 'numerator' and 'denominator' parameters. Set the precision using 'rounding' parameter. Use this method if you want to retrieve a most exact rational for a number without further properties, without any requirements to the denominator.
Referenced by DigikamGenericMetadataEditPlugin::EXIFAdjust::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLens::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLight::applyMetadata(), Digikam::MetaEngine::convertToRationalSmallDenominator(), loadUsingRawEngine(), Digikam::MetaEngine::setExifTagVariant(), and Digikam::MetaEngine::setGPSInfo().
|
staticinherited |
This method convert a 'number' to a rational value, returned in 'numerator' and 'denominator' parameters. This method will be able to retrieve a rational number from a double - if you constructed your double with 1.0 / 4786.0, this method will retrieve 1 / 4786. If your number is not expected to be rational, use the method above which is just as exact with rounding = 4 and more exact with rounding > 4.
References Digikam::MetaEngine::convertToRational(), and value.
Referenced by Digikam::MetaEngine::createExifUserStringFromValue(), loadUsingRawEngine(), Digikam::MetaEngine::setExifTagVariant(), and Digikam::setExifXmpTagDataVariant().
|
staticinherited |
Converts a double floating point number to user presentable numbers, integer degrees and minutes and double floating point seconds, and a direction reference ('N' or 'S', 'E' or 'W'). The method needs to know for the direction reference if the latitude or the longitude is meant by the double parameter.
|
staticinherited |
Converts a GPSCoordinate string to user presentable numbers, integer degrees and minutes and double floating point seconds, and a direction reference ('N' or 'S', 'E' or 'W')
Referenced by Digikam::ItemPosition::latitudeUserPresentableNumbers(), Digikam::ItemPosition::longitudeUserPresentableNumbers(), and valueToString().
|
static |
Referenced by Digikam::RGWidget::RGWidget().
|
inherited |
Takes a QVariant value as it could have been retrieved by getExifTagVariant with the given exifTagName, and returns its value properly converted to a string (including translations from Exiv2). This is equivalent to calling getExifTagString directly. If escapeCR is true CR characters will be removed from the result.
References Digikam::MetaEngine::convertToRationalSmallDenominator(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
References Digikam::MetaEngine::Private::data.
Referenced by Digikam::MetaEngine::Private::copyPrivateData(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getExifEncoded(), Digikam::MetaEngine::getExifTagData(), getIccProfile(), Digikam::MetaEngine::getIptc(), Digikam::MetaEngine::getIptcTagData(), Digikam::MetaEngine::getXmp(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::ImportItemPropertiesSideBarImport::itemChanged(), Digikam::MetaEngine::Private::itemComments(), Digikam::ItemScanner::loadFromDisk(), loadUsingFFmpeg(), Digikam::MetaEngine::MetaEngine(), Digikam::MetaEngine::setComments(), Digikam::ItemPropertiesMetadataTab::setCurrentData(), Digikam::MetaEngine::setData(), Digikam::MetaEngine::setExif(), Digikam::MetaEngine::setExifTagData(), Digikam::MetaEngine::setExifThumbnail(), setIccProfile(), Digikam::MetaEngine::setIptc(), Digikam::MetaEngine::setIptcTagData(), Digikam::MetaEngine::setItemPreview(), Digikam::MetadataWidget::setMetadata(), Digikam::MetaEngine::setTiffThumbnail(), and Digikam::MetaEngine::setXmp().
|
staticinherited |
Language Alternative autodetection. Return a QString without language alternative header. Header is saved into 'lang'. If no language alternative is founf, value is returned as well and 'lang' is set to a null string.
References value.
Referenced by Digikam::MetaEngine::getXmpTagsDataList(), and Digikam::MetaEngine::getXmpTagStringLangAlt().
|
staticinherited |
Return a string version of Exiv2 release in format "major.minor.patch"
Referenced by Digikam::LibsInfoDlg::LibsInfoDlg().
|
inherited |
List changed tags compared to original file contents and export result to a temporary EXV file container. 'exvTmpFile' is the path to the temporary EXV container to create. 'removedTags' is populated with the list of tags removed.
References AutoPtr, Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::getExifTagData(), Digikam::MetaEngine::getFilePath(), Digikam::MetaEngine::getIptcTagData(), Digikam::MetaEngine::getXmpTagVariant(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
bool Digikam::DMetadata::getACDSeeTagsPath | ( | QStringList & | tagsPath | ) | const |
References Digikam::MetaEngine::getXmpTagString().
Referenced by getItemTagsPath().
QString Digikam::DMetadata::getCameraSerialNumber | ( | ) | const |
Return a string with Camera serial number.
References Digikam::MetaEngine::getExifTagString(), and Digikam::MetaEngine::getXmpTagString().
|
inherited |
Return a Qt byte array copy of Comments container get from current item. Comments are JFIF section of JPEG images. Look Exiv2 API for more information. Return a null Qt byte array if there is no Comments metadata in memory.
References Digikam::MetaEngine::Private::itemComments().
|
inherited |
Return a Qt string object of Comments from current item decoded using the 'detectEncodingAndDecode()' method. Return a null string if there is no Comments metadata available.
References Digikam::MetaEngine::Private::detectEncodingAndDecode(), and Digikam::MetaEngine::Private::itemComments().
Referenced by getItemComments(), and getMetadataField().
bool Digikam::DMetadata::getCopyrightInformation | ( | Template & | t | ) | const |
Fills only the copyright values in the template. Use getMetadataTemplate() usually. Returns true if valid fields were read.
References getCreatorContactInfo(), getMetadataFields(), Digikam::MetadataInfo::IptcCoreCopyrightNotice, Digikam::MetadataInfo::IptcCoreCreator, Digikam::MetadataInfo::IptcCoreCreatorJobTitle, Digikam::MetadataInfo::IptcCoreInstructions, Digikam::MetadataInfo::IptcCoreProvider, Digikam::MetadataInfo::IptcCoreRightsUsageTerms, Digikam::MetadataInfo::IptcCoreSource, Digikam::IptcCoreContactInfo::isNull(), Digikam::Template::setAuthors(), Digikam::Template::setAuthorsPosition(), Digikam::Template::setContactInfo(), Digikam::Template::setCopyright(), Digikam::Template::setCredit(), Digikam::Template::setInstructions(), Digikam::Template::setRightUsageTerms(), Digikam::Template::setSource(), and toAltLangMap().
Referenced by getMetadataTemplate(), and Digikam::ItemScanner::scanItemCopyright().
IptcCoreContactInfo Digikam::DMetadata::getCreatorContactInfo | ( | ) | const |
References Digikam::IptcCoreContactInfo::address, Digikam::IptcCoreContactInfo::city, Digikam::IptcCoreContactInfo::country, Digikam::IptcCoreContactInfo::email, getMetadataFields(), Digikam::MetadataInfo::IptcCoreContactInfoAddress, Digikam::MetadataInfo::IptcCoreContactInfoCity, Digikam::MetadataInfo::IptcCoreContactInfoCountry, Digikam::MetadataInfo::IptcCoreContactInfoEmail, Digikam::MetadataInfo::IptcCoreContactInfoPhone, Digikam::MetadataInfo::IptcCoreContactInfoPostalCode, Digikam::MetadataInfo::IptcCoreContactInfoProvinceState, Digikam::MetadataInfo::IptcCoreContactInfoWebUrl, Digikam::IptcCoreContactInfo::phone, Digikam::IptcCoreContactInfo::postalCode, Digikam::IptcCoreContactInfo::provinceState, and Digikam::IptcCoreContactInfo::webUrl.
Referenced by getCopyrightInformation(), and getMetadataField().
|
inherited |
Return the digitization time stamp of the item. First Exif information is checked, then IPTC. If no digitization time stamp is found, getItemDateTime() is called if fallbackToCreationTime is true, or a null QDateTime is returned if fallbackToCreationTime is false.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getItemDateTime(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by getMetadataField(), and Digikam::DNGWriter::Private::storeExif().
|
inherited |
Return a QString copy of Exif user comments. Return a null string if user comments cannot be found.
References Digikam::MetaEngine::Private::convertCommentValue(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by getItemComments(), getMetadataField(), and DigikamGenericMetadataEditPlugin::EXIFCaption::readMetadata().
|
inherited |
Returns the exif data encoded to a QByteArray in a form suitable for storage in a JPEG image. Note that this encoding is a lossy operation.
Set true 'addExifHeader' parameter to add an Exif header to Exif metadata. Returns a null Qt byte array if there is no Exif metadata in memory.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Get an Exif tag content like a bytes array. Return an empty bytes array if Exif tag cannot be found.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::exportChanges(), Digikam::MetaEngine::getGPSAltitude(), Digikam::MetaEngine::getGPSLatitudeNumber(), Digikam::MetaEngine::getGPSLongitudeNumber(), and getIccProfile().
|
inherited |
Return the Exif Tag description or a null string.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Get an Exif tag content like a long value. Return true if Exif tag be found.
Referenced by Digikam::MetaEngine::getItemColorWorkSpace(), getItemRating(), DigikamGenericMetadataEditPlugin::EXIFAdjust::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFLens::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFLight::readMetadata(), and Digikam::DNGWriter::Private::storeExif().
|
inherited |
Get an Exif tag content like a long value. Return true if Exif tag be found.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Get the 'component' index of an Exif tags content like a rational value. 'num' and 'den' are the numerator and the denominator of the rational value. Return true if Exif tag be found.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::EXIFAdjust::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFLens::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFLight::readMetadata(), and Digikam::DNGWriter::Private::storeExif().
|
inherited |
Return a map of Exif tags name/value found in metadata sorted by Exif keys given by 'exifKeysFilter'.
'exifKeysFilter' is a QStringList of Exif keys. For example, if you use the string list given below:
"Iop" "Thumbnail" "Image" "Photo"
List can be empty to not filter output.
... this method will return a map of all Exif tags which :
References Digikam::MetaEngine::Private::convertCommentValue(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by removeExifTags().
|
inherited |
Get an Exif tags content like a string. If 'escapeCR' parameter is true, the CR characters will be removed. If Exif tag cannot be found a null string is returned.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::LensFunIface::findFromMetadata(), getCameraSerialNumber(), getItemColorLabel(), Digikam::MetaEngine::getItemColorWorkSpace(), getItemTagsPath(), getItemUniqueId(), getLensDescription(), getPhotographInformation(), mSecTimeStamp(), DigikamGenericMetadataEditPlugin::EXIFCaption::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFDateTime::readMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::readMetadata(), and Digikam::DNGWriter::Private::storeExif().
|
inherited |
Return the Exif Tag title or a null string.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Get an Exif tags content as a QVariant. Returns a null QVariant if the Exif tag cannot be found. For string and integer values the matching QVariant types will be used, for date and time values QVariant::DateTime. Rationals will be returned as QVariant::List with two integer QVariants (numerator, denominator) if rationalAsListOfInts is true, as double if rationalAsListOfInts is false. An exif tag of numerical type may contain more than one value; set component to the desired index.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Return a QImage copy of Exif thumbnail image. Return a null image if thumbnail cannot be found. The 'fixOrientation' parameter will rotate automatically the thumbnail if Exif orientation tags information are attached with thumbnail.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::rotateExifQImage(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::JPEGUtils::JpegRotator::updateMetadata().
|
inherited |
Return the file path of current item.
References Digikam::MetaEngine::Private::filePath.
Referenced by applyChanges(), Digikam::MetaEngine::exportChanges(), getItemColorLabel(), getItemComments(), getItemPickLabel(), getItemRating(), getItemTitles(), Digikam::MetaEngine::load(), Digikam::MetaEngine::loadFromSidecarAndMerge(), and Digikam::MetaEngine::setImageDateTime().
|
inherited |
Get GPS altitude information, in meters, relative to sea level (positive sign above sea level)
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getExifTagData(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::getGPSInfo(), getMetadataField(), and Digikam::ItemPropertiesGPSTab::setMetadata().
|
inherited |
Get all GPS location information set in item. Return true if all information can be found.
References Digikam::MetaEngine::getGPSAltitude(), Digikam::MetaEngine::getGPSLatitudeNumber(), and Digikam::MetaEngine::getGPSLongitudeNumber().
Referenced by DigikamGenericGeolocationEditPlugin::KmlExport::generate(), DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb(), and getPhotographInformation().
|
inherited |
Get GPS location information set in the item, as a double floating point number as in degrees where the sign determines the direction ref (North + / South - ; East + / West -). Returns true if the information is available.
References Digikam::MetaEngine::convertFromGPSCoordinateString(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getExifTagData(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::getGPSInfo(), Digikam::MetaEngine::getGPSLatitudeString(), getMetadataField(), and Digikam::ItemPropertiesGPSTab::setMetadata().
|
inherited |
Get GPS location information set in the item, in the GPSCoordinate format as described in the XMP specification. Returns a null string in the information cannot be found.
References Digikam::MetaEngine::convertToGPSCoordinateString(), and Digikam::MetaEngine::getGPSLatitudeNumber().
Referenced by getMetadataField().
|
inherited |
References Digikam::MetaEngine::convertFromGPSCoordinateString(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getExifTagData(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::getGPSInfo(), Digikam::MetaEngine::getGPSLongitudeString(), getMetadataField(), and Digikam::ItemPropertiesGPSTab::setMetadata().
|
inherited |
References Digikam::MetaEngine::convertToGPSCoordinateString(), and Digikam::MetaEngine::getGPSLongitudeNumber().
Referenced by getMetadataField().
IccProfile Digikam::DMetadata::getIccProfile | ( | ) | const |
Reads an IccProfile that is described or embedded in the metadata. This method does not retrieve profiles embedded in the image but from the Exif metadata, e.g. embedded profiles in JPEG images. Returns a null profile if no profile is found.
References Digikam::IccProfile::adobeRGB(), Digikam::MetaEngine::data(), Digikam::MetaEngine::getExifTagData(), Digikam::MetaEngine::getItemColorWorkSpace(), Digikam::IccProfile::sRGB(), Digikam::MetaEngine::WORKSPACE_ADOBERGB, and Digikam::MetaEngine::WORKSPACE_SRGB.
|
inherited |
Return a Qt byte array copy of Iptc container get from current item. Set true 'addIrbHeader' parameter to add an Irb header to Iptc metadata. Return a null Qt byte array if there is no Iptc metadata in memory.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
IptcCoreLocationInfo Digikam::DMetadata::getIptcCoreLocation | ( | ) | const |
References getMetadataFields(), Digikam::MetadataInfo::IptcCoreCity, Digikam::MetadataInfo::IptcCoreCountry, Digikam::MetadataInfo::IptcCoreCountryCode, Digikam::MetadataInfo::IptcCoreLocation, Digikam::MetadataInfo::IptcCoreProvinceState, and Digikam::RedEye::location().
Referenced by getMetadataField(), and getMetadataTemplate().
QStringList Digikam::DMetadata::getIptcCoreSubjects | ( | ) | const |
References Digikam::MetaEngine::getIptcSubjects(), and getXmpSubjects().
Referenced by getMetadataField(), and getMetadataTemplate().
|
inherited |
Return a strings list of Iptc keywords from item. Return an empty list if no keyword are set.
References Digikam::MetaEngine::Private::extractIptcTagString(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by getItemTagsPath(), DigikamGenericMetadataEditPlugin::IPTCKeywords::readMetadata(), and setItemTagsPath().
|
inherited |
Return a strings list of Iptc sub-categories from item. Return an empty list if no sub-category are set.
References Digikam::MetaEngine::Private::extractIptcTagString(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::IPTCCategories::readMetadata().
|
inherited |
Return a strings list of Iptc subjects from item. Return an empty list if no subject are set.
References Digikam::MetaEngine::Private::extractIptcTagString(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::IPTCSubjects::applyMetadata(), getIptcCoreSubjects(), DigikamGenericMetadataEditPlugin::IPTCSubjects::readMetadata(), and setMetadataTemplate().
|
inherited |
Get an Iptc tag content as a bytes array. Return an empty bytes array if Iptc tag cannot be found.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::exportChanges(), Digikam::MetaEngine::getItemPreview(), and getItemRating().
|
inherited |
Return the Iptc Tag description or a null string.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Return a map of Iptc tags name/value found in metadata sorted by Iptc keys given by 'iptcKeysFilter'.
'iptcKeysFilter' is a QStringList of Iptc keys. For example, if you use the string list given below:
"Envelope" "Application2"
List can be empty to not filter output.
... this method will return a map of all Iptc tags which :
References Digikam::MetaEngine::Private::extractIptcTagString(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and value.
Referenced by removeIptcTags().
|
inherited |
Return a map of all standard Iptc tags supported by Exiv2.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Returns a strings list with of multiple Iptc tags from the item. Return an empty list if no tag is found. Get the values of all IPTC tags with the given tag name in a string list. (In Iptc, there can be multiple tags with the same name) If the 'escapeCR' parameter is true, the CR characters will be removed. If no tag can be found an empty list is returned.
References Digikam::MetaEngine::Private::extractIptcTagString(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::IPTCContent::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCCredits::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCOrigin::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCProperties::readMetadata(), and setMetadataTemplate().
|
inherited |
Get an Iptc tag content like a string. If 'escapeCR' parameter is true, the CR characters will be removed. If Iptc tag cannot be found a null string is returned.
References Digikam::MetaEngine::Private::extractIptcTagString(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by getItemComments(), getItemTitles(), DigikamGenericMetadataEditPlugin::IPTCCategories::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCContent::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCCredits::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCEnvelope::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCOrigin::readMetadata(), DigikamGenericMetadataEditPlugin::IPTCProperties::readMetadata(), and DigikamGenericMetadataEditPlugin::IPTCStatus::readMetadata().
|
inherited |
Return the Iptc Tag title or a null string.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
int Digikam::DMetadata::getItemColorLabel | ( | const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() | ) | const |
References Digikam::BlueLabel, Digikam::NamespaceEntry::DM_COLORLABEL_CONTAINER(), Digikam::NamespaceEntry::EXIF, Digikam::MetaEngine::getExifTagString(), Digikam::MetaEngine::getFilePath(), Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::MetaEngine::getXmpTagString(), Digikam::GreenLabel, Digikam::MetaEngine::hasExif(), Digikam::MetaEngine::hasXmp(), Digikam::NamespaceEntry::IPTC, Digikam::NamespaceEntry::isDisabled, Digikam::MetaEngine::isEmpty(), Digikam::MagentaLabel, Digikam::NamespaceEntry::namespaceName, Digikam::NoColorLabel, Digikam::RedLabel, Digikam::NamespaceEntry::subspace, value, Digikam::WhiteLabel, Digikam::NamespaceEntry::XMP, and Digikam::YellowLabel.
Referenced by Digikam::ItemScanner::scanTags().
|
inherited |
Return the item color-space set in Exif metadata. The makernotes of item are also parsed to get this information. See ImageColorWorkSpace values for details.
References Digikam::MetaEngine::getExifTagLong(), Digikam::MetaEngine::getExifTagString(), Digikam::MetaEngine::getXmpTagVariant(), Digikam::MetaEngine::WORKSPACE_ADOBERGB, Digikam::MetaEngine::WORKSPACE_SRGB, Digikam::MetaEngine::WORKSPACE_UNCALIBRATED, and Digikam::MetaEngine::WORKSPACE_UNSPECIFIED.
Referenced by getIccProfile().
CaptionsMap Digikam::DMetadata::getItemComments | ( | const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() | ) | const |
References Digikam::NamespaceEntry::COMMENT_ALTLANG, Digikam::NamespaceEntry::COMMENT_ATLLANGLIST, Digikam::NamespaceEntry::COMMENT_JPEG, Digikam::NamespaceEntry::COMMENT_XMP, Digikam::MetadataInfo::DescriptionWriter, Digikam::NamespaceEntry::DM_COMMENT_CONTAINER(), Digikam::NamespaceEntry::EXIF, Digikam::MetaEngine::getCommentsDecoded(), Digikam::MetaEngine::getExifComment(), Digikam::MetaEngine::getFilePath(), Digikam::MetaEngine::getIptcTagString(), getMetadataField(), Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::getXmpTagStringLangAlt(), Digikam::MetaEngine::getXmpTagStringListLangAlt(), Digikam::MetaEngine::hasExif(), Digikam::MetaEngine::hasIptc(), Digikam::MetaEngine::hasXmp(), Digikam::NamespaceEntry::IPTC, Digikam::NamespaceEntry::isDisabled, Digikam::MetaEngine::isEmpty(), Digikam::NamespaceEntry::namespaceName, Digikam::CaptionsMap::setData(), Digikam::NamespaceEntry::specialOpts, Digikam::NamespaceEntry::subspace, Digikam::MetaEngine::supportXmp(), and Digikam::NamespaceEntry::XMP.
Referenced by getMetadataField(), and Digikam::ItemScanner::scanItemComments().
|
inherited |
Return the time stamp of item. Exif information are check in first, IPTC in second if item don't have Exif information. If no time stamp is found, a null date is returned.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::DKCamera::fillItemInfoFromMetadata(), DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb(), Digikam::MetaEngine::getDigitizationDateTime(), getMetadataField(), getPhotographInformation(), Digikam::ItemPropertiesGPSTab::setMetadata(), and Digikam::DNGWriter::Private::storeExif().
|
inherited |
Return the size of item in pixels using Exif tags. Return a null dimension if size cannot be found.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::DKCamera::fillItemInfoFromMetadata(), and Digikam::ImportItemPropertiesTab::setCurrentItem().
bool Digikam::DMetadata::getItemFacesMap | ( | QMultiMap< QString, QVariant > & | facesPath | ) | const |
Get Images Face Map based on tags stored in Picassa/Metadatagroup format.
Read face tags only if Exiv2 can write them, otherwise garbage tags will be generated on image transformation
References Digikam::MetaEngine::getXmpTagString().
Referenced by getMetadataField(), and Digikam::ItemScanner::scanFaces().
QString Digikam::DMetadata::getItemHistory | ( | ) | const |
References Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::hasXmp(), and value.
Referenced by Digikam::ItemScanner::scanImageHistory().
|
inherited |
Return the item orientation set in Exif metadata. The makernotes of item are also parsed to get this information. See ImageOrientation values for details.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::ORIENTATION_NORMAL, Digikam::MetaEngine::ORIENTATION_ROT_270, Digikam::MetaEngine::ORIENTATION_ROT_90, Digikam::MetaEngine::ORIENTATION_UNSPECIFIED, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::LoadSaveThread::exifOrientation(), getMetadataField(), and Digikam::JPEGUtils::JpegRotator::JpegRotator().
int Digikam::DMetadata::getItemPickLabel | ( | ) | const |
|
inherited |
Return a QImage copy of Iptc preview image. Return a null item if preview cannot be found.
References Digikam::MetaEngine::getIptcTagData(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::JPEGUtils::JpegRotator::updateMetadata().
int Digikam::DMetadata::getItemRating | ( | const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() | ) | const |
References Digikam::NamespaceEntry::convertRatio, Digikam::NamespaceEntry::DM_RATING_CONTAINER(), Digikam::NamespaceEntry::EXIF, Digikam::MetaEngine::getExifTagLong(), Digikam::MetaEngine::getFilePath(), Digikam::MetaEngine::getIptcTagData(), Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::hasExif(), Digikam::MetaEngine::hasIptc(), Digikam::MetaEngine::hasXmp(), Digikam::NamespaceEntry::IPTC, Digikam::NamespaceEntry::isDisabled, Digikam::MetaEngine::isEmpty(), Digikam::NamespaceEntry::namespaceName, Digikam::NamespaceEntry::subspace, value, and Digikam::NamespaceEntry::XMP.
Referenced by getMetadataField(), and Digikam::ItemPropertiesGPSTab::setMetadata().
bool Digikam::DMetadata::getItemTagsPath | ( | QStringList & | tagsPath, |
const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() |
||
) | const |
References Digikam::NamespaceEntry::alternativeName, Digikam::NamespaceEntry::COMMENT_ALTLANG, Digikam::NamespaceEntry::COMMENT_ATLLANGLIST, Digikam::NamespaceEntry::COMMENT_XMP, Digikam::NamespaceEntry::DM_TAG_CONTAINER(), Digikam::NamespaceEntry::EXIF, getACDSeeTagsPath(), Digikam::MetaEngine::getExifTagString(), Digikam::MetaEngine::getIptcKeywords(), Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::MetaEngine::getXmpTagStringBag(), Digikam::MetaEngine::getXmpTagStringSeq(), Digikam::NamespaceEntry::IPTC, Digikam::NamespaceEntry::isDisabled, Digikam::NamespaceEntry::namespaceName, Digikam::NamespaceEntry::NO_OPTS, Digikam::DMetadataSettingsContainer::readingAllTags(), Digikam::NamespaceEntry::secondNameOpts, Digikam::NamespaceEntry::separator, Digikam::NamespaceEntry::specialOpts, Digikam::NamespaceEntry::subspace, Digikam::NamespaceEntry::TAG_ACDSEE, Digikam::NamespaceEntry::TAG_XMPBAG, Digikam::NamespaceEntry::TAG_XMPSEQ, and Digikam::NamespaceEntry::XMP.
Referenced by getMetadataField().
CaptionsMap Digikam::DMetadata::getItemTitles | ( | const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() | ) | const |
References Digikam::NamespaceEntry::COMMENT_ATLLANGLIST, Digikam::NamespaceEntry::COMMENT_XMP, Digikam::MetadataInfo::DescriptionWriter, Digikam::NamespaceEntry::DM_TITLE_CONTAINER(), Digikam::MetaEngine::getFilePath(), Digikam::MetaEngine::getIptcTagString(), getMetadataField(), Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::getXmpTagStringListLangAlt(), Digikam::MetaEngine::hasIptc(), Digikam::MetaEngine::hasXmp(), Digikam::NamespaceEntry::IPTC, Digikam::NamespaceEntry::isDisabled, Digikam::MetaEngine::isEmpty(), Digikam::NamespaceEntry::namespaceName, Digikam::CaptionsMap::setData(), Digikam::NamespaceEntry::specialOpts, Digikam::NamespaceEntry::subspace, and Digikam::NamespaceEntry::XMP.
Referenced by getMetadataField().
QString Digikam::DMetadata::getItemUniqueId | ( | ) | const |
QString Digikam::DMetadata::getLensDescription | ( | ) | const |
Return a string with Lens mounted on the front of camera. There no standard Exif tag for Lens information. Camera makernotes and Xmp tags are parsed. Take a care : lens information are not standardized and string content is not homogeneous between camera model/maker.
< Canon Cameras Makernote.
< Canon Cameras Makernote.
< Alternative Canon Cameras Makernote.
< Nikon Cameras Makernote.
< Nikon Cameras Makernote.
< Nikon Cameras Makernote.
< Minolta Cameras Makernote.
< Sony Cameras Makernote.
< Sony Cameras Makernote.
< Sony Cameras Makernote.
< Pentax Cameras Makernote.
< Pentax Cameras Makernote.
< Panasonic Cameras Makernote.
< Panasonic Cameras Makernote.
< Sigma Cameras Makernote.
< Samsung Cameras Makernote.
< Non-standard Exif tag set by Camera Raw.
< Olympus Cameras Makernote.
< Olympus Cameras Makernote.
References Digikam::MetaEngine::getExifTagString(), and Digikam::MetaEngine::getXmpTagString().
Referenced by getMetadataField(), and getPhotographInformation().
|
inherited |
Return a map of all non-standard Exif tags (makernotes) supported by Exiv2.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
QVariant Digikam::DMetadata::getMetadataField | ( | MetadataInfo::Field | field | ) | const |
Returns the requested metadata field as a QVariant. See metadatainfo.h for a specification of the format of the QVariant.
References Digikam::MetadataInfo::Altitude, Digikam::MetadataInfo::Aperture, apexApertureToFNumber(), apexShutterSpeedToExposureTime(), Digikam::MetadataInfo::AspectRatio, Digikam::MetadataInfo::AudioBitRate, Digikam::MetadataInfo::AudioChannelType, Digikam::MetadataInfo::AudioCodec, Digikam::MetadataInfo::Comment, Digikam::MetadataInfo::CommentExif, Digikam::MetadataInfo::CommentIptc, Digikam::MetadataInfo::CommentJfif, Digikam::MetadataInfo::CreationDate, Digikam::MetadataInfo::Description, Digikam::MetadataInfo::DescriptionWriter, Digikam::MetadataInfo::DigitizationDate, Digikam::MetadataInfo::Duration, Digikam::MetadataInfo::ExposureMode, Digikam::MetadataInfo::ExposureProgram, Digikam::MetadataInfo::ExposureTime, Digikam::MetadataInfo::Faces, Digikam::MetadataInfo::FlashMode, Digikam::MetadataInfo::FocalLength, Digikam::MetadataInfo::FocalLengthIn35mm, Digikam::MetadataInfo::FrameRate, Digikam::MetaEngine::getCommentsDecoded(), getCreatorContactInfo(), Digikam::MetaEngine::getDigitizationDateTime(), Digikam::MetaEngine::getExifComment(), Digikam::MetaEngine::getGPSAltitude(), Digikam::MetaEngine::getGPSLatitudeNumber(), Digikam::MetaEngine::getGPSLatitudeString(), Digikam::MetaEngine::getGPSLongitudeNumber(), Digikam::MetaEngine::getGPSLongitudeString(), getIptcCoreLocation(), getIptcCoreSubjects(), getItemComments(), Digikam::MetaEngine::getItemDateTime(), getItemFacesMap(), Digikam::MetaEngine::getItemOrientation(), getItemRating(), getItemTagsPath(), getItemTitles(), getLensDescription(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::getXmpTagVariant(), Digikam::MetadataInfo::Headline, Digikam::MetadataInfo::IptcCoreCity, Digikam::MetadataInfo::IptcCoreContactInfo, Digikam::MetadataInfo::IptcCoreContactInfoAddress, Digikam::MetadataInfo::IptcCoreContactInfoCity, Digikam::MetadataInfo::IptcCoreContactInfoCountry, Digikam::MetadataInfo::IptcCoreContactInfoEmail, Digikam::MetadataInfo::IptcCoreContactInfoPhone, Digikam::MetadataInfo::IptcCoreContactInfoPostalCode, Digikam::MetadataInfo::IptcCoreContactInfoProvinceState, Digikam::MetadataInfo::IptcCoreContactInfoWebUrl, Digikam::MetadataInfo::IptcCoreCopyrightNotice, Digikam::MetadataInfo::IptcCoreCountry, Digikam::MetadataInfo::IptcCoreCountryCode, Digikam::MetadataInfo::IptcCoreCreator, Digikam::MetadataInfo::IptcCoreCreatorJobTitle, Digikam::MetadataInfo::IptcCoreInstructions, Digikam::MetadataInfo::IptcCoreIntellectualGenre, Digikam::MetadataInfo::IptcCoreJobID, Digikam::MetadataInfo::IptcCoreLocation, Digikam::MetadataInfo::IptcCoreLocationInfo, Digikam::MetadataInfo::IptcCoreProvider, Digikam::MetadataInfo::IptcCoreProvinceState, Digikam::MetadataInfo::IptcCoreRightsUsageTerms, Digikam::MetadataInfo::IptcCoreScene, Digikam::MetadataInfo::IptcCoreSource, Digikam::MetadataInfo::IptcCoreSubjectCode, Digikam::IptcCoreContactInfo::isNull(), Digikam::MetadataInfo::Keywords, Digikam::MetadataInfo::Latitude, Digikam::MetadataInfo::LatitudeNumber, Digikam::MetadataInfo::Lens, Digikam::RedEye::location(), Digikam::MetadataInfo::Longitude, Digikam::MetadataInfo::LongitudeNumber, Digikam::MetadataInfo::Make, Digikam::MetadataInfo::MeteringMode, Digikam::MetadataInfo::Model, Digikam::MetadataInfo::Orientation, Digikam::MetadataInfo::PositionAccuracy, Digikam::MetadataInfo::PositionDescription, Digikam::MetadataInfo::PositionOrientation, Digikam::MetadataInfo::PositionRoll, Digikam::MetadataInfo::PositionTilt, Digikam::MetadataInfo::Rating, Digikam::MetadataInfo::Sensitivity, Digikam::MetadataInfo::SubjectDistance, Digikam::MetadataInfo::SubjectDistanceCategory, Digikam::MetadataInfo::Title, Digikam::MetadataInfo::VideoBitDepth, Digikam::MetadataInfo::VideoCodec, VIDEOCOLORMODEL_BT601, VIDEOCOLORMODEL_BT709, VIDEOCOLORMODEL_OTHER, VIDEOCOLORMODEL_SRGB, Digikam::MetadataInfo::VideoColorSpace, Digikam::MetadataInfo::VideoHeight, Digikam::MetadataInfo::VideoWidth, Digikam::MetadataInfo::WhiteBalance, and Digikam::MetadataInfo::WhiteBalanceColorTemperature.
Referenced by getItemComments(), getItemTitles(), getMetadataFields(), getVideoInformation(), Digikam::ItemScanner::scanTags(), and Digikam::ItemScanner::scanVideoInformation().
QVariantList Digikam::DMetadata::getMetadataFields | ( | const MetadataFields & | fields | ) | const |
References getMetadataField().
Referenced by getCopyrightInformation(), getCreatorContactInfo(), getIptcCoreLocation(), Digikam::ItemScanner::scanImageMetadata(), Digikam::ItemScanner::scanIPTCCore(), Digikam::ItemScanner::scanItemComments(), Digikam::ItemScanner::scanItemInformation(), Digikam::ItemScanner::scanItemPosition(), Digikam::ItemScanner::scanVideoInformation(), and Digikam::ItemScanner::scanVideoMetadata().
Template Digikam::DMetadata::getMetadataTemplate | ( | ) | const |
|
inherited |
Returns the mime type of this item. The information is read from the file; see the docs for getPixelSize() to know when it is available.
References Digikam::MetaEngine::Private::mimeType.
int Digikam::DMetadata::getMSecsInfo | ( | ) | const |
Returns millisecond time-stamp from Exif tags or 0 if not found.
References mSecTimeStamp().
Referenced by Digikam::DKCamera::fillItemInfoFromMetadata().
PhotoInfoContainer Digikam::DMetadata::getPhotographInformation | ( | ) | const |
References Digikam::PhotoInfoContainer::aperture, Digikam::PhotoInfoContainer::dateTime, Digikam::PhotoInfoContainer::exposureMode, Digikam::PhotoInfoContainer::exposureProgram, Digikam::PhotoInfoContainer::exposureTime, Digikam::PhotoInfoContainer::flash, Digikam::PhotoInfoContainer::focalLength, Digikam::PhotoInfoContainer::focalLength35mm, Digikam::MetaEngine::getExifTagString(), Digikam::MetaEngine::getGPSInfo(), Digikam::MetaEngine::getItemDateTime(), getLensDescription(), Digikam::MetaEngine::getXmpTagString(), Digikam::PhotoInfoContainer::hasCoordinates, Digikam::MetaEngine::hasExif(), Digikam::MetaEngine::hasXmp(), Digikam::PhotoInfoContainer::lens, Digikam::PhotoInfoContainer::make, Digikam::PhotoInfoContainer::model, Digikam::PhotoInfoContainer::sensitivity, and Digikam::PhotoInfoContainer::whiteBalance.
Referenced by Digikam::DKCamera::fillItemInfoFromMetadata(), Digikam::LensFunIface::findFromMetadata(), and Digikam::ImportItemPropertiesTab::setCurrentItem().
|
inherited |
Returns the pixel size of the current item. This information is read from the file, not from the metadata. The returned QSize is valid if the MetaEngine object was constructed by reading a file or item data; the information is not available when the object was created from MetaEngineData. Note that in the Exif or XMP metadata, there may be fields describing the item size. These fields are not accessed by this method. When replacing the metadata with setData(), the metadata may change; this information always keeps referring to the file it was initially read from.
References Digikam::MetaEngine::Private::pixelSize.
Referenced by DigikamGenericPanoramaPlugin::CreatePreviewTask::run(), DigikamGenericPanoramaPlugin::CreatePtoTask::run(), and Digikam::ImportItemPropertiesTab::setCurrentItem().
|
inherited |
Return a map of all standard Exif tags supported by Exiv2.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
VideoInfoContainer Digikam::DMetadata::getVideoInformation | ( | ) | const |
Returns video metadata from Xmp tags.
References Digikam::MetadataInfo::AspectRatio, Digikam::VideoInfoContainer::aspectRatio, Digikam::VideoInfoContainer::audioBitRate, Digikam::VideoInfoContainer::audioChannelType, Digikam::VideoInfoContainer::audioCodec, Digikam::VideoInfoContainer::duration, Digikam::VideoInfoContainer::frameRate, getMetadataField(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::hasXmp(), and Digikam::VideoInfoContainer::videoCodec.
Referenced by Digikam::ImportItemPropertiesTab::setCurrentItem().
|
inherited |
Return a Qt byte array copy of XMp container get from current item. Return a null Qt byte array if there is no Xmp metadata in memory.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
QStringList Digikam::DMetadata::getXmpKeywords | ( | ) | const |
Return a strings list of Xmp keywords from image. Return an empty list if no keyword are set.
References Digikam::MetaEngine::getXmpTagStringBag().
Referenced by DigikamGenericMetadataEditPlugin::XMPKeywords::readMetadata().
QStringList Digikam::DMetadata::getXmpSubCategories | ( | ) | const |
Return a strings list of Xmp sub-categories from image. Return an empty list if no sub-category are set.
References Digikam::MetaEngine::getXmpTagStringBag().
Referenced by DigikamGenericMetadataEditPlugin::XMPCategories::readMetadata().
QStringList Digikam::DMetadata::getXmpSubjects | ( | ) | const |
Return a strings list of Xmp subjects from image. Return an empty list if no subject are set.
References Digikam::MetaEngine::getXmpTagStringBag().
Referenced by getIptcCoreSubjects(), and DigikamGenericMetadataEditPlugin::XMPSubjects::readMetadata().
|
inherited |
Return the Xmp Tag description or a null string.
References Digikam::MetaEngine::Private::printExiv2ExceptionError().
|
inherited |
Return a map of Xmp tags name/value found in metadata sorted by Xmp keys given by 'xmpKeysFilter'.
'xmpKeysFilter' is a QStringList of Xmp keys. For example, if you use the string list given below:
"dc" // Dubling Core schema. "xmp" // Standard Xmp schema.
List can be empty to not filter output.
... this method will return a map of all Xmp tags which :
References Digikam::MetaEngine::detectLanguageAlt(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and value.
Referenced by removeXmpTags().
|
inherited |
Return a map of all standard Xmp tags supported by Exiv2.
References Digikam::MetaEngine::Private::getXMPTagsListFromPrefix().
|
inherited |
Get a Xmp tag content like a string. If 'escapeCR' parameter is true, the CR characters will be removed. If Xmp tag cannot be found a null string is returned.
References Digikam::MetaEngine::Private::printExiv2ExceptionError().
Referenced by Digikam::LensFunIface::findFromMetadata(), getACDSeeTagsPath(), getCameraSerialNumber(), Digikam::MetaEngine::getGPSAltitude(), Digikam::MetaEngine::getGPSLatitudeNumber(), Digikam::MetaEngine::getGPSLongitudeNumber(), getItemColorLabel(), getItemComments(), Digikam::MetaEngine::getItemDimensions(), getItemFacesMap(), getItemHistory(), Digikam::MetaEngine::getItemOrientation(), getItemPickLabel(), Digikam::MetaEngine::getItemPreview(), getItemRating(), getItemTitles(), getItemUniqueId(), getLensDescription(), getMetadataField(), getPhotographInformation(), getVideoInformation(), hasItemHistoryTag(), loadUsingFFmpeg(), DigikamGenericMetadataEditPlugin::XMPCategories::readMetadata(), DigikamGenericMetadataEditPlugin::XMPContent::readMetadata(), DigikamGenericMetadataEditPlugin::XMPCredits::readMetadata(), DigikamGenericMetadataEditPlugin::XMPOrigin::readMetadata(), DigikamGenericMetadataEditPlugin::XMPProperties::readMetadata(), DigikamGenericMetadataEditPlugin::XMPStatus::readMetadata(), Digikam::s_setXmpTagStringFromEntry(), and setItemFacesMap().
|
inherited |
Get a Xmp tag content like a bag of strings. If 'escapeCR' parameter is true, the CR characters will be removed from strings. If Xmp tag cannot be found a null string list is returned.
References Digikam::MetaEngine::Private::printExiv2ExceptionError().
Referenced by addToXmpTagStringBag(), Digikam::MetaEngine::addToXmpTagStringBag(), getItemTagsPath(), getXmpKeywords(), Digikam::MetaEngine::getXmpKeywords(), getXmpSubCategories(), Digikam::MetaEngine::getXmpSubCategories(), getXmpSubjects(), Digikam::MetaEngine::getXmpSubjects(), DigikamGenericMetadataEditPlugin::XMPProperties::readMetadata(), removeFromXmpTagStringBag(), and Digikam::MetaEngine::removeFromXmpTagStringBag().
|
inherited |
Get a Xmp tag content like a string set with an alternative language header 'langAlt' (like "fr-FR" for French - RFC3066 notation) If 'escapeCR' parameter is true, the CR characters will be removed. If Xmp tag cannot be found a null string is returned.
References Digikam::MetaEngine::detectLanguageAlt(), and Digikam::MetaEngine::Private::printExiv2ExceptionError().
Referenced by getItemComments().
|
inherited |
Get all redondant Alternative Language Xmp tags content like a map. See AltLangMap class description for details. If 'escapeCR' parameter is true, the CR characters will be removed from strings. If Xmp tag cannot be found a null string list is returned.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and value.
Referenced by getItemComments(), getItemTitles(), DigikamGenericMetadataEditPlugin::XMPContent::readMetadata(), DigikamGenericMetadataEditPlugin::XMPStatus::readMetadata(), and Digikam::MetaEngine::setXmpTagStringLangAlt().
|
inherited |
Get a Xmp tag content like a sequence of strings. If 'escapeCR' parameter is true, the CR characters will be removed from strings. If Xmp tag cannot be found a null string list is returned.
References Digikam::MetaEngine::Private::printExiv2ExceptionError().
Referenced by getItemTagsPath(), DigikamGenericMetadataEditPlugin::XMPCredits::readMetadata(), and DigikamGenericMetadataEditPlugin::XMPStatus::readMetadata().
|
inherited |
Return the Xmp Tag title or a null string.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Get an Xmp tag content as a QVariant. Returns a null QVariant if the Xmp tag cannot be found. For string and integer values the matching QVariant types will be used, for date and time values QVariant::DateTime. Rationals will be returned as QVariant::List with two integer QVariants (numerator, denominator) if rationalAsListOfInts is true, as double if rationalAsListOfInts is false. Arrays (ordered, unordered, alternative) are returned as type StringList. LangAlt values will have type Map (QMap<QString, QVariant>) with the language code as key and the contents as value, of type String.
References Digikam::MetaEngine::Private::printExiv2ExceptionError(), and value.
Referenced by Digikam::MetaEngine::exportChanges(), Digikam::MetaEngine::getItemColorWorkSpace(), and getMetadataField().
|
inherited |
Return 'true' if metadata container in memory as Comments.
References Digikam::MetaEngine::Private::itemComments().
Referenced by Digikam::MetaEngine::isEmpty().
|
inherited |
Return 'true' if metadata container in memory as Exif.
References Digikam::MetaEngine::Private::exifMetadata().
Referenced by getItemColorLabel(), getItemComments(), getItemRating(), getPhotographInformation(), and Digikam::MetaEngine::isEmpty().
|
inherited |
Return 'true' if metadata container in memory as Iptc.
References Digikam::MetaEngine::Private::iptcMetadata().
Referenced by getItemComments(), getItemRating(), getItemTitles(), and Digikam::MetaEngine::isEmpty().
bool Digikam::DMetadata::hasItemHistoryTag | ( | ) | const |
References Digikam::MetaEngine::getXmpTagString(), and Digikam::MetaEngine::hasXmp().
|
staticinherited |
Performs a QFileInfo based check if the given local file has a sidecar.
References Digikam::MetaEngine::sidecarFilePathForFile().
Referenced by Digikam::JPEGUtils::JpegRotator::exifTransform(), Digikam::ItemScanner::loadFromDisk(), Digikam::Task::run(), Digikam::CollectionScanner::scanFileNormal(), and Digikam::ItemPropertiesSideBar::setImagePropertiesInformation().
|
inherited |
Return 'true' if metadata container in memory as Xmp.
Referenced by getItemColorLabel(), getItemComments(), getItemHistory(), getItemPickLabel(), getItemRating(), getItemTitles(), getItemUniqueId(), getPhotographInformation(), getVideoInformation(), hasItemHistoryTag(), and Digikam::MetaEngine::isEmpty().
|
staticinherited |
Return true if Exiv2 library initialization is done properly. This method must be called before using libMetaEngine with multithreading. It initialize several non re-entrancy code from Adobe XMP SDK, and register a function to cleanup automatically all XMP SDK memory allocation. See Bug #166424 for details.
References Digikam::MetaEngine::registerXmpNameSpace(), and Digikam::s_metaEngineSupportBmff.
|
inherited |
Make sure all static required GPS EXIF and XMP tags exist
References AutoPtr, Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, Digikam::MetaEngine::setXmpTagString(), and value.
Referenced by Digikam::MetaEngine::setGPSInfo().
|
inherited |
Return 'true' if metadata container in memory as no Comments, Exif, Iptc, and Xmp.
References Digikam::MetaEngine::hasComments(), Digikam::MetaEngine::hasExif(), Digikam::MetaEngine::hasIptc(), and Digikam::MetaEngine::hasXmp().
Referenced by Digikam::LensFunIface::findFromMetadata(), getItemColorLabel(), getItemComments(), getItemPickLabel(), getItemRating(), getItemTitles(), Digikam::s_setXmpTagStringFromEntry(), and Digikam::MetaEngine::setImageDateTime().
bool Digikam::DMetadata::load | ( | const QString & | filePath, |
Backend * | backend = nullptr |
||
) |
Re-implemented from MetaEngine to use libraw identify, libheif, ffmpeg probe, and ImageMAgick identify methods if Exiv2 failed. If backend is non null, return the backend used to populate metadata (Exiv2). See MetaEngine::Backend enum for details.
References Digikam::MetaEngine::backendName(), Digikam::MetaEngine::Exiv2Backend, Digikam::MetaEngine::FFMpegBackend, Digikam::MetaEngine::ImageMagickBackend, Digikam::MetaEngine::LibHeifBackend, Digikam::MetaEngine::LibRawBackend, Digikam::MetaEngine::load(), Digikam::MetaEngine::loadFromSidecarAndMerge(), loadUsingFFmpeg(), loadUsingRawEngine(), Digikam::MetaEngine::NoBackend, and suffix.
Referenced by DMetadata(), DigikamGenericGeolocationEditPlugin::KmlExport::generate(), DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb(), Digikam::UMSCamera::getMetadata(), Digikam::JPEGUtils::JpegRotator::JpegRotator(), Digikam::ItemScanner::loadFromDisk(), and Digikam::DNGWriter::Private::storeExif().
|
inherited |
Load all metadata (Exif, Iptc, Xmp, and JFIF Comments) from a byte array. Return true if metadata have been loaded successfully from item data.
References AutoPtr, Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::itemComments(), Digikam::MetaEngine::Private::mimeType, Digikam::MetaEngine::Private::pixelSize, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Load metadata from a sidecar file and merge. Return true if metadata have been loaded successfully from file.
References AutoPtr, Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::getFilePath(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, Digikam::MetaEngine::sidecarFilePathForFile(), and Digikam::MetaEngine::Private::useXMPSidecar4Reading.
Referenced by load(), and Digikam::MetaEngine::load().
bool Digikam::DMetadata::loadUsingFFmpeg | ( | const QString & | filePath | ) |
Try to extract metadata using FFMpeg probe method (libav).
References Digikam::MetaEngine::data(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::ORIENTATION_NORMAL, Digikam::MetaEngine::ORIENTATION_ROT_180, Digikam::MetaEngine::ORIENTATION_ROT_270, Digikam::MetaEngine::ORIENTATION_ROT_90, Digikam::MetaEngine::ORIENTATION_UNSPECIFIED, Digikam::s_keywordsSeparation(), Digikam::s_secondsSinceJanuary1904(), Digikam::s_setXmpTagStringFromEntry(), Digikam::CaptionsMap::setData(), Digikam::MetaEngine::setGPSInfo(), Digikam::MetaEngine::setImageDateTime(), Digikam::MetaEngine::setIptcKeywords(), Digikam::MetaEngine::setIptcSubCategories(), setItemComments(), Digikam::MetaEngine::setItemDimensions(), Digikam::MetaEngine::setItemOrientation(), setItemRating(), setXmpKeywords(), setXmpSubCategories(), Digikam::MetaEngine::setXmpTagString(), VIDEOCOLORMODEL_BT601, VIDEOCOLORMODEL_BT709, VIDEOCOLORMODEL_OTHER, VIDEOCOLORMODEL_SRGB, VIDEOCOLORMODEL_UNKNOWN, and videoColorModelToString().
Referenced by load().
bool Digikam::DMetadata::loadUsingRawEngine | ( | const QString & | filePath | ) |
Try to extract metadata using Raw Engine identify method (libraw).
References Digikam::MetaEngine::convertToRational(), Digikam::MetaEngine::convertToRationalSmallDenominator(), Digikam::DRawInfo::ORIENTATION_180, Digikam::DRawInfo::ORIENTATION_90CCW, Digikam::DRawInfo::ORIENTATION_90CW, Digikam::DRawInfo::ORIENTATION_Mirror90CCW, Digikam::DRawInfo::ORIENTATION_NONE, Digikam::MetaEngine::ORIENTATION_NORMAL, Digikam::MetaEngine::ORIENTATION_ROT_180, Digikam::MetaEngine::ORIENTATION_ROT_270, Digikam::MetaEngine::ORIENTATION_ROT_90, Digikam::MetaEngine::ORIENTATION_ROT_90_HFLIP, Digikam::DRawDecoder::rawFileIdentify(), Digikam::MetaEngine::setExifComment(), Digikam::MetaEngine::setExifTagData(), Digikam::MetaEngine::setExifTagLong(), Digikam::MetaEngine::setExifTagRational(), Digikam::MetaEngine::setExifTagString(), Digikam::MetaEngine::setExifThumbnail(), Digikam::MetaEngine::setGPSInfo(), setIccProfile(), Digikam::MetaEngine::setImageDateTime(), Digikam::MetaEngine::setItemColorWorkSpace(), Digikam::MetaEngine::setItemDimensions(), Digikam::MetaEngine::setXmp(), and Digikam::MetaEngine::WORKSPACE_UNCALIBRATED.
Referenced by load().
|
inherited |
Return the metadata writing mode.
References Digikam::MetaEngine::Private::metadataWritingMode.
Referenced by Digikam::MetaEngine::Private::copyPrivateData().
bool Digikam::DMetadata::mSecTimeStamp | ( | const char *const | exifTagName, |
int & | ms | ||
) | const |
Extract milliseconds time-stamp of photo from an Exif tag and store it to 'ms'. Returns true if data are extracted.
References Digikam::MetaEngine::getExifTagString().
Referenced by getMSecsInfo().
|
static |
Returns a map of possible enum values and their user-presentable, i18n'ed representation. Valid fields are those which are described as "enum from" or "bit mask from" in metadatainfo.h.
Int, enum from libMetaEngine
Int, enum from Exif
Int, enum from Exif
Int, enum from Exif
Int, enum from Exif
int, enum from Exif
Int, bit mask from Exif
References Digikam::MetadataInfo::ExposureMode, Digikam::MetadataInfo::ExposureProgram, Digikam::MetadataInfo::FlashMode, Digikam::MetadataInfo::MeteringMode, Digikam::MetadataInfo::Orientation, Digikam::MetaEngine::ORIENTATION_ROT_270, Digikam::MetaEngine::ORIENTATION_UNSPECIFIED, Digikam::MetadataInfo::SubjectDistanceCategory, valueToString(), and Digikam::MetadataInfo::WhiteBalance.
Referenced by Digikam::SearchField::createField().
void Digikam::DMetadata::registerMetadataSettings | ( | ) |
References Digikam::MetaEngineSettings::instance(), and setSettings().
Referenced by DMetadata(), and Digikam::ItemScanner::loadFromDisk().
|
staticinherited |
Register a namespace which Exiv2 doesn't know yet. This is only needed when new Xmp properties are added manually. 'uri' is the namespace url and 'prefix' the string used to construct new Xmp key (ex. "Xmp.digiKam.tagList"). NOTE: If the Xmp metadata is read from an item, namespaces are decoded and registered by Exiv2 at the same time.
References prefix, and Digikam::MetaEngine::Private::printExiv2ExceptionError().
Referenced by Digikam::MetaEngine::initializeExiv2().
bool Digikam::DMetadata::removeExifColorSpace | ( | ) | const |
Remove the Exif color space identification from the image.
References Digikam::MetaEngine::removeExifTag(), and Digikam::MetaEngine::removeXmpTag().
Referenced by setIccProfile().
|
inherited |
Remove the Exif tag 'exifTagName' from Exif metadata. Return true if tag is removed successfully or if no tag was present.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::EXIFAdjust::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFCaption::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDateTime::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLens::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLight::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPContent::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPCredits::applyMetadata(), removeExifColorSpace(), removeExifTags(), Digikam::MetaEngine::setExifComment(), and setIccProfile().
bool Digikam::DMetadata::removeExifTags | ( | const QStringList & | tagFilters | ) |
|
inherited |
Remove the Exif Thumbnail from the item
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::setExifThumbnail(), and Digikam::MetaEngine::setTiffThumbnail().
bool Digikam::DMetadata::removeFromXmpTagStringBag | ( | const char *const | xmpTagName, |
const QStringList & | entriesToRemove | ||
) | const |
Remove those Xmp tag entries that are listed in entriesToRemove from the entries in metadata. Return true if tag entries are no longer contained in metadata. All other entries are preserved.
References Digikam::MetaEngine::getXmpTagStringBag(), and Digikam::MetaEngine::setXmpTagStringBag().
Referenced by removeXmpKeywords(), removeXmpSubCategories(), and removeXmpSubjects().
|
inherited |
Remove all Exif tags relevant of GPS location information. Return true if all tags have been removed successfully in metadata.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::removeXmpTag(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::setGPSInfo(), and Digikam::MetadataHub::write().
|
inherited |
Remove the all instance of Iptc tags 'iptcTagName' from Iptc metadata. Return true if all tags have been removed successfully (or none were present).
References Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::IPTCCategories::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCContent::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCCredits::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCEnvelope::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCProperties::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCStatus::applyMetadata(), removeIptcTags(), removeMetadataTemplate(), setItemComments(), Digikam::MetaEngine::setItemPreview(), and setItemTitles().
bool Digikam::DMetadata::removeIptcTags | ( | const QStringList & | tagFilters | ) |
bool Digikam::DMetadata::removeItemFacesMap | ( | ) | const |
Remove Images Face Map tags from Picassa/Metadatagroup format.
References Digikam::MetaEngine::removeXmpTag().
Referenced by setItemFacesMap().
bool Digikam::DMetadata::removeMetadataTemplate | ( | ) | const |
References Digikam::MetaEngine::removeIptcTag(), and Digikam::MetaEngine::removeXmpTag().
Referenced by Digikam::MetadataHub::write().
bool Digikam::DMetadata::removeXmpKeywords | ( | const QStringList & | keywordsToRemove | ) |
Remove those Xmp keywords that are listed in keywordsToRemove from the keywords in metadata. Return true if keywords are no longer contained in metadata.
References removeFromXmpTagStringBag().
bool Digikam::DMetadata::removeXmpSubCategories | ( | const QStringList & | categoriesToRemove | ) |
Remove those Xmp sub-categories that are listed in categoriesToRemove from the sub-categories in metadata. Return true if subjects are no longer contained in metadata.
References removeFromXmpTagStringBag().
bool Digikam::DMetadata::removeXmpSubjects | ( | const QStringList & | subjectsToRemove | ) |
Remove those Xmp subjects that are listed in subjectsToRemove from the subjects in metadata. Return true if subjects are no longer contained in metadata.
References removeFromXmpTagStringBag().
|
inherited |
Remove the Xmp tag 'xmpTagName' from Xmp metadata. Return true if tag is removed successfully or if no tag was present.
References Digikam::MetaEngine::Private::printExiv2ExceptionError().
Referenced by DigikamGenericMetadataEditPlugin::XMPCategories::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPContent::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPCredits::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPKeywords::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPProperties::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPStatus::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPSubjects::applyMetadata(), removeExifColorSpace(), Digikam::MetaEngine::removeGPSInfo(), removeItemFacesMap(), removeMetadataTemplate(), removeXmpTags(), setACDSeeTagsPath(), setItemColorLabel(), setItemComments(), Digikam::MetaEngine::setItemPreview(), setItemTitles(), Digikam::MetaEngine::setXmpTagStringBag(), Digikam::MetaEngine::setXmpTagStringLangAlt(), Digikam::MetaEngine::setXmpTagStringListLangAlt(), and Digikam::MetaEngine::setXmpTagStringSeq().
bool Digikam::DMetadata::removeXmpTags | ( | const QStringList & | tagFilters | ) |
|
inherited |
Fix orientation of a QImage image accordingly with Exif orientation tag. Return true if image is rotated, else false.
References Digikam::Matrix::matrix(), Digikam::MetaEngine::ORIENTATION_NORMAL, Digikam::MetaEngine::ORIENTATION_UNSPECIFIED, and Digikam::MetaEngineRotation::toTransform().
Referenced by DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb(), and Digikam::MetaEngine::getExifThumbnail().
bool Digikam::DMetadata::save | ( | const QString & | filePath, |
bool | setVersion = false |
||
) | const |
References Digikam::MetaEngine::save().
Referenced by Digikam::JPEGUtils::JpegRotator::updateMetadata().
bool Digikam::DMetadata::setACDSeeTagsPath | ( | const QStringList & | tagsPath | ) | const |
References Digikam::MetaEngine::removeXmpTag(), and Digikam::MetaEngine::setXmpTagString().
Referenced by setItemTagsPath().
|
inherited |
Set the Comments data using a Qt byte array. Return true if Comments metadata have been changed in memory.
References Digikam::MetaEngine::data(), and Digikam::MetaEngine::Private::itemComments().
Referenced by DigikamGenericMetadataEditPlugin::EXIFCaption::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCContent::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPContent::applyMetadata(), Digikam::MetaEngine::clearComments(), and setItemComments().
bool Digikam::DMetadata::setCreatorContactInfo | ( | const IptcCoreContactInfo & | info | ) | const |
References Digikam::IptcCoreContactInfo::address, Digikam::IptcCoreContactInfo::city, Digikam::IptcCoreContactInfo::country, Digikam::IptcCoreContactInfo::email, Digikam::IptcCoreContactInfo::phone, Digikam::IptcCoreContactInfo::postalCode, Digikam::IptcCoreContactInfo::provinceState, Digikam::MetaEngine::setXmpTagString(), Digikam::MetaEngine::supportXmp(), and Digikam::IptcCoreContactInfo::webUrl.
Referenced by setMetadataTemplate().
|
inherited |
References Digikam::MetaEngine::data(), and Digikam::MetaEngine::Private::data.
Referenced by Digikam::MetaEngine::MetaEngine().
|
inherited |
Set the Exif data using a Qt byte array. Return true if Exif metadata have been changed in memory.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by Digikam::GPCamera::getMetadata().
|
inherited |
Set the Exif user comments from item. Look Exif specification for more details about this tag. Return true if Exif user comments have been changed in metadata.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::removeExifTag(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setExifTagString().
Referenced by DigikamGenericMetadataEditPlugin::EXIFCaption::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCContent::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPContent::applyMetadata(), loadUsingRawEngine(), and setItemComments().
|
inherited |
Set an Exif tag content using a bytes array. Return true if tag is set successfully.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by loadUsingRawEngine(), Digikam::MetaEngine::setExifTagVariant(), and setIccProfile().
|
inherited |
Set an Exif tag content using a long value. Return true if tag is set successfully.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::EXIFAdjust::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLens::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLight::applyMetadata(), loadUsingRawEngine(), Digikam::MetaEngine::setExifTagVariant(), and setItemRating().
|
inherited |
Set an Exif tag content using a rational value. 'num' and 'den' are the numerator and the denominator of the rational value. Return true if tag is set successfully.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by DigikamGenericMetadataEditPlugin::EXIFAdjust::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLens::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFLight::applyMetadata(), loadUsingRawEngine(), and Digikam::MetaEngine::setExifTagVariant().
|
inherited |
Set an Exif tag content using a string. Return true if tag is set successfully.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and value.
Referenced by DigikamGenericMetadataEditPlugin::EXIFCaption::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDateTime::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDevice::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPContent::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPCredits::applyMetadata(), loadUsingRawEngine(), Digikam::MetaEngine::setExifComment(), Digikam::MetaEngine::setExifTagVariant(), and setItemColorLabel().
|
inherited |
Set an Exif tag content using a QVariant. Returns true if tag is set successfully. All types described for the getExifTagVariant() method are supported. Calling with a QVariant of type ByteArray is equivalent to calling setExifTagData. For the meaning of rationalWantSmallDenominator, see the documentation of the convertToRational methods. Setting a value with multiple components is currently not supported.
References Digikam::MetaEngine::convertToRational(), Digikam::MetaEngine::convertToRationalSmallDenominator(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::setExifTagData(), Digikam::MetaEngine::setExifTagLong(), Digikam::MetaEngine::setExifTagRational(), and Digikam::MetaEngine::setExifTagString().
Referenced by Digikam::setExifXmpTagDataVariant().
|
inherited |
Set the Exif Thumbnail image. The thumbnail image must have the right dimensions before. Look Exif specification for details. Return true if thumbnail have been changed in metadata.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::removeExifThumbnail(), and Digikam::s_metaEngineMutex.
Referenced by loadUsingRawEngine(), and Digikam::JPEGUtils::JpegRotator::updateMetadata().
|
inherited |
Set the file path of current item.
References Digikam::MetaEngine::Private::filePath.
|
inherited |
Set all GPS location information into item. Return true if all information have been changed in metadata. If you do not want altitude to be set, pass a null pointer.
References AutoPtr, Digikam::MetaEngine::convertToGPSCoordinateString(), Digikam::MetaEngine::convertToRational(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::initializeGPSInfo(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::removeGPSInfo(), Digikam::s_metaEngineMutex, Digikam::MetaEngine::setXmpTagString(), and value.
|
inherited |
Set all GPS location information into item. Return true if all information have been changed in metadata.
Referenced by loadUsingFFmpeg(), loadUsingRawEngine(), Digikam::MetaEngine::setGPSInfo(), and Digikam::MetadataHub::write().
|
inherited |
Set all GPS location information into item. Return true if all information have been changed in metadata.
References Digikam::MetaEngine::convertFromGPSCoordinateString(), and Digikam::MetaEngine::setGPSInfo().
bool Digikam::DMetadata::setIccProfile | ( | const IccProfile & | profile | ) |
Sets the IccProfile embedded in the Exif metadata.
References Digikam::IccProfile::data(), Digikam::MetaEngine::data(), Digikam::IccProfile::isNull(), removeExifColorSpace(), Digikam::MetaEngine::removeExifTag(), and Digikam::MetaEngine::setExifTagData().
Referenced by loadUsingRawEngine().
|
inherited |
Set the Exif and Iptc time stamp. If 'setDateTimeDigitized' parameter is true, the 'Digitalized' time stamp is set, else only 'Created' time stamp is set.
References AutoPtr, Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::getFilePath(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::isEmpty(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by loadUsingFFmpeg(), loadUsingRawEngine(), and Digikam::MetadataHub::write().
|
inherited |
Set the Iptc data using a Qt byte array. Return true if Iptc metadata have been changed in memory.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
bool Digikam::DMetadata::setIptcCoreLocation | ( | const IptcCoreLocationInfo & | location | ) | const |
References Digikam::RedEye::location(), Digikam::MetaEngine::setXmpTagString(), and Digikam::MetaEngine::supportXmp().
Referenced by setMetadataTemplate().
|
inherited |
Set Iptc keywords using a list of strings defined by 'newKeywords' parameter. Use 'getImageKeywords()' method to set 'oldKeywords' parameter with existing keywords from item. The method will compare all new keywords with all old keywords to prevent duplicate entries in item. Return true if keywords have been changed in metadata.
References AutoPtr, Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setIptcTagString().
Referenced by DigikamGenericMetadataEditPlugin::IPTCKeywords::applyMetadata(), loadUsingFFmpeg(), and setItemTagsPath().
|
inherited |
Set Iptc sub-categories using a list of strings defined by 'newSubCategories' parameter. Use 'getImageSubCategories()' method to set 'oldSubCategories' parameter with existing sub-categories from item. The method will compare all new sub-categories with all old sub-categories to prevent duplicate entries in item. Return true if sub-categories have been changed in metadata.
References AutoPtr, Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setIptcTagString().
Referenced by DigikamGenericMetadataEditPlugin::IPTCCategories::applyMetadata(), and loadUsingFFmpeg().
|
inherited |
Set Iptc subjects using a list of strings defined by 'newSubjects' parameter. Use 'getImageSubjects()' method to set 'oldSubjects' parameter with existing subjects from item. The method will compare all new subjects with all old subjects to prevent duplicate entries in item. Return true if subjects have been changed in metadata.
References AutoPtr, Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setIptcTagString().
Referenced by DigikamGenericMetadataEditPlugin::IPTCSubjects::applyMetadata(), and setMetadataTemplate().
|
inherited |
Set an Iptc tag content using a bytes array. Return true if tag is set successfully.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
|
inherited |
Set multiple Iptc tags contents using a strings list. 'maxSize' is the max characters size of one entry. Return true if all tags have been set successfully.
References AutoPtr, Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setIptcTagString().
Referenced by DigikamGenericMetadataEditPlugin::IPTCContent::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCCredits::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCProperties::applyMetadata(), and setMetadataTemplate().
|
inherited |
Set an Iptc tag content using a string. Return true if tag is set successfully.
References Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and value.
Referenced by DigikamGenericMetadataEditPlugin::EXIFCaption::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDateTime::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCCategories::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCContent::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCCredits::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCEnvelope::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCOrigin::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCProperties::applyMetadata(), DigikamGenericMetadataEditPlugin::IPTCStatus::applyMetadata(), Digikam::MetaEngine::setIptcKeywords(), Digikam::MetaEngine::setIptcSubCategories(), Digikam::MetaEngine::setIptcSubjects(), Digikam::MetaEngine::setIptcTagsStringList(), setItemComments(), and setItemTitles().
bool Digikam::DMetadata::setItemColorLabel | ( | int | colorId, |
const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() |
||
) | const |
References Digikam::BlueLabel, Digikam::NamespaceEntry::DM_COLORLABEL_CONTAINER(), Digikam::NamespaceEntry::EXIF, Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::DMetadataSettingsContainer::getWriteMapping(), Digikam::GreenLabel, Digikam::NamespaceEntry::IPTC, Digikam::MagentaLabel, Digikam::NoColorLabel, Digikam::RedLabel, Digikam::MetaEngine::removeXmpTag(), Digikam::MetaEngine::setExifTagString(), Digikam::MetaEngine::setXmpTagString(), Digikam::MetaEngine::supportXmp(), Digikam::DMetadataSettingsContainer::unifyReadWrite(), Digikam::WhiteLabel, Digikam::NamespaceEntry::XMP, and Digikam::YellowLabel.
Referenced by Digikam::MetadataHub::write().
|
inherited |
Set the Exif color-space tag of item. See ImageColorWorkSpace values for details Return true if work-space have been changed in metadata.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setXmpTagString().
Referenced by loadUsingRawEngine().
bool Digikam::DMetadata::setItemComments | ( | const CaptionsMap & | comments, |
const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() |
||
) | const |
References Digikam::CaptionsMap::authorsList(), Digikam::NamespaceEntry::COMMENT_ALTLANG, Digikam::NamespaceEntry::COMMENT_ATLLANGLIST, Digikam::NamespaceEntry::COMMENT_JPEG, Digikam::NamespaceEntry::COMMENT_XMP, Digikam::CaptionsMap::datesList(), Digikam::NamespaceEntry::DM_COMMENT_CONTAINER(), Digikam::NamespaceEntry::EXIF, Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::DMetadataSettingsContainer::getWriteMapping(), Digikam::NamespaceEntry::IPTC, Digikam::MetaEngine::removeIptcTag(), Digikam::MetaEngine::removeXmpTag(), Digikam::MetaEngine::setComments(), Digikam::MetaEngine::setExifComment(), Digikam::MetaEngine::setIptcTagString(), Digikam::MetaEngine::setXmpTagString(), Digikam::MetaEngine::setXmpTagStringLangAlt(), Digikam::MetaEngine::setXmpTagStringListLangAlt(), Digikam::MetaEngine::supportXmp(), Digikam::CaptionsMap::toAltLangMap(), Digikam::DMetadataSettingsContainer::unifyReadWrite(), and Digikam::NamespaceEntry::XMP.
Referenced by loadUsingFFmpeg(), and Digikam::MetadataHub::write().
|
inherited |
Set the size of item in pixels in Exif tags. Return true if size have been changed in metadata.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setXmpTagString().
Referenced by loadUsingFFmpeg(), loadUsingRawEngine(), and Digikam::JPEGUtils::JpegRotator::updateMetadata().
bool Digikam::DMetadata::setItemFacesMap | ( | const QMultiMap< QString, QVariant > & | facesPath, |
bool | write, | ||
const QSize & | size = QSize() |
||
) | const |
Set Images Face Map tags in Picassa/Metadatagroup format.
write | : if true all faces will be written, else update mode: search if at least a face tag exist and write if true. |
References Digikam::MetaEngine::ArrayBagTag, Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::NormalTag, removeItemFacesMap(), Digikam::MetaEngine::setXmpTagString(), and Digikam::MetaEngine::StructureTag.
bool Digikam::DMetadata::setItemHistory | ( | const QString & | imageHistoryXml | ) | const |
References Digikam::MetaEngine::setXmpTagString(), and Digikam::MetaEngine::supportXmp().
|
inherited |
Set the Exif orientation tag of item. See ImageOrientation values for details Return true if orientation have been changed in metadata.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::ORIENTATION_ROT_270, Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setXmpTagString().
Referenced by loadUsingFFmpeg(), and Digikam::JPEGUtils::JpegRotator::updateMetadata().
bool Digikam::DMetadata::setItemPickLabel | ( | int | pickId | ) | const |
References Digikam::AcceptedLabel, Digikam::NoPickLabel, Digikam::MetaEngine::setXmpTagString(), and Digikam::MetaEngine::supportXmp().
Referenced by Digikam::MetadataHub::write().
|
inherited |
Set the Iptc preview image. The thumbnail item must have the right size before (64Kb max with JPEG file, else 256Kb). Look Iptc specification for details. Return true if preview have been changed in metadata. Re-implement this method if you want to use another item file format than JPEG to save preview.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::removeIptcTag(), Digikam::MetaEngine::removeXmpTag(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setXmpTagString().
Referenced by Digikam::JPEGUtils::JpegRotator::updateMetadata().
|
inherited |
Set Program name and program version in Exif and Iptc Metadata. Return true if information have been changed in metadata.
References Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::iptcMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::s_metaEngineMutex, and Digikam::MetaEngine::setXmpTagString().
Referenced by Digikam::MetaEngine::setProgramId().
bool Digikam::DMetadata::setItemRating | ( | int | rating, |
const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() |
||
) | const |
References Digikam::NamespaceEntry::DM_RATING_CONTAINER(), Digikam::NamespaceEntry::EXIF, Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::DMetadataSettingsContainer::getWriteMapping(), Digikam::NamespaceEntry::IPTC, Digikam::MetaEngine::setExifTagLong(), Digikam::MetaEngine::setXmpTagString(), Digikam::MetaEngine::supportXmp(), Digikam::DMetadataSettingsContainer::unifyReadWrite(), and Digikam::NamespaceEntry::XMP.
Referenced by loadUsingFFmpeg(), and Digikam::MetadataHub::write().
bool Digikam::DMetadata::setItemTagsPath | ( | const QStringList & | tagsPath, |
const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() |
||
) | const |
References Digikam::NamespaceEntry::DM_TAG_CONTAINER(), Digikam::MetaEngine::getIptcKeywords(), Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::DMetadataSettingsContainer::getWriteMapping(), Digikam::NamespaceEntry::IPTC, setACDSeeTagsPath(), Digikam::MetaEngine::setIptcKeywords(), Digikam::MetaEngine::setXmpTagStringBag(), Digikam::MetaEngine::setXmpTagStringSeq(), Digikam::MetaEngine::supportXmp(), Digikam::NamespaceEntry::TAG, Digikam::NamespaceEntry::TAG_ACDSEE, Digikam::NamespaceEntry::TAG_XMPBAG, Digikam::NamespaceEntry::TAG_XMPSEQ, Digikam::DMetadataSettingsContainer::unifyReadWrite(), and Digikam::NamespaceEntry::XMP.
Referenced by Digikam::MetadataHub::writeTags().
bool Digikam::DMetadata::setItemTitles | ( | const CaptionsMap & | title, |
const DMetadataSettingsContainer & | settings = DMetadataSettings::instance()->settings() |
||
) | const |
References Digikam::NamespaceEntry::COMMENT_ATLLANGLIST, Digikam::NamespaceEntry::COMMENT_XMP, Digikam::NamespaceEntry::DM_TITLE_CONTAINER(), Digikam::DMetadataSettingsContainer::getReadMapping(), Digikam::DMetadataSettingsContainer::getWriteMapping(), Digikam::NamespaceEntry::IPTC, Digikam::MetaEngine::removeIptcTag(), Digikam::MetaEngine::removeXmpTag(), Digikam::MetaEngine::setIptcTagString(), Digikam::MetaEngine::setXmpTagString(), Digikam::MetaEngine::setXmpTagStringListLangAlt(), Digikam::MetaEngine::supportXmp(), Digikam::CaptionsMap::toAltLangMap(), Digikam::DMetadataSettingsContainer::unifyReadWrite(), and Digikam::NamespaceEntry::XMP.
Referenced by Digikam::MetadataHub::write().
bool Digikam::DMetadata::setItemUniqueId | ( | const QString & | uuid | ) | const |
References Digikam::MetaEngine::setXmpTagString(), and Digikam::MetaEngine::supportXmp().
bool Digikam::DMetadata::setMetadataTemplate | ( | const Template & | t | ) | const |
References Digikam::Template::authors(), Digikam::Template::authorsPosition(), Digikam::Template::contactInfo(), Digikam::Template::copyright(), Digikam::Template::credit(), Digikam::MetaEngine::getIptcSubjects(), Digikam::MetaEngine::getIptcTagsStringList(), Digikam::Template::instructions(), Digikam::Template::IptcSubjects(), Digikam::Template::isNull(), Digikam::Template::locationInfo(), Digikam::Template::rightUsageTerms(), setCreatorContactInfo(), setIptcCoreLocation(), Digikam::MetaEngine::setIptcSubjects(), Digikam::MetaEngine::setIptcTagsStringList(), setXmpSubjects(), Digikam::MetaEngine::setXmpTagString(), Digikam::MetaEngine::setXmpTagStringListLangAlt(), Digikam::MetaEngine::setXmpTagStringSeq(), Digikam::Template::source(), and Digikam::MetaEngine::supportXmp().
Referenced by Digikam::MetadataHub::write().
|
inherited |
Set metadata writing mode.
mode | Metadata writing mode as defined by the MetadataWritingMode enum. |
References Digikam::MetaEngine::Private::metadataWritingMode.
Referenced by setSettings().
|
protectedinherited |
Set the Program Name and Program Version information in Exif and Iptc metadata
References Digikam::digiKamVersion(), and Digikam::MetaEngine::setItemProgramId().
Referenced by Digikam::MetaEngine::save().
void Digikam::DMetadata::setSettings | ( | const MetaEngineSettingsContainer & | settings | ) |
References Digikam::MetaEngineSettingsContainer::metadataWritingMode, Digikam::MetaEngine::setMetadataWritingMode(), Digikam::MetaEngine::setUpdateFileTimeStamp(), Digikam::MetaEngine::setUseCompatibleFileName(), Digikam::MetaEngine::setUseXMPSidecar4Reading(), Digikam::MetaEngine::setWriteDngFiles(), Digikam::MetaEngine::setWriteRawFiles(), Digikam::MetaEngineSettingsContainer::updateFileTimeStamp, Digikam::MetaEngineSettingsContainer::useCompatibleFileName, Digikam::MetaEngineSettingsContainer::useXMPSidecar4Reading, Digikam::MetaEngineSettingsContainer::writeDngFiles, and Digikam::MetaEngineSettingsContainer::writeRawFiles.
Referenced by registerMetadataSettings(), and Digikam::MetadataHub::write().
|
inherited |
Adds a JPEG thumbnail to a TIFF images. Use this instead of setExifThumbnail for TIFF images.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::exifMetadata(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::removeExifThumbnail(), and Digikam::s_metaEngineMutex.
|
inherited |
Enable or disable file timestamp updating when metadata are saved. By default files timestamp are untouched.
References Digikam::MetaEngine::Private::updateFileTimeStamp.
Referenced by setSettings().
|
inherited |
Enable or disable using compatible file name for sidecar files.
References Digikam::MetaEngine::Private::useCompatibleFileName.
Referenced by setSettings().
|
inherited |
Enable or disable using XMP sidecar for reading metadata.
References Digikam::MetaEngine::Private::useXMPSidecar4Reading.
Referenced by setSettings().
|
inherited |
Enable or disable writing metadata operations to DNG files.
References Digikam::MetaEngine::Private::writeDngFiles.
Referenced by setSettings().
|
inherited |
Enable or disable writing metadata operations to RAW tiff based files. It requires Exiv2 0.18. By default RAW files are untouched.
References Digikam::MetaEngine::Private::writeRawFiles.
Referenced by setSettings().
|
inherited |
Set the Xmp data using a Qt byte array. Return true if Xmp metadata have been changed in memory.
References Digikam::MetaEngine::data(), Digikam::MetaEngine::Private::filePath, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::s_metaEngineMutex.
Referenced by loadUsingRawEngine().
bool Digikam::DMetadata::setXmpKeywords | ( | const QStringList & | newKeywords | ) | const |
Set Xmp keywords using a list of strings defined by 'newKeywords' parameter. The existing keywords from image are preserved. The method will compare all new keywords with all already existing keywords to prevent duplicate entries in image. Return true if keywords have been changed in metadata.
References Digikam::MetaEngine::setXmpTagStringBag().
Referenced by DigikamGenericMetadataEditPlugin::XMPKeywords::applyMetadata(), and loadUsingFFmpeg().
bool Digikam::DMetadata::setXmpSubCategories | ( | const QStringList & | newSubCategories | ) | const |
Set Xmp sub-categories using a list of strings defined by 'newSubCategories' parameter. The existing sub-categories from image are preserved. The method will compare all new sub-categories with all already existing sub-categories to prevent duplicate entries in image. Return true if sub-categories have been changed in metadata.
References addToXmpTagStringBag().
Referenced by DigikamGenericMetadataEditPlugin::XMPCategories::applyMetadata(), and loadUsingFFmpeg().
bool Digikam::DMetadata::setXmpSubjects | ( | const QStringList & | newSubjects | ) | const |
Set Xmp subjects using a list of strings defined by 'newSubjects' parameter. The existing subjects from image are preserved. The method will compare all new subject with all already existing subject to prevent duplicate entries in image. Return true if subjects have been changed in metadata.
References addToXmpTagStringBag().
Referenced by DigikamGenericMetadataEditPlugin::XMPSubjects::applyMetadata(), and setMetadataTemplate().
|
inherited |
Set a Xmp tag content using a string. Return true if tag is set successfully.
References AutoPtr, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and value.
Referenced by DigikamGenericMetadataEditPlugin::EXIFDateTime::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPCategories::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPContent::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPCredits::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPOrigin::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPProperties::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPStatus::applyMetadata(), Digikam::MetaEngine::initializeGPSInfo(), loadUsingFFmpeg(), Digikam::s_setXmpTagStringFromEntry(), setACDSeeTagsPath(), setCreatorContactInfo(), Digikam::setExifXmpTagDataVariant(), Digikam::MetaEngine::setGPSInfo(), setIptcCoreLocation(), setItemColorLabel(), Digikam::MetaEngine::setItemColorWorkSpace(), setItemComments(), Digikam::MetaEngine::setItemDimensions(), setItemFacesMap(), setItemHistory(), Digikam::MetaEngine::setItemOrientation(), setItemPickLabel(), Digikam::MetaEngine::setItemPreview(), Digikam::MetaEngine::setItemProgramId(), setItemRating(), setItemTitles(), setItemUniqueId(), and setMetadataTemplate().
|
inherited |
Set a Xmp tag with a specific type. Return true if tag is set successfully. This method only accept NormalTag, ArrayBagTag and StructureTag. Other XmpTagTypes do nothing
References Digikam::MetaEngine::ArrayBagTag, Digikam::MetaEngine::NormalTag, Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::StructureTag, and value.
|
inherited |
Set a Xmp tag content using the bag of strings 'bag'. Return true if tag is set successfully.
References AutoPtr, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::MetaEngine::removeXmpTag().
Referenced by addToXmpTagStringBag(), Digikam::MetaEngine::addToXmpTagStringBag(), DigikamGenericMetadataEditPlugin::XMPProperties::applyMetadata(), removeFromXmpTagStringBag(), Digikam::MetaEngine::removeFromXmpTagStringBag(), setItemTagsPath(), and setXmpKeywords().
|
inherited |
Set a Xmp tag content using a string with an alternative language header. 'langAlt' contain the language alternative information (like "fr-FR" for French - RFC3066 notation) or is null to set alternative language to default settings ("x-default"). Return true if tag is set successfully.
References AutoPtr, Digikam::MetaEngine::getXmpTagStringListLangAlt(), Digikam::MetaEngine::Private::printExiv2ExceptionError(), Digikam::MetaEngine::removeXmpTag(), and value.
Referenced by DigikamGenericMetadataEditPlugin::EXIFCaption::applyMetadata(), and setItemComments().
|
inherited |
Set an Alternative Language Xmp tag content using a map. See AltLangMap class description for details. If tag already exist, it will be removed before. Return true if tag is set successfully.
References AutoPtr, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::MetaEngine::removeXmpTag().
Referenced by DigikamGenericMetadataEditPlugin::XMPContent::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPStatus::applyMetadata(), setItemComments(), setItemTitles(), and setMetadataTemplate().
|
inherited |
Set a Xmp tag content using the sequence of strings 'seq'. Return true if tag is set successfully.
References AutoPtr, Digikam::MetaEngine::Private::printExiv2ExceptionError(), and Digikam::MetaEngine::removeXmpTag().
Referenced by DigikamGenericMetadataEditPlugin::XMPCredits::applyMetadata(), DigikamGenericMetadataEditPlugin::XMPStatus::applyMetadata(), setItemTagsPath(), and setMetadataTemplate().
|
staticinherited |
Return the XMP Sidecar file path for a item file path. If item file path do not include a file name or is empty, this function return a null string.
Referenced by Digikam::MetaEngine::hasSidecar(), Digikam::MetaEngine::loadFromSidecarAndMerge(), Digikam::MetaEngine::Private::saveToXMPSidecar(), Digikam::MetaEngine::sidecarPath(), and Digikam::MetaEngine::sidecarUrl().
|
staticinherited |
Like sidecarFilePathForFile(), but works for local file path.
References Digikam::MetaEngine::sidecarFilePathForFile().
Referenced by Digikam::JPEGUtils::JpegRotator::exifTransform(), Digikam::ItemScanner::loadFromDisk(), Digikam::EditorWindow::moveLocalFile(), Digikam::Task::run(), and Digikam::CollectionScanner::scanFileNormal().
|
staticinherited |
Gives a file url for a local path.
References Digikam::MetaEngine::sidecarFilePathForFile().
|
staticinherited |
Like sidecarFilePathForFile(), but works for remote URLs.
|
staticinherited |
Return true if library support Base Media File Format (aka CR3, HEIF, HEIC, and AVIF). Note: use this function only after to call initializeExiv2(), else false will always returned. The function return true only if Exiv2 >= 0.27.4 compiled with BMFF support.
References Digikam::s_metaEngineSupportBmff.
Referenced by Digikam::LibsInfoDlg::LibsInfoDlg().
|
staticinherited |
Return true if library can write metadata to typeMime file format.
|
staticinherited |
Return true if Exiv2 library is compiled with Xmp metadata support.
Referenced by DigikamGenericMetadataEditPlugin::EXIFCaption::applyMetadata(), DigikamGenericMetadataEditPlugin::EXIFDateTime::applyMetadata(), getItemComments(), Digikam::ItemPropertiesMetadataTab::ItemPropertiesMetadataTab(), Digikam::LibsInfoDlg::LibsInfoDlg(), setCreatorContactInfo(), setIptcCoreLocation(), setItemColorLabel(), setItemComments(), setItemHistory(), setItemPickLabel(), setItemRating(), setItemTagsPath(), setItemTitles(), setItemUniqueId(), setMetadataTemplate(), ShowFoto::ShowfotoSetupMetadata::ShowfotoSetupMetadata(), and Digikam::TimeAdjustSettings::TimeAdjustSettings().
|
static |
Referenced by getCopyrightInformation().
|
staticinherited |
Unregister a previously registered custom namespace
References Digikam::MetaEngine::Private::printExiv2ExceptionError().
|
inherited |
Return true if file timestamp is updated when metadata are saved.
References Digikam::MetaEngine::Private::updateFileTimeStamp.
Referenced by Digikam::MetaEngine::Private::copyPrivateData(), and Digikam::MetaEngine::Private::saveOperations().
|
inherited |
Return true if using compatible file name for sidecar files.
References Digikam::MetaEngine::Private::useCompatibleFileName.
Referenced by Digikam::MetaEngine::Private::copyPrivateData(), and Digikam::MetaEngine::Private::saveToXMPSidecar().
|
inherited |
Return true if using XMP sidecar for reading metadata is enabled.
References Digikam::MetaEngine::Private::useXMPSidecar4Reading.
Referenced by Digikam::MetaEngine::Private::copyPrivateData().
|
static |
References valueToString().
Referenced by Digikam::ItemScanner::fillVideoMetadataContainer().
|
static |
Convert a QVariant value of the specified field to a user-presentable, i18n'ed string. The QVariant must be of the type as specified in metadatainfo.h and as obtained by getMetadataField.
References Digikam::MetadataInfo::Altitude, Digikam::MetadataInfo::Aperture, Digikam::MetadataInfo::AspectRatio, Digikam::MetadataInfo::AudioBitRate, Digikam::MetadataInfo::AudioChannelType, Digikam::MetadataInfo::AudioCodec, Digikam::MetadataInfo::Comment, Digikam::MetadataInfo::CommentExif, Digikam::MetadataInfo::CommentIptc, Digikam::MetadataInfo::CommentJfif, Digikam::MetaEngine::convertToUserPresentableNumbers(), Digikam::MetadataInfo::CreationDate, Digikam::MetadataInfo::Description, Digikam::MetadataInfo::DescriptionWriter, Digikam::MetadataInfo::DigitizationDate, Digikam::MetadataInfo::Duration, Digikam::MetadataInfo::ExposureMode, Digikam::MetadataInfo::ExposureProgram, Digikam::MetadataInfo::ExposureTime, Digikam::MetadataInfo::FlashMode, Digikam::MetadataInfo::FocalLength, Digikam::MetadataInfo::FocalLengthIn35mm, Digikam::MetadataInfo::FrameRate, Digikam::MetadataInfo::Headline, Digikam::MetadataInfo::IptcCoreCity, Digikam::MetadataInfo::IptcCoreCopyrightNotice, Digikam::MetadataInfo::IptcCoreCountry, Digikam::MetadataInfo::IptcCoreCountryCode, Digikam::MetadataInfo::IptcCoreCreator, Digikam::MetadataInfo::IptcCoreCreatorJobTitle, Digikam::MetadataInfo::IptcCoreInstructions, Digikam::MetadataInfo::IptcCoreIntellectualGenre, Digikam::MetadataInfo::IptcCoreJobID, Digikam::MetadataInfo::IptcCoreLocation, Digikam::MetadataInfo::IptcCoreProvider, Digikam::MetadataInfo::IptcCoreProvinceState, Digikam::MetadataInfo::IptcCoreRightsUsageTerms, Digikam::MetadataInfo::IptcCoreScene, Digikam::MetadataInfo::IptcCoreSource, Digikam::MetadataInfo::IptcCoreSubjectCode, Digikam::MetadataInfo::Latitude, Digikam::MetadataInfo::LatitudeNumber, Digikam::MetadataInfo::Lens, Digikam::MetadataInfo::Longitude, Digikam::MetadataInfo::LongitudeNumber, Digikam::MetadataInfo::Make, Digikam::MetadataInfo::MeteringMode, Digikam::MetadataInfo::Model, Digikam::MetadataInfo::Orientation, Digikam::MetaEngine::ORIENTATION_HFLIP, Digikam::MetaEngine::ORIENTATION_NORMAL, Digikam::MetaEngine::ORIENTATION_ROT_180, Digikam::MetaEngine::ORIENTATION_ROT_270, Digikam::MetaEngine::ORIENTATION_ROT_90, Digikam::MetaEngine::ORIENTATION_ROT_90_HFLIP, Digikam::MetaEngine::ORIENTATION_ROT_90_VFLIP, Digikam::MetaEngine::ORIENTATION_UNSPECIFIED, Digikam::MetaEngine::ORIENTATION_VFLIP, Digikam::MetadataInfo::PositionAccuracy, Digikam::MetadataInfo::PositionDescription, Digikam::MetadataInfo::PositionOrientation, Digikam::MetadataInfo::PositionRoll, Digikam::MetadataInfo::PositionTilt, Digikam::MetadataInfo::Rating, Digikam::MetadataInfo::Sensitivity, Digikam::MetadataInfo::SubjectDistance, Digikam::MetadataInfo::SubjectDistanceCategory, Digikam::MetadataInfo::Title, value, Digikam::MetadataInfo::VideoCodec, Digikam::MetadataInfo::WhiteBalance, and Digikam::MetadataInfo::WhiteBalanceColorTemperature.
Referenced by Digikam::ItemPosition::altitudeFormatted(), Digikam::TableViewColumns::ColumnPhotoProperties::data(), Digikam::ItemScanner::fillCommonContainer(), Digikam::ItemInfo::imageMetadataContainer(), Digikam::ItemPosition::latitudeFormatted(), Digikam::ItemPosition::longitudeFormatted(), possibleValuesForEnumField(), valuesToString(), and Digikam::ItemInfo::videoMetadataContainer().
|
static |
Helper method to translate enum values to user presentable strings
References VIDEOCOLORMODEL_BT601, VIDEOCOLORMODEL_BT709, VIDEOCOLORMODEL_OTHER, and VIDEOCOLORMODEL_SRGB.
Referenced by Digikam::SearchField::createField(), Digikam::ItemScanner::fillCommonContainer(), and loadUsingFFmpeg().
|
inherited |
Return true if writing metadata operations on DNG files is enabled.
References Digikam::MetaEngine::Private::writeDngFiles.
Referenced by Digikam::MetaEngine::Private::copyPrivateData(), and Digikam::MetaEngine::Private::saveToFile().
|
inherited |
Return true if writing metadata operations on RAW tiff based files is enabled. It's require at least Exiv2 0.18.
References Digikam::MetaEngine::Private::writeRawFiles.
Referenced by Digikam::MetaEngine::Private::copyPrivateData(), and Digikam::MetaEngine::Private::saveToFile().