// ***************************************************************** -*- 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 sonymn.hpp @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_ #define SONYMN_HPP_ // ***************************************************************************** // included header files #include "tags.hpp" #include "types.hpp" // + standard includes #include #include // ***************************************************************************** // namespace extensions namespace Exiv2 { // ***************************************************************************** // class definitions //! MakerNote for Sony cameras class EXIV2API SonyMakerNote { public: //! Return read-only list of built-in Sony tags static const TagInfo* tagList(); //! Return read-only list of built-in Sony Standard Camera Settings tags static const TagInfo* tagListCs(); //! Return read-only list of built-in Sony Standard Camera Settings version 2 tags static const TagInfo* tagListCs2(); //! Return read-only list of built-in Sony SR2 private tags (found in a sub-IFD of Exif.Image.DNGPrivateData) static const TagInfo* tagListSr2(); //! Return read-only list of built-in Sony SR2 sub-IFD tags static const TagInfo* tagListSr2SubIfd(); //! Return read-only list of built-in Sony SR2 data-IFD tags static const TagInfo* tagListSr2Data(); //! Return read-only list of built-in Sony IDC tags static const TagInfo* tagListIdc(); //! @name Print functions for Sony %MakerNote tags //@{ //! Print Sony Camera Model static std::ostream& print0xb000(std::ostream&, const Value&, const ExifData*); //! Print Full and Preview Image size static std::ostream& printImageSize(std::ostream&, const Value&, const ExifData*); private: //! Tag information static const TagInfo tagInfo_[]; static const TagInfo tagInfoCs_[]; static const TagInfo tagInfoCs2_[]; static const TagInfo tagInfoSr2_[]; static const TagInfo tagInfoSr2SubIfd_[]; static const TagInfo tagInfoSr2Data_[]; static const TagInfo tagInfoIdc_[]; }; // class SonyMakerNote } // namespace Exiv2 #endif // #ifndef SONYMN_HPP_