-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexiftool.h
More file actions
24 lines (22 loc) · 710 Bytes
/
exiftool.h
File metadata and controls
24 lines (22 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <QtCore>
struct GpsResult {
QString path;
bool hasGps=false;
double lat=0.0, lon=0.0;
QString osmUrl;
QString gpsLine;
qint64 bytes=0;
QString sha256;
QStringList gpsLines;
};
class ExifTool {
public:
static bool available(QString *versionOut=nullptr, QString *errOut=nullptr);
static QString dumpAll(const QString& file, QString* errOut=nullptr);
static QString dumpGpsRaw(const QString& file);
static bool stripAll(const QString& file, bool keepBackup, QString* ioMsg=nullptr);
static GpsResult analyze(const QString& file);
private:
static QString run(const QString& file, const QStringList& args, QString* errOut=nullptr);
};