#define MAX_COMMENT 1000
#define MAX_SECTIONS 20
-
+#define THUMBNAILTMPFILE "/tmp/.thumbcache"
typedef struct tag_ExifInfo {
char Version [5];
float ExposureTime;
float ExposureBias;
float Distance;
- float CCDWidth; //in milimeters
+ float CCDWidth;
float FocalplaneXRes;
float FocalplaneYRes;
float FocalplaneUnits;
int ISOequivalent;
int Process;
int Orient;
- unsigned char * ThumbnailPointer;
- unsigned ThumbnailSize;
+ //unsigned char *ThumbnailPointer;
+ //unsigned ThumbnailSize;
bool IsExif;
+ int Thumnailstate;
} EXIFINFO;
static const int BytesPerFormat[] = {0,1,1,2,4,8,1,1,2,4,8,4,8};
char m_szLastError[256];
Cexif();
~Cexif();
- bool DecodeExif(const char *filename);
+ bool DecodeExif(const char *filename, int Thumb=0);
void ClearExif();
protected:
bool process_EXIF(unsigned char * CharBuf, unsigned int length);