diff --git a/src/sonymn.cpp b/src/sonymn.cpp index 25e750c7..33c16713 100644 --- a/src/sonymn.cpp +++ b/src/sonymn.cpp @@ -46,8 +46,43 @@ EXIV2_RCSID("@(#) $Id$") // class member definitions namespace Exiv2 { + // -- Standard Sony Makernotes tags --------------------------------------------------------------- + + //! Lookup table to translate Sony image quality values to readable labels + extern const TagDetails sonyImageQuality[] = { + { 0, N_("Raw") }, + { 1, N_("Super Fine") }, + { 2, N_("Fine") }, + { 3, N_("Standard") }, + { 4, N_("Economy") }, + { 5, N_("Extra Fine") }, + { 6, N_("Raw + JPEG") }, + { 7, N_("Compressed Raw") }, + { 8, N_("Compressed Raw + JPEG") } + }; + + //! Lookup table to translate Sony teleconverter model values to readable labels + extern const TagDetails sonyTeleconverterModel[] = { + { 0x00, N_("None") }, + { 0x48, N_("Minolta AF 2x APO (D)") }, + { 0x50, N_("Minolta AF 2x APO II") }, + { 0x88, N_("Minolta AF 1.4x APO (D) ") }, + { 0x90, N_("Minolta AF 1.4x APO II") } + }; + // Sony MakerNote Tag Info const TagInfo SonyMakerNote::tagInfo_[] = { + + TagInfo(0x0102, "Quality", N_("Image Quality"), + N_("Image quality"), + sonyIfdId, makerTags, unsignedLong, EXV_PRINT_TAG(sonyImageQuality)), + TagInfo(0x0104, "FlashExposureComp", N_("Flash Exposure Compensation"), + N_("Flash exposure compensation in EV"), + sonyIfdId, makerTags, signedRational, printValue), + TagInfo(0x0105, "Teleconverter", N_("Teleconverter Model"), + N_("Teleconverter Model"), + sonyIfdId, makerTags, unsignedLong, EXV_PRINT_TAG(sonyTeleconverterModel)), + TagInfo(0x2000, "0x2000", "0x2000", N_("Unknown"), sonyIfdId, makerTags, undefined, printValue), diff --git a/src/sonymn.hpp b/src/sonymn.hpp index 1fa98517..f0f601fd 100644 --- a/src/sonymn.hpp +++ b/src/sonymn.hpp @@ -20,10 +20,15 @@ */ /*! @file sonymn.hpp - @brief Basic Sony MakerNote implementation + @brief Sony MakerNote implemented using the following references:
+ Sony Makernote list by Phil Harvey
+Email communication with caulier dot gilles at gmail dot com
+ @version $Rev$ @author Andreas Huggel (ahu) ahuggel@gmx.net + @author Gilles Caulier (cgilles) + caulier dot gilles at gmail dot com @date 18-Apr-05, ahu: created */ #ifndef SONYMN_HPP_ @@ -56,7 +61,6 @@ namespace Exiv2 { static const TagInfo tagInfo_[]; }; // class SonyMakerNote - } // namespace Exiv2 #endif // #ifndef SONYMN_HPP_