From 244c17fffd06c1c0911ed8b9644a2ed2b2884597 Mon Sep 17 00:00:00 2001 From: HumanDynamo Date: Thu, 22 Apr 2010 10:16:14 +0000 Subject: [PATCH] implement Flash Mode codec --- src/sonymn.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/sonymn.cpp b/src/sonymn.cpp index fa30d6bd..34b43c2f 100644 --- a/src/sonymn.cpp +++ b/src/sonymn.cpp @@ -439,6 +439,12 @@ namespace Exiv2 { { 16, N_("Sepia") } }; + //! Lookup table to translate Sony camera settings flash mode values to readable labels + extern const TagDetails sonyFlashMode[] = { + { 0, N_("ADI") }, + { 1, N_("TTL") }, + }; + // Sony Camera Settings Tag Info // NOTE: all are for A200, A230, A300, A350, A700, A850 and A900 Sony model excepted // some entries which are only relevant with A700. @@ -491,10 +497,9 @@ namespace Exiv2 { TagInfo(0x0034, "Brightness", N_("Brightness"), N_("Brightness"), sony1CsIfdId, makerTags, unsignedShort, printValue), - TagInfo(0x0035, "FlashMode", N_("FlashMode"), N_("FlashMode"), - sony1CsIfdId, makerTags, unsignedShort, printValue), + sony1CsIfdId, makerTags, unsignedShort, EXV_PRINT_TAG(sonyFlashMode)), // NOTE: A700 only TagInfo(0x0040, "PrioritySetupShutterRelease", N_("Priority Setup Shutter Release"), @@ -605,10 +610,9 @@ namespace Exiv2 { TagInfo(0x0027, "Saturation", N_("Saturation"), N_("Saturation"), sony1Cs2IfdId, makerTags, unsignedShort, printValue), - TagInfo(0x0035, "FlashMode", N_("FlashMode"), N_("FlashMode"), - sony1Cs2IfdId, makerTags, unsignedShort, printValue), + sony1Cs2IfdId, makerTags, unsignedShort, EXV_PRINT_TAG(sonyFlashMode)), TagInfo(0x0060, "ExposureProgram", N_("Exposure Program"), N_("Exposure Program"),