forked from NautiluX/slide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexifhelper.h
More file actions
38 lines (30 loc) · 893 Bytes
/
exifhelper.h
File metadata and controls
38 lines (30 loc) · 893 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef EXIFHELPER_H
#define EXIFHELPER_H
#include <libexif/exif-data.h>
#include <QString>
class ExifHelper
{
public:
ExifHelper();
virtual ~ExifHelper();
void setImage(const std::string path);
ExifData *getExifData();
int getImageRotation();
const QString getImageInfo();
const QString getExifXResolution();
const QString getExifYResolution();
const QString getExifXDimension();
const QString getExifYDimension();
const QString getExifDate();
const QString getExifGPS();
const QString getExifCamera();
private:
const QString getExifAscii(ExifEntry *e);
double getExifRationalValue(const unsigned char *e, ExifByteOrder o);
double getExifGeoCooValue(const unsigned char *e, ExifByteOrder o);
ExifData *m_exifData;
ExifByteOrder m_byteOrder;
QString m_path;
bool m_haveExifData;
};
#endif // EXIFHELPER_H