| /* |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| */ |
| |
| #ifndef CordovaLib_ExifData_h |
| #define CordovaLib_ExifData_h |
| |
| // exif data types |
| typedef enum exifDataTypes { |
| EDT_UBYTE = 1, // 8 bit unsigned integer |
| EDT_ASCII_STRING, // 8 bits containing 7 bit ASCII code, null terminated |
| EDT_USHORT, // 16 bit unsigned integer |
| EDT_ULONG, // 32 bit unsigned integer |
| EDT_URATIONAL, // 2 longs, first is numerator and second is denominator |
| EDT_SBYTE, |
| EDT_UNDEFINED, // 8 bits |
| EDT_SSHORT, |
| EDT_SLONG, // 32bit signed integer (2's complement) |
| EDT_SRATIONAL, // 2 SLONGS, first long is numerator, second is denominator |
| EDT_SINGLEFLOAT, |
| EDT_DOUBLEFLOAT |
| } ExifDataTypes; |
| |
| // maps integer code for exif data types to width in bytes |
| static const int DataTypeToWidth[] = {1,1,2,4,8,1,1,2,4,8,4,8}; |
| |
| static const int RECURSE_HORIZON = 8; |
| #endif |