summaryrefslogtreecommitdiff
path: root/src/common/fqterm_exif_extractor.h
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-07-12 21:15:01 +0800
committerIru Cai <mytbk920423@gmail.com>2018-07-12 21:27:00 +0800
commit7ec1765339d61e33119ef4b6367d8c9811f0a49e (patch)
treebe2d69a35bdbc39ecb6e7f8c3d997aa439d723fc /src/common/fqterm_exif_extractor.h
parent864211816994b988fc17ed0ca8e3e2b76e418b04 (diff)
downloadfqterm-7ec1765339d61e33119ef4b6367d8c9811f0a49e.tar.xz
clean up all uint*_t mess
Diffstat (limited to 'src/common/fqterm_exif_extractor.h')
-rw-r--r--src/common/fqterm_exif_extractor.h37
1 files changed, 5 insertions, 32 deletions
diff --git a/src/common/fqterm_exif_extractor.h b/src/common/fqterm_exif_extractor.h
index 7f05798..ae96849 100644
--- a/src/common/fqterm_exif_extractor.h
+++ b/src/common/fqterm_exif_extractor.h
@@ -21,21 +21,11 @@
#ifndef FQTERM_EXIF_EXTRACTOR
#define FQTERM_EXIF_EXTRACTOR
-//#include <QtGlobal>
-
#include "fqterm_trace.h"
-#include <iostream>
-#include <vector>
-#include <stdio.h>
-#include <stdlib.h>
-#include <algorithm>
#include <map>
#include <string>
-//using namespace std;
-#ifdef __GXX_EXPERIMENTAL_CXX0X__
-#include <cstdint>
-#endif
+#include <cstdint>
namespace FQTerm {
@@ -43,23 +33,6 @@ class ExifExtractor
{
public:
-#ifdef __GXX_EXPERIMENTAL_CXX0X__
- typedef std::uint32_t uint32;
- typedef std::uint16_t uint16;
- typedef std::int32_t int32;
- typedef std::int16_t int16;
-#elif defined(QT_VERSION)
- typedef quint32 uint32;
- typedef quint16 uint16;
- typedef qint32 int32;
- typedef qint16 int16;
-#else
- typedef unsigned int uint32;
- typedef unsigned short int uint16;
- typedef short int int16;
- typedef int int32;
-#endif
-
enum DATATYPE {ZEORGARD = 0, UNSIGNEDCHAR = 1, ASCIISTRING = 2, UNSIGNEDINT16 = 3, UNSIGNEDINT32 = 4,
UNSIGNEDRATIONAL = 5, SIGNEDCHAR = 6, UNDEFINED = 7, SIGNEDSHORT = 8, SIGNEDLONG = 9, RATIONAL = 10,
SIGNEDFLOAT = 11, DOUBLEFLOAT = 12, MAXGUARD = 13};
@@ -107,12 +80,12 @@ private:
bool toggle_;
std::map<std::string, std::string> exifKeyValuePairs_;
FILE* exifFile_;
- uint32 ifdOffset_;
- uint32 subIfdOffset_;
+ uint32_t ifdOffset_;
+ uint32_t subIfdOffset_;
- static const uint16 IFD0Tag[16];
+ static const uint16_t IFD0Tag[16];
static const char IFD0TagName[16][30];
- static const uint16 SubIFDTag[38];
+ static const uint16_t SubIFDTag[38];
static const char SubIFDTagName[38][30];
static const char exifHeaderStandard[6];