Module: Exif::Tag

Defined in:
lib/exifparser/makernote/nikon2.rb,
lib/exifparser/tag.rb,
lib/exifparser/makernote/sony.rb,
lib/exifparser/makernote/canon.rb,
lib/exifparser/makernote/nikon.rb,
lib/exifparser/makernote/sigma.rb,
lib/exifparser/makernote/minolta.rb,
lib/exifparser/makernote/olympus.rb,
lib/exifparser/makernote/fujifilm.rb,
lib/exifparser/makernote/nikonflensname.rb

Overview

Tags used in Olympus Makernote

Defined Under Namespace

Modules: Exif, Format, Formatter, GPS, Interoperability, MakerNote, NikonFmount, TIFF Classes: Base, ExifIFDPointer, GPSIFDPointer, InteroperabilityIFDPointer, Unknown

Constant Summary collapse

ExifSpecific =

Hash tables that maps tag ID to the corresponding class.

{
  0x8769 => ExifIFDPointer,
  0x8825 => GPSIFDPointer,
  0xa005 => InteroperabilityIFDPointer
}
TIFFAttributes =
{
  0x0100 => TIFF::ImageWidth,
  0x0101 => TIFF::ImageLength,
  0x0102 => TIFF::BitsPerSample,
  0x0103 => TIFF::Compression,
  0x0106 => TIFF::PhotometricInterpretation,
  0x010E => TIFF::ImageDescription,
  0x010F => TIFF::Make,
  0x0110 => TIFF::Model,
  0x0111 => TIFF::StripOffsets,
  0x0112 => TIFF::Orientation,
  0x0115 => TIFF::SamplesPerPixel,
  0x0116 => TIFF::RowsPerStrip,
  0x0117 => TIFF::StripByteCounts,
  0x011A => TIFF::XResolution,
  0x011B => TIFF::YResolution,
  0x011C => TIFF::PlanarConfiguration,
  0x0128 => TIFF::ResolutionUnit,
  0x012D => TIFF::TransferFunction,
  0x0131 => TIFF::Software,
  0x0132 => TIFF::DateTime,
  0x013B => TIFF::Artist,
  0x013E => TIFF::WhitePoint,
  0x013F => TIFF::PrimaryChromaticities,
  0x0201 => TIFF::JpegInterchangeFormat,
  0x0202 => TIFF::JpegInterchangeFormatLength,
  0x0211 => TIFF::YCbCrCoefficients,
  0x0212 => TIFF::YCbCrSubSampling,
  0x0213 => TIFF::YCbCrPositioning,
  0x0214 => TIFF::ReferenceBlackWhite,
  0x8298 => TIFF::Copyright,
}
IFD0Table =

ExifStandard 2.2, Section 4.6.8-A

TIFFAttributes.update ExifSpecific
IFD1Table =

ExifStandard 2.2, Section 4.6.8-B

IFD0Table.dup
ExifIFDTable =
{
  0x829a => Exif::ExposureTime,
  0x829d => Exif::FNumber,
  0x8822 => Exif::ExposureProgram,
  0x8824 => Exif::SpectralSensitivity,
  0x8827 => Exif::ISOSpeedRatings,
  0x8828 => Exif::OECF,
  0x9000 => Exif::ExifVersion,
  0x9003 => Exif::DateTimeOriginal,
  0x9004 => Exif::DateTimeDigitized,
  0x9101 => Exif::ComponentsConfiguration,
  0x9102 => Exif::CompressedBitsPerPixel,
  0x9201 => Exif::ShutterSpeedValue,
  0x9202 => Exif::ApertureValue,
  0x9203 => Exif::BrightnessValue,
  0x9204 => Exif::ExposureBiasValue,
  0x9205 => Exif::MaxApertureValue,
  0x9206 => Exif::SubjectDistance,
  0x9207 => Exif::MeteringMode,
  0x9208 => Exif::LightSource,
  0x9209 => Exif::Flash,
  0x920a => Exif::FocalLength,
  0x9214 => Exif::SubjectArea,
  0x927c => Exif::MakerNote,
  0x9286 => Exif::UserComment,
  0x9290 => Exif::SubsecTime,
  0x9291 => Exif::SubsecTimeOriginal,
  0x9292 => Exif::SubsecTimeDigitized,
  0xa000 => Exif::FlashPixVersion,
  0xa001 => Exif::ColorSpace,
  0xa002 => Exif::PixelXDimension,
  0xa003 => Exif::PixelYDimension,
  0xa004 => Exif::RelatedSoundFile,
  0xa005 => InteroperabilityIFDPointer,
  0xa20b => Exif::FlashEnergy,
  0xa20c => Exif::SpatialFrequencyResponse,
  0xa20e => Exif::FocalPlaneXResolution,
  0xa20f => Exif::FocalPlaneYResolution,
  0xa210 => Exif::FocalPlaneResolutionUnit,
  0xa214 => Exif::SubjectLocation,
  0xa215 => Exif::ExposureIndex,
  0xa217 => Exif::SensingMethod,
  0xa300 => Exif::FileSource,
  0xa301 => Exif::SceneType,
  0xa302 => Exif::CFAPattern,
  0xa401 => Exif::CustomRendered,
  0xa402 => Exif::ExposureMode,
  0xa403 => Exif::WhiteBalance,
  0xa404 => Exif::DigitalZoomRatio,
  0xa405 => Exif::FocalLengthIn35mmFilm,
  0xa406 => Exif::SceneCaptureType,
  0xa407 => Exif::GainControl,
  0xa408 => Exif::Contrast,
  0xa409 => Exif::Saturation,
  0xa40a => Exif::Sharpness,
  0xa40b => Exif::DeviceSettingDescription,
  0xa40c => Exif::SubjectDistanceRange,
  0xa420 => Exif::ImageUniqueID,
  0xa433 => Exif::LensMake,
  0xa434 => Exif::LensModel
}
SonyIFDTable =
{
  0x0102 => MakerNote::SonyQuality,
  0x0104 => MakerNote::SonyFlashExposureComp,
  0x0105 => MakerNote::SonyTeleconverter,
  0x0112 => MakerNote::SonyWhiteBalanceFineTune,
  0x0114 => MakerNote::SonyCameraSettings,
  0x0115 => MakerNote::SonyWhiteBalance,
  0x0e00 => MakerNote::SonyPrintIM,
  0x1000 => MakerNote::SonyMultiBurstMode,
  0x1001 => MakerNote::SonyMultiBurstImageWidth,
  0x1002 => MakerNote::SonyMultiBurstImageHeight,
  0x1003 => MakerNote::SonyPanorama,
  0x2001 => MakerNote::SonyPreviewImage,
  0x2004 => MakerNote::SonyContrast,
  0x2005 => MakerNote::SonySaturation,
  0x200a => MakerNote::SonyAutoHDR,
  0x3000 => MakerNote::SonyShotInfo,
  0xb000 => MakerNote::SonyFileFormat,
  0xb001 => MakerNote::SonyModelID,
#     0xb020 => MakerNote::SonyColorReproduction,
  0xb021 => MakerNote::SonyColorTemperature,
  0xb022 => MakerNote::SonyColorCompensationFilter,
  0xb023 => MakerNote::SonySceneMode,
  0xb024 => MakerNote::SonyZoneMatching,
  0xb025 => MakerNote::SonyDynamicRangeOptimizer,
  0xb026 => MakerNote::SonyImageStabilization,
  0xb027 => MakerNote::SonyLensID,
  0xb029 => MakerNote::SonyColorMode,
  0xb02b => MakerNote::SonyFullImageSize,
  0xb02c => MakerNote::SonyPreviewImageSize,
  0xb040 => MakerNote::SonyMacro,
  0xb041 => MakerNote::SonyExposureMode,
  0xb042 => MakerNote::SonyFocusMode,
  0xb043 => MakerNote::SonyAFMode,
  0xb044 => MakerNote::SonyAFIlluminator,
  0xb047 => MakerNote::SonyJPEGQuality,
  0xb048 => MakerNote::SonyFlashLevel,
  0xb049 => MakerNote::SonyReleaseMode,
  0xb04a => MakerNote::SonySequenceNumber,
  0xb04b => MakerNote::SonyAntiBlur,
  0xb04e => MakerNote::SonyLongExposureNoiseReduction,
  0xb04f => MakerNote::SonyDynamicRangeOptimizer2,
  0xb052 => MakerNote::SonyIntelligentAuto,
  0xb054 => MakerNote::SonyWhiteBalance2
}
CanonIFDTable =
{
  0x0000 => Unknown,
  0x0001 => MakerNote::Tag0x0001,
  0x0003 => MakerNote::Tag0x0003,
  0x0004 => MakerNote::Tag0x0004,
  0x0006 => MakerNote::ImageType,
  0x0007 => MakerNote::FirmwareVersion,
  0x0008 => MakerNote::ImageNumber,
  0x0009 => MakerNote::OwnerName,
  0x000a => Unknown,
  0x000c => MakerNote::CameraSerialNumber,
  0x000d => Unknown,
  0x000f => MakerNote::CustomFunctions
}
NikonIFDTable =
{
  0x0003 => MakerNote::Quality,
  0x0004 => MakerNote::ColorMode,
  0x0005 => MakerNote::ImageAdjustment,
  0x0006 => MakerNote::CCDSensitivity,
  0x0007 => MakerNote::WhiteBalance,
  0x0008 => MakerNote::Focus,
  0x000a => MakerNote::DigitalZoom,
  0x000b => MakerNote::Converter
}
SigmaIFDTable =
{
#     0x0002 => MakerNote::SigmaSerialNo,
  0x0003 => MakerNote::DriveMode,
  0x0004 => MakerNote::ImageSize,
  0x0005 => MakerNote::AF_Mode,
  0x0006 => MakerNote::AF_Setting,
  0x0007 => MakerNote::White_Balance,
  0x0008 => MakerNote::ExposureMode,
  0x0009 => MakerNote::MeteringMode,
  0x000a => MakerNote::FocalLength,
  0x000b => MakerNote::ColorSpace,
  0x000c => MakerNote::ExposureBias,
  0x000d => MakerNote::Contrast,
  0x000e => MakerNote::Shadow,
  0x000f => MakerNote::HighLight,
  0x0010 => MakerNote::Saturation,
  0x0011 => MakerNote::SharpnessBias,
  0x0012 => MakerNote::X3FillLight,
  0x0014 => MakerNote::ColorControl,
  0x0015 => MakerNote::SettingMode,
  0x0017 => MakerNote::Firmware,
  0x0018 => MakerNote::SigmaSoftware,
  0x0019 => MakerNote::AutoBracket
}
Nikon2IFDTable =
{
  0x0001 => MakerNote::DataVersion,
#     0x0002 => MakerNote::ISOUsed,
  0x0003 => MakerNote::ColorMode,
  0x0004 => MakerNote::ImageQuality,
  0x0005 => MakerNote::Whitebalance,
  0x0006 => MakerNote::ImageSharpening,
  0x0007 => MakerNote::FocusingMode,
  0x0008 => MakerNote::FlashSetting,
  0x0009 => MakerNote::SpeedlightMode,
  0x000d => MakerNote::ProgramShift,
  0x000e => MakerNote::ExposureDifference,
  0x000f => MakerNote::ISOSelection,
  0x0010 => MakerNote::DataDump,
  0x0012 => MakerNote::SpeedlightBias,
  0x001d => MakerNote::NikonCameraSerialNumber,
  0x0022 => MakerNote::ActiveD_Lighting,
  0x0023 => MakerNote::PictureControl,
  0x0080 => MakerNote::ImageAdjustment,
  0x0081 => MakerNote::ToneCompensation,
  0x0082 => MakerNote::Adapter,
  0x0083 => MakerNote::LensType,
  0x0084 => MakerNote::LensSpecification,
  0x0085 => MakerNote::ManualForcusDistance,
  0x0086 => MakerNote::DigitalZoom,
  0x0088 => MakerNote::AFFocusPosition,
  0x008D => MakerNote::CameraColorMode,
  0x008F => MakerNote::SceneMode,
  0x0090 => MakerNote::LightSource,
  0x0095 => MakerNote::LongtimeExposureNR,
  0x0098 => MakerNote::LensParameters,
  0x00a7 => MakerNote::ReleaseCount,
  0x00a9 => MakerNote::ImageOptimization,
  0x00aa => MakerNote::Saturation

}
MinoltaIFDTable =
{
}
OlympusIFDTable =
{
  0x0200 => MakerNote::SpecialMode,
  0x0201 => MakerNote::JpegQual,
  0x0202 => MakerNote::Macro,
  0x0203 => Unknown,
  0x0204 => MakerNote::DigiZoom,
  0x0205 => Unknown,
  0x0206 => Unknown,
  0x0207 => MakerNote::SoftwareRelease,
  0x0208 => MakerNote::PictInfo,
  0x0209 => MakerNote::CameraID,
  0x0f00 => MakerNote::DataDump
}
FujifilmIFDTable =

Tags used in Fujifilm makernote

{
  0x0000 => MakerNote::Version,
  0x1000 => MakerNote::Quality,
  0x1001 => MakerNote::Sharpness,
  0x1002 => MakerNote::White,
  0x1003 => MakerNote::Color,
  0x1004 => MakerNote::Tone,
  0x1010 => MakerNote::FlashMode,
  0x1011 => MakerNote::FlashStrength,
  0x1020 => MakerNote::Macro,
  0x1021 => MakerNote::FocusMode,
  0x1030 => MakerNote::SlowSync,
  0x1031 => MakerNote::PictureMode,
  0x1032 => Unknown,
  0x1100 => MakerNote::Cont_Bracket,
  0x1200 => Unknown,
  0x1300 => MakerNote::BlurWarning,
  0x1301 => MakerNote::FocusWarning,
  0x1302 => MakerNote::AutoExposureWarning
}
GPSIFDTable =
{
  0x0000 => GPS::GPSVersionID,
  0x0001 => GPS::GPSLatitudeRef,
  0x0002 => GPS::GPSLatitude,
  0x0003 => GPS::GPSLongitudeRef,
  0x0004 => GPS::GPSLongitude,
  0x0005 => GPS::GPSAltitudeRef,
  0x0006 => GPS::GPSAltitude,
  0x0007 => GPS::GPSTimeStamp,
  0x0008 => GPS::GPSSatelites,
  0x000a => GPS::GPSMeasureMode,
  0x000b => GPS::GPSDOP,
  0x000c => GPS::GPSSpeedRef,
  0x000d => GPS::GPSSpeed,
  0x000e => GPS::GPSTrackRef,
  0x000f => GPS::GPSTrack,
  0x0010 => GPS::GPSImgDirectionRef,
  0x0011 => GPS::GPSImgDirection,
  0x0012 => GPS::GPSMapDatum,
  0x0013 => GPS::GPSDestLatitudeRef,
  0x0014 => GPS::GPSDestLatitude,
  0x0015 => GPS::GPSDestLongitudeRef,
  0x0016 => GPS::GPSDestLongitude,
  0x0017 => GPS::GPSDestBearingRef,
  0x0018 => GPS::GPSDestBearing,
  0x0019 => GPS::GPSDestDistanceRef,
  0x001A => GPS::GPSDestDistance,
  0x001B => GPS::GPSProcessingMethod,
  0x001C => GPS::GPSAreaInformation,
  0x001D => GPS::GPSDateStamp,
  0x001E => GPS::GPSDifferential
}
InteroperabilityIFDTable =
{
  0x0001 => Interoperability::InteroperabilityIndex,
  0x0002 => Interoperability::InteroperabilityVersion,
  0x1000 => Interoperability::RelatedImageFileFormat,
  0x1001 => Interoperability::RelatedImageWidth,
  0x1002 => Interoperability::RelatedImageLength
}

Class Method Summary collapse

Class Method Details

.find(tagid, table) ⇒ Object



2310
2311
2312
# File 'lib/exifparser/tag.rb', line 2310

def find(tagid, table)
  table[tagid] or ::Exif::Tag::Unknown
end