implement AF Area Mode codec

This commit is contained in:
HumanDynamo
2010-04-22 05:49:11 +00:00
parent 3f2aa49e6e
commit a7da2b0080
3 changed files with 24 additions and 6 deletions
+15
View File
@@ -363,4 +363,19 @@ namespace Exiv2 {
{
return EXV_PRINT_TAG(minoltaSonyBoolFunction)(os, value, metadata);
}
// ----------------------------------------------------------------------------------------------------
//! Lookup table to translate Sony camera settings focus mode values to readable labels
extern const TagDetails minoltaSonyAFAreaMode[] = {
{ 0, N_("Wide") },
{ 1, N_("Local") },
{ 2, N_("Spot") }
};
std::ostream& printMinoltaSonyAFAreaMode(std::ostream& os, const Value& value, const ExifData* metadata)
{
return EXV_PRINT_TAG(minoltaSonyAFAreaMode)(os, value, metadata);
}
} // namespace Exiv2
+6 -3
View File
@@ -40,15 +40,18 @@
// namespace extensions
namespace Exiv2 {
//! PrintMinolta/Sony Lens id values to readable labels.
//! Print Minolta/Sony Lens id values to readable labels.
EXIV2API std::ostream& printMinoltaSonyLensID(std::ostream&, const Value&, const ExifData*);
//! PrintMinolta/Sony Color Mode values to readable labels.
//! Print Minolta/Sony Color Mode values to readable labels.
EXIV2API std::ostream& printMinoltaSonyColorMode(std::ostream&, const Value&, const ExifData*);
//! PrintMinolta/Sony bool function values to readable labels.
//! Print Minolta/Sony bool function values to readable labels.
EXIV2API std::ostream& printMinoltaSonyBoolValue(std::ostream&, const Value&, const ExifData*);
//! Print Minolta/Sony AF Area Mode values to readable labels.
EXIV2API std::ostream& printMinoltaSonyAFAreaMode(std::ostream&, const Value&, const ExifData*);
// TODO: Added shared methods here.
} // namespace Exiv2
+3 -3
View File
@@ -385,7 +385,7 @@ namespace Exiv2 {
{ 2, N_("Rotate 270 CW") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings focus mode values to readable labels
//! Lookup table to translate Sony camera settings focus mode values to readable labels
extern const TagDetails sonyFocusMode[] = {
{ 0, N_("Manual") },
{ 1, "AF-S" },
@@ -412,7 +412,7 @@ namespace Exiv2 {
TagInfo(0x0017, "AFAreaMode", N_("AF Area Mode"),
N_("AF Area Mode"),
sony1CsIfdId, makerTags, unsignedShort, printValue),
sony1CsIfdId, makerTags, unsignedShort, printMinoltaSonyAFAreaMode),
TagInfo(0x0018, "LocalAFAreaPoint", N_("Local AF Area Point"),
N_("Local AF Area Point"),
@@ -540,7 +540,7 @@ namespace Exiv2 {
TagInfo(0x0017, "AFAreaMode", N_("AF Area Mode"),
N_("AF Area Mode"),
sony1Cs2IfdId, makerTags, unsignedShort, printValue),
sony1Cs2IfdId, makerTags, unsignedShort, printMinoltaSonyAFAreaMode),
TagInfo(0x0018, "LocalAFAreaPoint", N_("Local AF Area Point"),
N_("Local AF Area Point"),