// ***************************************************************** -*- C++ -*- /* * Copyright (C) 2004-2008 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 kdemail dot net @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(); //! @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 number of lens data static std::ostream& print0x0098(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*); //@} private: //! Tag information static const TagInfo tagInfo_[]; }; // class Nikon3MakerNote } // namespace Exiv2 #endif // #ifndef NIKONMN_HPP_