// ***************************************************************** -*- C++ -*- /* * Copyright (C) 2004-2010 Andreas Huggel * * This program is part of the Exiv2 distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA. */ /*! @file nikonmn.hpp @brief Nikon makernote tags.
References:
[1] MakerNote EXIF Tag of the Nikon 990 by Max Lyons
[2] Exif file format by TsuruZoh Tachibanaya
[3] "EXIFutils Field Reference Guide"
[3] Nikon Type 3 Makernote Tags Definition of the PHP JPEG Metadata Toolkit by Evan Hunter
[4] ExifTool by Phil Harvey
[5] Email communication with Robert Rottmerhusen
[6] Email communication with Roger Larsson
[7] Decoding raw digital photos in Linux by Dave Coffin
@version $Rev$ @author Andreas Huggel (ahu) ahuggel@gmx.net @author Gilles Caulier (gc) caulier dot gilles at gmail dot com @date 17-May-04, ahu: created
25-May-04, ahu: combined all Nikon formats in one component */ #ifndef NIKONMN_HPP_ #define NIKONMN_HPP_ // ***************************************************************************** // included header files #include "tags.hpp" #include "types.hpp" // + standard includes #include #include #include // ***************************************************************************** // namespace extensions namespace Exiv2 { // ***************************************************************************** // class definitions //! A MakerNote format used by Nikon cameras, such as the E990 and D1. class EXIV2API Nikon1MakerNote { public: //! Return read-only list of built-in Nikon1 tags static const TagInfo* tagList(); //! @name Print functions for Nikon1 %MakerNote tags //@{ //! Print ISO setting static std::ostream& print0x0002(std::ostream& os, const Value& value, const ExifData*); //! Print autofocus mode static std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*); //! Print manual focus distance static std::ostream& print0x0085(std::ostream& os, const Value& value, const ExifData*); //! Print digital zoom setting static std::ostream& print0x0086(std::ostream& os, const Value& value, const ExifData*); //! Print AF focus position static std::ostream& print0x0088(std::ostream& os, const Value& value, const ExifData*); //@} private: //! Tag information static const TagInfo tagInfo_[]; }; // class Nikon1MakerNote /*! @brief A second MakerNote format used by Nikon cameras, including the E700, E800, E900, E900S, E910, E950 */ class EXIV2API Nikon2MakerNote { public: //! Return read-only list of built-in Nikon2 tags static const TagInfo* tagList(); //! @name Print functions for Nikon2 %MakerNote tags //@{ //! Print digital zoom setting static std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData*); //@} private: //! Tag information static const TagInfo tagInfo_[]; }; // class Nikon2MakerNote //! A third MakerNote format used by Nikon cameras, e.g., E5400, SQ, D2H, D70 class EXIV2API Nikon3MakerNote { public: //! Return read-only list of built-in Nikon3 tags static const TagInfo* tagList(); //! Return read-only list of built-in Vibration Reduction tags static const TagInfo* tagListVr(); //! Return read-only list of built-in Picture Control tags static const TagInfo* tagListPc(); //! Return read-only list of built-in World time tags static const TagInfo* tagListWt(); //! Return read-only list of built-in ISO info tags static const TagInfo* tagListIi(); //! Return read-only list of built-in Auto Focus tags static const TagInfo* tagListAf(); //! Return read-only list of built-in Shot Info D80 tags static const TagInfo* tagListSi1(); //! Return read-only list of built-in Shot Info D40 tags static const TagInfo* tagListSi2(); //! Return read-only list of built-in Shot Info D300 (a) tags static const TagInfo* tagListSi3(); //! Return read-only list of built-in Shot Info D300 (b) tags static const TagInfo* tagListSi4(); //! Return read-only list of built-in Shot Info tags static const TagInfo* tagListSi5(); //! Return read-only list of built-in Color Balance 1 tags static const TagInfo* tagListCb1(); //! Return read-only list of built-in Color Balance 2 tags static const TagInfo* tagListCb2(); //! Return read-only list of built-in Color Balance 2a tags static const TagInfo* tagListCb2a(); //! Return read-only list of built-in Color Balance 2b tags static const TagInfo* tagListCb2b(); //! Return read-only list of built-in Color Balance 3 tags static const TagInfo* tagListCb3(); //! Return read-only list of built-in Color Balance 4 tags static const TagInfo* tagListCb4(); //! Return read-only list of built-in Lens Data 1 tags static const TagInfo* tagListLd1(); //! Return read-only list of built-in Lens Data 2 tags static const TagInfo* tagListLd2(); //! Return read-only list of built-in Lens Data 3 tags static const TagInfo* tagListLd3(); //! @name Print functions for Nikon3 %MakerNote tags //@{ //! Print ISO setting static std::ostream& print0x0002(std::ostream& os, const Value& value, const ExifData*); //! Print autofocus mode static std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*); //! Print lens type static std::ostream& print0x0083(std::ostream& os, const Value& value, const ExifData*); //! Print lens information static std::ostream& print0x0084(std::ostream& os, const Value& value, const ExifData*); //! Print manual focus distance static std::ostream& print0x0085(std::ostream& os, const Value& value, const ExifData*); //! Print digital zoom setting static std::ostream& print0x0086(std::ostream& os, const Value& value, const ExifData*); //! Print AF point static std::ostream& print0x0088(std::ostream& os, const Value& value, const ExifData*); //! Print shooting mode static std::ostream& print0x0089(std::ostream& os, const Value& value, const ExifData* metadata); //! Print number of lens stops static std::ostream& print0x008b(std::ostream& os, const Value& value, const ExifData*); //! Print AF Points In Focus static std::ostream& printAfPointsInFocus(std::ostream& os, const Value& value, const ExifData* metadata); //! Print lens name static std::ostream& printLensId(std::ostream& os, const Value& value, const ExifData* metadata, const std::string& group); static std::ostream& printLensId1(std::ostream& os, const Value& value, const ExifData* metadata); static std::ostream& printLensId2(std::ostream& os, const Value& value, const ExifData* metadata); static std::ostream& printLensId3(std::ostream& os, const Value& value, const ExifData* metadata); //! Print focus distance static std::ostream& printFocusDistance(std::ostream& os, const Value& value, const ExifData*); //! Print sensor pixel size static std::ostream& print0x009a(std::ostream& os, const Value& value, const ExifData*); //! Print retouch history static std::ostream& print0x009e(std::ostream& os, const Value& value, const ExifData*); //! Print Exif.NikonIi.ISO(2) static std::ostream& printIiIso(std::ostream& os, const Value& value, const ExifData*); //@} private: //! Tag information static const TagInfo tagInfo_[]; //! Vibration Reduction tag information static const TagInfo tagInfoVr_[]; //! Picture Control tag information static const TagInfo tagInfoPc_[]; //! World Time tag information static const TagInfo tagInfoWt_[]; //! ISO info tag information static const TagInfo tagInfoIi_[]; //! Auto Focus tag information static const TagInfo tagInfoAf_[]; //! Shot Info D80 tag information static const TagInfo tagInfoSi1_[]; //! Shot Info D40 tag information static const TagInfo tagInfoSi2_[]; //! Shot Info D300 (a) tag information static const TagInfo tagInfoSi3_[]; //! Shot Info D300 (b) tag information static const TagInfo tagInfoSi4_[]; //! Shot Info tag information static const TagInfo tagInfoSi5_[]; //! Color Balance 1 tag information static const TagInfo tagInfoCb1_[]; //! Color Balance 2 tag information static const TagInfo tagInfoCb2_[]; //! Color Balance 2a tag information static const TagInfo tagInfoCb2a_[]; //! Color Balance 2b tag information static const TagInfo tagInfoCb2b_[]; //! Color Balance 3 tag information static const TagInfo tagInfoCb3_[]; //! Color Balance 4 tag information static const TagInfo tagInfoCb4_[]; //! Lens Data 1 tag information static const TagInfo tagInfoLd1_[]; //! Lens Data 2 tag information static const TagInfo tagInfoLd2_[]; //! Lens Data 3 tag information static const TagInfo tagInfoLd3_[]; }; // class Nikon3MakerNote } // namespace Exiv2 #endif // #ifndef NIKONMN_HPP_