33//The IFD used in this standard consists of a 2-byte count (number of fields), 12-byte field Interoperability arrays, and 4-byte offset to the next IFD
34constunsignedchar GPSIFD[18] = { //Number of fields in this IFD, 2 bytes --> only gps ifd
35 0x01,0x00,
36//GPS IFD Tag, next 12Bytes is the IFD 12-byte field Interoperability array
37 0x25,0x88,
38//Type -> long
39 0x04,0x00,
40//Count
41 0x01,0x00,0x00,0x00,
42//Value -> Pointer to gps tags 0x1A = 26: Offset from TIFF Header to GPSValues --> 8Byte TIFF + 18Bytes GPSIFD = 26Bytes
43 0x1A,0x00,0x00,0x00,
44//4 Byte offset to new segment -> GPS only segment
45 0x00,0x00,0x00,0x00};
46
47bool useAltitude;
48bool usePNG;
49int exifSize;
50
51 QPair<int, int> getFraction(double d);
52
53/* Table of CRCs of all 8-bit messages. */
54unsignedlong crc_table[256];
55
56/* Flag: has the table been computed? Initially false. */
57int crc_table_computed = 0;
58
59
60void make_crc_table();
61unsignedlong update_crc(unsignedlong crc, char *buf, int len);