26 #ifndef DIGIKAM_DMETA_DATA_H
27 #define DIGIKAM_DMETA_DATA_H
65 VIDEOCOLORMODEL_UNKNOWN = 1000,
79 explicit DMetadata(
const QString& filePath);
85 void registerMetadataSettings();
96 bool load(
const QString& filePath,
Backend* backend =
nullptr);
97 bool save(
const QString& filePath,
bool setVersion =
false)
const;
98 bool applyChanges(
bool setVersion =
false)
const;
103 bool loadUsingRawEngine(
const QString& filePath);
107 QString getItemHistory()
const;
108 bool setItemHistory(
const QString& imageHistoryXml)
const;
109 bool hasItemHistoryTag()
const;
111 QString getItemUniqueId()
const;
112 bool setItemUniqueId(
const QString& uuid)
const;
120 bool getItemFacesMap(QMultiMap<QString, QVariant>& facesPath)
const;
128 bool setItemFacesMap(
const QMultiMap<QString, QVariant>& facesPath,
bool write,
const QSize& size = QSize())
const;
133 bool removeItemFacesMap()
const;
137 bool getItemTagsPath(QStringList& tagsPath,
139 bool setItemTagsPath(
const QStringList& tagsPath,
142 bool getACDSeeTagsPath(QStringList& tagsPath)
const;
144 bool setACDSeeTagsPath(
const QStringList& tagsPath)
const;
161 bool setItemRating(
int rating,
164 int getItemPickLabel()
const;
165 bool setItemPickLabel(
int pickId)
const;
168 bool setItemColorLabel(
int colorId,
173 bool setMetadataTemplate(
const Template& t)
const;
174 Template getMetadataTemplate()
const;
175 bool removeMetadataTemplate()
const;
181 bool getCopyrightInformation(
Template& t)
const;
196 bool setIccProfile(
const IccProfile& profile);
201 bool removeExifColorSpace()
const;
206 int getMSecsInfo()
const;
212 bool mSecTimeStamp(
const char*
const exifTagName,
int& ms)
const;
214 bool removeExifTags(
const QStringList& tagFilters);
218 QString getExifTagStringFromTagsList(
const QStringList& tagsList)
const;
228 QStringList getIptcCoreSubjects()
const;
230 bool removeIptcTags(
const QStringList& tagFilters);
236 bool setIptcTag(
const QString& text,
238 const char*
const debugLabel,
239 const char*
const tagKey)
const;
241 QVariant fromIptcEmulateList(
const char*
const iptcTagName)
const;
242 QVariant fromIptcEmulateLangAlt(
const char*
const iptcTagName)
const;
252 bool addToXmpTagStringBag(
const char*
const xmpTagName,
const QStringList& entriesToAdd)
const;
259 bool removeFromXmpTagStringBag(
const char*
const xmpTagName,
const QStringList& entriesToRemove)
const;
264 QStringList getXmpKeywords()
const;
272 bool setXmpKeywords(
const QStringList& newKeywords)
const;
278 bool removeXmpKeywords(
const QStringList& keywordsToRemove);
283 QStringList getXmpSubjects()
const;
291 bool setXmpSubjects(
const QStringList& newSubjects)
const;
297 bool removeXmpSubjects(
const QStringList& subjectsToRemove);
303 QStringList getXmpSubCategories()
const;
311 bool setXmpSubCategories(
const QStringList& newSubCategories)
const;
317 bool removeXmpSubCategories(
const QStringList& categoriesToRemove);
319 bool removeXmpTags(
const QStringList& tagFilters);
323 QVariant fromXmpList(
const char*
const xmpTagName)
const;
324 QVariant fromXmpLangAlt(
const char*
const xmpTagName)
const;
331 bool loadUsingFFmpeg(
const QString& filePath);
341 static QString videoColorModelToString(
VIDEOCOLORMODEL videoColorModel);
352 QString getLensDescription()
const;
357 QString getCameraSerialNumber()
const;
361 static double apexApertureToFNumber(
double aperture);
362 static double apexShutterSpeedToExposureTime(
double shutterSpeed);
371 QVariantList getMetadataFields(
const MetadataFields& fields)
const;
378 static QStringList valuesToString(
const QVariantList& list,
const MetadataFields& fields);
388 QVariant fromExifOrXmp(
const char*
const exifTagName,
const char*
const xmpTagName)
const;
389 QVariant fromIptcOrXmp(
const char*
const iptcTagName,
const char*
const xmpTagName)
const;
390 QVariant fromExifOrXmpList(
const QStringList& tagList)
const;
391 bool hasValidField(
const QVariantList& list)
const;
392 QVariant toStringListVariant(
const QStringList& list)
const;
399 bool loadUsingLibheif(
const QString& filePath);
406 bool loadUsingImageMagick(
const QString& filePath);
Definition: captionvalues.h:69
Definition: iccprofile.h:43
Definition: metadatainfo.h:41
Definition: photoinfocontainer.h:41
Definition: template.h:46
Definition: videoinfocontainer.h:41
Definition: piwigotalker.h:48
qulonglong value
Definition: itemviewutilities.cpp:592
std::vector< T > location(const std::vector< T > &shape, unsigned long idx)
Definition: shapepredictor.h:109
Definition: datefolderview.cpp:43