From 55697fcdddf94560c9e9ba7c3a05027c2199176f Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 24 Oct 2001 21:49:36 +0000 Subject: moved definition of tagnames[]= from exif.h to exif.c, left an extern decl git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2722 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/exif.c | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) (limited to 'libgphoto2/exif.c') diff --git a/libgphoto2/exif.c b/libgphoto2/exif.c index e7fcf571c..11c035540 100644 --- a/libgphoto2/exif.c +++ b/libgphoto2/exif.c @@ -42,6 +42,97 @@ static int exif_sizetab[13]={ 0,1,1,2,4,8,1,1,2,4,8,4,8 }; +static struct tagarray{ + int num; + char* desc; +} tagnames[]= +{ +{0xFE, "NewSubFileType"}, +{0x100, "ImageWidth"}, +{0x101, "ImageLength"}, +{0x102, "BitsPerSample"}, +{0x103, "Compression"}, +{0x106, "PhotometricInterpretation"}, +{0x10A, "FillOrder"}, +{0x10D, "DocumentName"}, +{0x10E, "ImageDescription"}, +{0x10F, "Make"}, +{0x110, "Model"}, +{0x111, "StripOffsets"}, +{0x112, "Orientation"}, +{0x115, "SamplesPerPixel"}, +{0x116, "RowsPerStrip"}, +{0x117, "StripByteCounts"}, +{0x11A, "XResolution"}, +{0x11B, "YResolution"}, +{0x11C, "PlanarConfiguration"}, +{0x128, "ResolutionUnit"}, +{0x12D, "TransferFunction"}, +{0x131, "Software"}, +{0x132, "DateTime"}, +{0x13B, "Artist"}, +{0x13E, "WhitePoint"}, +{0x13F, "PrimaryChromaticities"}, +{0x156, "TransferRange"}, +{0x200, "JPEGProc"}, +{0x201, "JPEGInterchangeFormat"}, +{0x202, "JPEGInterchangeFormatLength"}, +{0x211, "YCbCrCoefficients"}, +{0x212, "YCbCrSubSampling"}, +{0x213, "YCbCrPositioning"}, +{0x214, "ReferenceBlackWhite"}, +{0x828D, "CFARepeatPatternDim"}, +{0x828E, "CFAPattern"}, +{0x828F, "BatteryLevel"}, +{0x8298, "Copyright"}, +{0x829A, "ExposureTime"}, +{0x829D, "FNumber"}, +{0x83BB, "IPTC/NAA"}, +{0x8769, "ExifOffset"}, +{0x8773, "InterColorProfile"}, +{0x8822, "ExposureProgram"}, +{0x8824, "SpectralSensitivity"}, +{0x8825, "GPSInfo"}, +{0x8827, "ISOSpeedRatings"}, +{0x8828, "OECF"}, +{0x9000, "ExifVersion"}, +{0x9003, "DateTimeOriginal"}, +{0x9004, "DateTimeDigitized"}, +{0x9101, "ComponentsConfiguration"}, +{0x9102, "CompressedBitsPerPixel"}, +{0x9201, "ShutterSpeedValue"}, +{0x9202, "ApertureValue"}, +{0x9203, "BrightnessValue"}, +{0x9204, "ExposureBiasValue"}, +{0x9205, "MaxApertureValue"}, +{0x9206, "SubjectDistance"}, +{0x9207, "MeteringMode"}, +{0x9208, "LightSource"}, +{0x9209, "Flash"}, +{0x920A, "FocalLength"}, +{0x927C, "MakerNote"}, +{0x9286, "UserComment"}, +{0x9290, "SubSecTime"}, +{0x9291, "SubSecTimeOriginal"}, +{0x9292, "SubSecTimeDigitized"}, +{0xA000, "FlashPixVersion"}, +{0xA001, "ColorSpace"}, +{0xA002, "ExifImageWidth"}, +{0xA003, "ExifImageLength"}, +{0xA005, "InteroperabilityOffset"}, +{0xA20B, "FlashEnergy"}, +{0xA20C, "SpatialFrequencyResponse"}, +{0xA20E, "FocalPlaneXResolution"}, +{0xA20F, "FocalPlaneYResolution"}, +{0xA210, "FocalPlaneResolutionUnit"}, +{0xA214, "SubjectLocation"}, +{0xA215, "ExposureIndex"}, +{0xA217, "SensingMethod"}, +{0xA300, "FileSource"}, +{0xA301, "Scenetype"}, +{0,"end"} +}; + /* * Foward declarations. move to exif.h if you want to export. */ -- cgit v1.2.1