arnaucube
arnaucube/openEventsPlatformAppPublic Self-hosted repository
openEventsPlatformApp/plugins/cordova-plugin-camera/src/ios/CDVExif.h
plugins/cordova-plugin-camera/src/ios/CDVExif.hRaw
 1/*
 2 Licensed to the Apache Software Foundation (ASF) under one
 3 or more contributor license agreements.  See the NOTICE file
 4 distributed with this work for additional information
 5 regarding copyright ownership.  The ASF licenses this file
 6 to you under the Apache License, Version 2.0 (the
 7 "License"); you may not use this file except in compliance
 8 with the License.  You may obtain a copy of the License at
 9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied.  See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 */
19
20#ifndef CordovaLib_ExifData_h
21#define CordovaLib_ExifData_h
22
23// exif data types
24typedef enum exifDataTypes {
25    EDT_UBYTE = 1,      // 8 bit unsigned integer
26    EDT_ASCII_STRING,   // 8 bits containing 7 bit ASCII code, null terminated
27    EDT_USHORT,         // 16 bit unsigned integer
28    EDT_ULONG,          // 32 bit unsigned integer
29    EDT_URATIONAL,      // 2 longs, first is numerator and second is denominator
30    EDT_SBYTE,
31    EDT_UNDEFINED,      // 8 bits
32    EDT_SSHORT,
33    EDT_SLONG,          // 32bit signed integer (2's complement)
34    EDT_SRATIONAL,      // 2 SLONGS, first long is numerator, second is denominator
35    EDT_SINGLEFLOAT,
36    EDT_DOUBLEFLOAT
37} ExifDataTypes;
38
39// maps integer code for exif data types to width in bytes
40static const int DataTypeToWidth[] = {1,1,2,4,8,1,1,2,4,8,4,8};
41
42static const int RECURSE_HORIZON = 8;
43#endif