branching Sony A100 makenotes

This commit is contained in:
HumanDynamo
2010-04-23 13:58:33 +00:00
parent 2a437e0a17
commit b1cde710cc
5 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ namespace Exiv2 {
const uint16_t sony1cs2 = 332; //!< Sony Camera Settings 2 (in Sony1 makernote)
const uint16_t sony1mcso = 333; //!< Minolta (old) Camera Settings (in Sony1 makernote)
const uint16_t sony1mcsn = 334; //!< Minolta (new) Camera Settings (in Sony1 makernote)
const uint16_t sony1mcs5 = 335; //!< Minolta D5 Camera Settings (in Sony1 makernote)
const uint16_t sony1mcsa100=335;//!< Sony A100 Camera Settings (in Sony1 makernote)
const uint16_t sony1mcs7 = 336; //!< Minolta D7 Camera Settings (in Sony1 makernote)
const uint16_t sony2cs = 337; //!< Sony Camera Settings (in Sony2 makernote)
const uint16_t sony2cs2 = 338; //!< Sony Camera Settings 2 (in Sony2 makernote)
+1 -2
View File
@@ -175,11 +175,10 @@ namespace Exiv2 {
{ sonyMltIfdId, "Makernote", "SonyMinolta", MinoltaMakerNote::tagList },
{ sony1CsIfdId, "Makernote", "Sony1Cs", SonyMakerNote::tagListCs },
{ sony1Cs2IfdId, "Makernote", "Sony1Cs2", SonyMakerNote::tagListCs2 },
{ sony1MltCs5DIfdId, "Makernote", "Sony1MltCs5D", MinoltaMakerNote::tagListCs5D },
{ sony1MltCs7DIfdId, "Makernote", "Sony1MltCs7D", MinoltaMakerNote::tagListCs7D },
{ sony1MltCsOldIfdId,"Makernote", "Sony1MltCsOld",MinoltaMakerNote::tagListCsStd },
{ sony1MltCsNewIfdId,"Makernote", "Sony1MltCsNew",MinoltaMakerNote::tagListCsStd },
{ sony1MltCsA100IfdId,"Makernote", "Sony1MltCsA100",MinoltaMakerNote::tagListCsA100},
{ sony1MltCsA100IfdId,"Makernote","Sony1MltCsA100",MinoltaMakerNote::tagListCsA100},
{ sony2CsIfdId, "Makernote", "Sony2Cs", SonyMakerNote::tagListCs },
{ sony2Cs2IfdId, "Makernote", "Sony2Cs2", SonyMakerNote::tagListCs2 },
{ lastIfdId, "(Last IFD info)", "(Last IFD item)", 0 }
+2 -2
View File
@@ -163,10 +163,10 @@ namespace Exiv2 {
{ 332, "Sony1Cs2" },
{ 333, "Sony1MltCsOld"},
{ 334, "Sony1MltCsNew"},
{ 335, "Sony1MltCs5D" },
{ 335, "Sony1MltCsA100" },
{ 336, "Sony1MltCs7D" },
{ 337, "Sony2Cs" },
{ 338, "Sony2Cs2" },
{ 338, "Sony2Cs2" }
};
bool TiffGroupInfo::operator==(const uint16_t& group) const
+12 -7
View File
@@ -898,9 +898,9 @@ namespace Exiv2 {
{ 0, ttUnsignedShort, 1 }
};
//! Sony Minolta 5D Camera Settings binary array - configuration
extern const ArrayCfg sony1MCs5Cfg = {
Group::sony1mcs5, // Group for the elements
//! Sony Minolta A100 Camera Settings binary array - configuration
extern const ArrayCfg sony1MCsA100Cfg = {
Group::sony1mcsa100, // Group for the elements
bigEndian, // Big endian
ttUndefined, // Type for array entry and size element
notEncrypted, // Not encrypted
@@ -909,6 +909,12 @@ namespace Exiv2 {
false, // Don't concatenate gaps
{ 0, ttUnsignedShort, 1 }
};
//! Sony Minolta A100 Camera Settings binary array - definition
extern const ArrayDef sony1MCsA100Def[] = {
{ 112, ttSignedShort, 1 }, // Exif.Sony1MltCsA100.WhiteBalanceFineTune
{ 116, ttSignedShort, 1 }, // Exif.Sony1MltCsA100.ColorCompensationFilter
{ 190, ttSignedShort, 1 } // Exif.Sony1MltCsA100.ColorCompensationFilter2
};
/*
This table lists for each group in a tree, its parent group and tag.
@@ -999,7 +1005,7 @@ namespace Exiv2 {
{ Tag::root, Group::sony1mcso, Group::sonymltmn, 0x0001 },
{ Tag::root, Group::sony1mcsn, Group::sonymltmn, 0x0003 },
{ Tag::root, Group::sony1mcs7, Group::sonymltmn, 0x0004 },
{ Tag::root, Group::sony1mcs5, Group::sonymltmn, 0x0114 },
{ Tag::root, Group::sony1mcsa100, Group::sonymltmn, 0x0114 },
{ Tag::root, Group::sony2mn, Group::exif, 0x927c },
{ Tag::root, Group::sony2cs, Group::sony2mn, 0x0114 },
{ Tag::root, Group::sony2cs2, Group::sony2mn, 0x0114 },
@@ -1383,8 +1389,7 @@ namespace Exiv2 {
{ 0x0004, Group::sonymltmn, EXV_BINARY_ARRAY(sony1MCs7Cfg, minoCs7Def)}, // minoCs7Def [sic]
{ 0x0088, Group::sonymltmn, newTiffThumbData<0x0089, Group::sonymltmn>},
{ 0x0089, Group::sonymltmn, newTiffThumbSize<0x0088, Group::sonymltmn>},
{ 0x0114, Group::sonymltmn, EXV_BINARY_ARRAY(sony1MCs5Cfg, minoCs5Def)}, // minoCs5Def [sic]
// { 0x0114, Group::sonymltmn, EXV_BINARY_ARRAY(sony1MCs5Cfg, minoCs5Def)}, // A100 CS
{ 0x0114, Group::sonymltmn, EXV_BINARY_ARRAY(sony1MCsA100Cfg, sony1MCsA100Def)},
{ Tag::next, Group::sonymltmn, newTiffDirectory<Group::ignr> },
{ Tag::all, Group::sonymltmn, newTiffEntry },
@@ -1392,7 +1397,7 @@ namespace Exiv2 {
{ Tag::all, Group::sony1mcso, newTiffBinaryElement },
{ Tag::all, Group::sony1mcsn, newTiffBinaryElement },
{ Tag::all, Group::sony1mcs7, newTiffBinaryElement },
{ Tag::all, Group::sony1mcs5, newTiffBinaryElement },
{ Tag::all, Group::sony1mcsa100,newTiffBinaryElement },
// Minolta makernote
{ 0x0001, Group::minoltamn, EXV_SIMPLE_BINARY_ARRAY(minoCsoCfg) },
-1
View File
@@ -230,7 +230,6 @@ namespace Exiv2 {
sony1Cs2IfdId,
sony2CsIfdId,
sony2Cs2IfdId,
sony1MltCs5DIfdId,
sony1MltCs7DIfdId,
sony1MltCsOldIfdId,
sony1MltCsNewIfdId,