factoring zone matching

This commit is contained in:
HumanDynamo
2010-06-01 12:30:18 +00:00
parent b7d54e2e85
commit 278c5d3ec4
3 changed files with 16 additions and 16 deletions
+12 -8
View File
@@ -77,13 +77,6 @@ namespace Exiv2 {
{ 5, N_("Extra Fine") }
};
//! Lookup table to translate Minolta zone matching values
extern const TagDetails minoltaZoneMatching[] = {
{ 0, N_("ISO Setting Used") },
{ 1, N_("High Key") },
{ 2, N_("Low Key") }
};
//! Lookup table to translate Minolta image stabilization values
extern const TagDetails minoltaImageStabilization[] = {
{ 1, N_("Off") },
@@ -157,7 +150,7 @@ namespace Exiv2 {
minoltaIfdId, makerTags, unsignedLong, printMinoltaSonyBoolValue),
TagInfo(0x010a, "ZoneMatching", N_("Zone Matching"),
N_("Zone matching"),
minoltaIfdId, makerTags, unsignedLong, EXV_PRINT_TAG(minoltaZoneMatching)),
minoltaIfdId, makerTags, unsignedLong, printMinoltaSonyZoneMatching),
TagInfo(0x010b, "ColorTemperature", N_("Color Temperature"),
N_("Color temperature"),
minoltaIfdId, makerTags, unsignedLong, printValue),
@@ -2101,4 +2094,15 @@ namespace Exiv2 {
return EXV_PRINT_TAG(minoltaSonyWhiteBalanceStd)(os, value, metadata);
}
//! Lookup table to translate Sony/Minolta zone matching values to readable labels
extern const TagDetails minoltaSonyZoneMatching[] = {
{ 0, N_("ISO Setting Used") },
{ 1, N_("High Key") },
{ 2, N_("Low Key") }
};
std::ostream& printMinoltaSonyZoneMatching(std::ostream& os, const Value& value, const ExifData* metadata)
{
return EXV_PRINT_TAG(minoltaSonyZoneMatching)(os, value, metadata);
}
} // namespace Exiv2
+3
View File
@@ -148,6 +148,9 @@ namespace Exiv2 {
//! Print Minolta/Sony White Balance Std values to readable labels.
EXIV2API std::ostream& printMinoltaSonyWhiteBalanceStd(std::ostream&, const Value&, const ExifData*);
//! Print Minolta/Sony ZoneMatching values to readable labels.
EXIV2API std::ostream& printMinoltaSonyZoneMatching(std::ostream&, const Value&, const ExifData*);
// TODO: Added shared methods here.
} // namespace Exiv2
+1 -8
View File
@@ -80,13 +80,6 @@ namespace Exiv2 {
{ 279, "NEX-3" }
};
//! Lookup table to translate Sony zone matching values to readable labels
extern const TagDetails sonyZoneMatching[] = {
{ 0, N_("ISO Setting Used") },
{ 1, N_("High Key") },
{ 2, N_("Low Key") }
};
//! Lookup table to translate Sony dynamic range optimizer values to readable labels
extern const TagDetails print0xb025[] = {
{ 0, N_("Off") },
@@ -370,7 +363,7 @@ namespace Exiv2 {
sony1IfdId, makerTags, unsignedLong, printMinoltaSonySceneMode),
TagInfo(0xB024, "ZoneMatching", N_("Zone Matching"),
N_("Zone Matching"),
sony1IfdId, makerTags, unsignedLong, EXV_PRINT_TAG(sonyZoneMatching)),
sony1IfdId, makerTags, unsignedLong, printMinoltaSonyZoneMatching),
TagInfo(0xB025, "DynamicRangeOptimizer", N_("Dynamic Range Optimizer"),
N_("Dynamic Range Optimizer"),
sony1IfdId, makerTags, unsignedLong, EXV_PRINT_TAG(print0xb025)),