diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
commit | 1fd361a1ea06e44286c213ca1f814f49306fdc43 (patch) | |
tree | 64c8c96cf54d8718847339a403e5e67b922e8c3f /converter/other/exif.h | |
download | netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.gz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.xz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.zip |
Create Subversion repository
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/exif.h')
-rw-r--r-- | converter/other/exif.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/converter/other/exif.h b/converter/other/exif.h new file mode 100644 index 00000000..e5825e12 --- /dev/null +++ b/converter/other/exif.h @@ -0,0 +1,56 @@ +#ifndef EXIF_H_INCLUDED +#define EXIF_H_INCLUDED + +#define MAX_COMMENT 2000 + +#ifdef _WIN32 + #define PATH_MAX _MAX_PATH +#endif + +/*-------------------------------------------------------------------------- + This structure stores Exif header image elements in a simple manner + Used to store camera data as extracted from the various ways that it can be + stored in an exif header +--------------------------------------------------------------------------*/ +typedef struct { + char CameraMake [32]; + char CameraModel [40]; + char DateTime [20]; + int Height, Width; + int Orientation; + int IsColor; + int FlashUsed; + float FocalLength; + float ExposureTime; + float ApertureFNumber; + float Distance; + int HaveCCDWidth; /* boolean */ + float CCDWidth; + float ExposureBias; + int Whitebalance; + int MeteringMode; + int ExposureProgram; + int ISOequivalent; + int CompressionLevel; + char Comments[MAX_COMMENT]; + + unsigned char * ThumbnailPointer; /* Pointer at the thumbnail */ + unsigned ThumbnailSize; /* Size of thumbnail. */ + + char * DatePointer; +}ImageInfo_t; + + +/* Prototypes for exif.c functions. */ + +void +process_EXIF(unsigned char * const ExifSection, + unsigned int const length, + ImageInfo_t * const ImageInfoP, + int const ShowTags, + const char ** const errorP); + +void +ShowImageInfo(ImageInfo_t * const ImageInfoP); + +#endif |