Exiv2
sonymn_int.hpp
Go to the documentation of this file.
1 // ***************************************************************** -*- C++ -*-
2 /*
3  * Copyright (C) 2004-2018 Exiv2 authors
4  * This program is part of the Exiv2 distribution.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
19  */
32 #ifndef SONYMN_INT_HPP_
33 #define SONYMN_INT_HPP_
34 
35 // *****************************************************************************
36 // included header files
37 #include "tags.hpp"
38 #include "types.hpp"
39 #include "tiffcomposite_int.hpp"
40 
41 // + standard includes
42 #include <string>
43 #include <iosfwd>
44 
45 // *****************************************************************************
46 // namespace extensions
47 namespace Exiv2 {
48  namespace Internal {
49 
50 // *****************************************************************************
51 // class definitions
52 
54  class SonyMakerNote {
55  public:
57  static const TagInfo* tagList();
59  static const TagInfo* tagListCs();
61  static const TagInfo* tagListCs2();
63  static const TagInfo* tagListFp();
64 
66 
67  static std::ostream& print0xb000(std::ostream&, const Value&, const ExifData*);
70  static std::ostream& printImageSize(std::ostream&, const Value&, const ExifData*);
71 
72  private:
74  static const TagInfo tagInfo_[];
75  static const TagInfo tagInfoCs_[];
76  static const TagInfo tagInfoCs2_[];
77  static const TagInfo tagInfoFp_[];
78 
79  }; // class SonyMakerNote
80 
81  DataBuf sonyTagDecipher(uint16_t, const byte*, uint32_t, TiffComponent* const);
82  DataBuf sonyTagEncipher(uint16_t, const byte*, uint32_t, TiffComponent* const);
83 
84 }} // namespace Internal, Exiv2
85 
86 #endif // #ifndef SONYMN_INT_HPP_
Exiv2::Internal::sonyMeteringMode
const TagDetails sonyMeteringMode[]
Lookup table to translate Sony camera settings metering mode values to readable labels.
Exiv2::Internal::sonySequenceNumber
const TagDetails sonySequenceNumber[]
Lookup table to translate Sony sequence number values to readable labels.
Exiv2::Internal::printMinoltaSonyRotation
std::ostream & printMinoltaSonyRotation(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Rotation values to readable labels.
Definition: minoltamn_int.cpp:2391
Exiv2::Internal::TagDetails
Helper structure for lookup tables for translations of numeric tag values to human readable labels.
Definition: tags_int.hpp:188
Exiv2::Internal::printMinoltaSonyBoolValue
std::ostream & printMinoltaSonyBoolValue(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony bool function values to readable labels.
Definition: minoltamn_int.cpp:2281
Exiv2::Internal::sonyHDRMode
const TagDetails sonyHDRMode[]
Lookup table to translate Sony Auto HDR values to readable labels.
Exiv2::Internal::printMinoltaSonyLensID
std::ostream & printMinoltaSonyLensID(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Lens id values to readable labels.
Definition: minoltamn_int.cpp:2223
Exiv2::Internal::sonyCSFocusMode
const TagDetails sonyCSFocusMode[]
Lookup table to translate Sony camera settings focus mode values to readable labels.
Exiv2::Internal::SonyMakerNote::tagList
static const TagInfo * tagList()
Return read-only list of built-in Sony tags.
Definition: sonymn_int.cpp:496
Exiv2::Internal::sonyImageStyle
const TagDetails sonyImageStyle[]
Lookup table to translate Sony camera settings image style values to readable labels.
Exiv2::Internal::printMinoltaSonyQualityCs
std::ostream & printMinoltaSonyQualityCs(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Quality values to readable labels.
Definition: minoltamn_int.cpp:2377
Exiv2::Internal::sonyFocusMode
const TagDetails sonyFocusMode[]
Lookup table to translate Sony AF mode values to readable labels.
Exiv2::Internal::printMinoltaSonyImageQuality
std::ostream & printMinoltaSonyImageQuality(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Image Quality values to readable labels.
Definition: minoltamn_int.cpp:2434
Exiv2::Value
Common interface for all types of values used with metadata.
Definition: value.hpp:60
Exiv2::Internal::printMinoltaSonyColorMode
std::ostream & printMinoltaSonyColorMode(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Color Mode values to readable labels.
Definition: minoltamn_int.cpp:2268
Exiv2::Internal::sonyAFIlluminatorCS
const TagDetails sonyAFIlluminatorCS[]
Lookup table to translate Sony AF illuminator values to readable labels.
Exiv2::Internal::sonyAntiBlur
const TagDetails sonyAntiBlur[]
Lookup table to translate Sony anti-blur values to readable labels.
Exiv2::Internal::sonyJPEGQuality
const TagDetails sonyJPEGQuality[]
Lookup table to translate Sony JPEG Quality values to readable labels.
types.hpp
Type definitions for Exiv2 and related functionality.
Exiv2::undefined
@ undefined
Exif UNDEFINED type, an 8-bit byte that may contain anything.
Definition: types.hpp:137
minoltamn_int.hpp
Minolta MakerNote implemented using the following references: Minolta Makernote Format Specification...
Exiv2::Internal::printMinoltaSonyZoneMatching
std::ostream & printMinoltaSonyZoneMatching(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony ZoneMatching values to readable labels.
Definition: minoltamn_int.cpp:2486
Exiv2::signedShort
@ signedShort
Exif SSHORT type, a 16-bit (2-byte) signed (twos-complement) integer.
Definition: types.hpp:138
Exiv2::asciiString
@ asciiString
Exif ASCII type, 8-bit byte.
Definition: types.hpp:132
Exiv2::Internal::TiffComponent
Interface class for components of a TIFF directory hierarchy (Composite pattern). Both TIFF directori...
Definition: tiffcomposite_int.hpp:174
Exiv2::Value::count
virtual long count() const =0
Return the number of components of the value.
Exiv2::Internal::sonyDriveModeStd
const TagDetails sonyDriveModeStd[]
Lookup table to translate Sony camera settings drive mode values to readable labels.
Exiv2::unsignedLong
@ unsignedLong
Exif LONG type, 32-bit (4-byte) unsigned integer.
Definition: types.hpp:134
Exiv2::Internal::sonyFlashMode
const TagDetails sonyFlashMode[]
Lookup table to translate Sony camera settings flash mode values to readable labels.
Exiv2::Internal::sonyModelId
const TagDetails sonyModelId[]
Lookup table to translate Sony model ID values to readable labels.
Exiv2::Internal::printMinoltaSonyPrioritySetupShutterRelease
std::ostream & printMinoltaSonyPrioritySetupShutterRelease(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony priority setup shutter release values to readable labels.
Definition: minoltamn_int.cpp:2359
Exiv2::Internal::SonyMakerNote
MakerNote for Sony cameras.
Definition: sonymn_int.hpp:54
Exiv2::Internal::printMinoltaSonySceneMode
std::ostream & printMinoltaSonySceneMode(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Scene Mode values to readable labels.
Definition: minoltamn_int.cpp:2414
Exiv2::Internal::print0xb04f
const TagDetails print0xb04f[]
Lookup table to translate Sony dynamic range optimizer values to readable labels.
Exiv2::Internal::sonyExposureMode
const TagDetails sonyExposureMode[]
Lookup table to translate Sony exposure mode values to readable labels.
EXV_PRINT_TAG
#define EXV_PRINT_TAG(array)
Shortcut for the printTag template which requires typing the array name only once.
Definition: tags_int.hpp:241
Exiv2::Internal::SonyMakerNote::print0xb000
static std::ostream & print0xb000(std::ostream &, const Value &, const ExifData *)
Print Sony Camera Model.
Definition: sonymn_int.cpp:297
Exiv2::Internal::sonyWhiteBalance
const TagDetails sonyWhiteBalance[]
Lookup table to translate Sony WB values to readable labels.
Exiv2::Internal::sonyFlashLevel
const TagDetails sonyFlashLevel[]
Lookup table to translate Sony flash level values to readable labels.
Exiv2::Internal::SonyMakerNote::tagListCs2
static const TagInfo * tagListCs2()
Return read-only list of built-in Sony Standard Camera Settings version 2 tags.
Definition: sonymn_int.cpp:794
Exiv2::DataBuf
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:204
Exiv2::unsignedByte
@ unsignedByte
Exif BYTE type, 8-bit unsigned integer.
Definition: types.hpp:131
Exiv2::Internal::printValue
std::ostream & printValue(std::ostream &os, const Value &value, const ExifData *)
Default print function, using the Value output operator.
Definition: tags_int.cpp:2162
Exiv2::signedByte
@ signedByte
Exif SBYTE type, an 8-bit signed (twos-complement) integer.
Definition: types.hpp:136
Exiv2::Value::toString
std::string toString() const
Return the value as a string. Implemented in terms of write(std::ostream& os) const of the concrete c...
Definition: value.cpp:175
Exiv2::Internal::print0x9204
std::ostream & print0x9204(std::ostream &os, const Value &value, const ExifData *)
Print the exposure bias value.
Definition: tags_int.cpp:2518
Exiv2::Internal::sonyAFMode
const TagDetails sonyAFMode[]
Lookup table to translate Sony AF mode values to readable labels.
Exiv2::Internal::sonyImageSize
const TagDetails sonyImageSize[]
Lookup table to translate Sony camera settings image size values to readable labels.
Exiv2::unsignedShort
@ unsignedShort
Exif SHORT type, 16-bit (2-byte) unsigned integer.
Definition: types.hpp:133
Exiv2
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
value.hpp
Value interface and concrete subclasses.
Exiv2::signedLong
@ signedLong
Exif SLONG type, a 32-bit (4-byte) signed (twos-complement) integer.
Definition: types.hpp:139
Exiv2::Internal::sonyExposureLevelIncrements
const TagDetails sonyExposureLevelIncrements[]
Lookup table to translate Sony exposure level increments values to readable labels.
Exiv2::Internal::sonyCreativeStyle
const TagDetails sonyCreativeStyle[]
Lookup table to translate Sony camera settings creative style values to readable labels.
Exiv2::signedRational
@ signedRational
Exif SRATIONAL type, two SLONGs: numerator and denumerator of a fraction.
Definition: types.hpp:140
Exiv2::Internal::sonyReleaseMode
const TagDetails sonyReleaseMode[]
Lookup table to translate Sony release mode values to readable labels.
Exiv2::TagInfo
Tag information.
Definition: tags.hpp:82
Exiv2::Internal::printMinoltaSonyLocalAFAreaPoint
std::ostream & printMinoltaSonyLocalAFAreaPoint(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Local AF Area Point values to readable labels.
Definition: minoltamn_int.cpp:2330
Exiv2::Internal::sonyAFIlluminator
const TagDetails sonyAFIlluminator[]
Lookup table to translate Sony AF illuminator values to readable labels.
Exiv2::Internal::print0xb025
const TagDetails print0xb025[]
Lookup table to translate Sony dynamic range optimizer values to readable labels.
Exiv2::Internal::SonyMakerNote::printImageSize
static std::ostream & printImageSize(std::ostream &, const Value &, const ExifData *)
Print Full and Preview Image size.
Definition: sonymn_int.cpp:320
Exiv2::Internal::printMinoltaSonyTeleconverterModel
std::ostream & printMinoltaSonyTeleconverterModel(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony Teleconverter Model values to readable labels.
Definition: minoltamn_int.cpp:2454
sonymn_int.hpp
Sony MakerNote implemented using the following references: Sony Makernote list by Phil Harvey Email...
Exiv2::Internal::SonyMakerNote::tagListCs
static const TagInfo * tagListCs()
Return read-only list of built-in Sony Standard Camera Settings tags.
Definition: sonymn_int.cpp:730
Exiv2::Internal::sonyLongExposureNoiseReduction
const TagDetails sonyLongExposureNoiseReduction[]
Lookup table to translate Sony long exposure noise reduction values to readable labels.
Exiv2::Internal::printMinoltaSonyDynamicRangeOptimizerMode
std::ostream & printMinoltaSonyDynamicRangeOptimizerMode(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony dynamic range optimizer mode values to readable labels.
Definition: minoltamn_int.cpp:2346
tags_int.hpp
Internal Exif tag and type information.
Exiv2::Internal::printMinoltaSonyBoolInverseValue
std::ostream & printMinoltaSonyBoolInverseValue(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony bool inverse function values to readable labels.
Definition: minoltamn_int.cpp:2294
tags.hpp
Exif tag and type information.
Exiv2::Internal::sonyMacroMode
const TagDetails sonyMacroMode[]
Lookup table to translate Sony macro mode values to readable labels.
Exiv2::string
@ string
IPTC string type.
Definition: types.hpp:147
Exiv2::Internal::sonyIntelligentAuto
const TagDetails sonyIntelligentAuto[]
Lookup table to translate Sony Intelligent Auto values to readable labels.
Exiv2::Internal::SonyMakerNote::tagListFp
static const TagInfo * tagListFp()
Return read-only list of built-in Sony FocusPosition tags.
Definition: sonymn_int.cpp:809
Exiv2::Internal::printMinoltaSonyAFAreaMode
std::ostream & printMinoltaSonyAFAreaMode(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony AF Area Mode values to readable labels.
Definition: minoltamn_int.cpp:2308
Exiv2::Internal::printMinoltaSonyWhiteBalanceStd
std::ostream & printMinoltaSonyWhiteBalanceStd(std::ostream &os, const Value &value, const ExifData *metadata)
Print Minolta/Sony White Balance Std values to readable labels.
Definition: minoltamn_int.cpp:2474
Exiv2::Internal::sonyExposureProgram
const TagDetails sonyExposureProgram[]
Lookup table to translate Sony camera settings exposure program values to readable labels.
tiffcomposite_int.hpp
Internal classes used in a TIFF composite structure.
Exiv2::Internal::sonyAspectRatio
const TagDetails sonyAspectRatio[]
Lookup table to translate Sony aspect ratio values to readable labels.
Exiv2::ExifData
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434