10#define IMAGEMETADATA_H
15#include <QCoreApplication>
17#include <QStringBuilder>
67 : m_current(composite / 10), m_file(composite % 10) {}
71 int Composite()
const {
return (m_current * 10) + m_file; }
73 int GetCurrent()
const;
74 QString Description()
const;
76 static int FromRotation(
const QString °rees);
79 static QString AsText(
int orientation);
81 int Apply(
int transform)
const;
104 static QString
ToString(
const QString &name,
const QString &label,
const QString &value)
105 {
return name % kSeparator % label % kSeparator % value; }
109 {
return str.split(kSeparator); }
111 using TagMap = QMultiMap<QString, QStringList>;
112 static TagMap ToMap(
const QStringList &tags);
122 : m_filePath(
std::move(filePath)) {}
Encapsulates Exif orientation processing.
Orientation(int current, int file)
int Composite() const
Encode original & current orientation to a single Db field.
int m_current
The orientation to use: the file orientation with user transformations applied.
Orientation(int composite)
int m_file
The orientation of the raw file image, as specified by the camera.
static void Transform(SIMI *Simi, F_PT xo, F_PT yo, F_PT *x, F_PT *y)
QDateTime current(bool stripped)
Returns current Date and Time in UTC.