You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exiv2/src/sonymn_int.hpp

131 lines
7.1 KiB
C++

// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef SONYMN_INT_HPP_
#define SONYMN_INT_HPP_
// *****************************************************************************
// included header files
#include "tiffcomposite_int.hpp"
// *****************************************************************************
// namespace extensions
namespace Exiv2::Internal {
// *****************************************************************************
// class definitions
//! MakerNote for Sony cameras
class 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 FocusPosition tags
static const TagInfo* tagListFp();
//! Return read-only list of built-in Sony Misc1 tags (Tag 9403)
static const TagInfo* tagListSonyMisc1();
//! Return read-only list of built-in Sony Misc2b tags (Tag 9404)
static const TagInfo* tagListSonyMisc2b();
//! Return read-only list of built-in Sony Misc3c tags (Tag 9400)
static const TagInfo* tagListSonyMisc3c();
//! Return read-only list of built-in Sony SInfo1 tags (Tag 3000)
static const TagInfo* tagListSonySInfo1();
//! Return read-only list of built-in Sony 2010e tags (Tag 2010)
static const TagInfo* tagList2010e();
//! @name Print functions for Sony %MakerNote tags
//@{
Update Sony(1|2) tags (#2323) * Update Sony(1|2) group (minor Minolta changes) Transcribe all tags (except for `LensID`) from main ExifTool Sony group into Exiv2. Changes include: - Rename `ColorReproduction` -> `CreativeStyle` and `LongExposureNoiseReduction` -> `FocusMode3` to reflect use. - Rename `0x*` tagnames to equivalent ExifTool tags (e.g., `0x2006` -> `Sharpness`). - Remove tag entries that are Groups (e.g., `ShotInfo`). - Separate some common Sony/Minolta data as the camera types use different values (e.g., `Quality`) - Additional `exiv2-Sony*.exv` test files come from ExifTool Sony samples (https://exiftool.org/Sony.tar.gz). ExifTool Sony tags sources: https://www.exiftool.org/TagNames/Sony.html https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm * Improve coverage of `Sony(1|2)` group * Fix clang compilation on macOS * Fix github-code-scanning warnings * Fix minor `Exif.Sony(1|2)` problems * Fix tests and update `Sony(1|2)` group coverage * Fix testing * Minor fixes and regenerate Regression data * Update Sony tags with `getModel()` Make finding the Sony model more resilient by also using `SonyModelID`. * Fix `Exif.Sony(1|2).AFPointsUsed` type * Improve `Exif.Sony(1|2).*` coverage * Fix types in Sony func `getFocusMode()` * Update Regression tests for `Sony(1|2)` * Minor fixes to `Sony(1|2)` tags * Update `Sony(1|2)` tag coverage * Improve `Sony(1|2)` tag coverage * Update easyaccess with `Exif.Sony(1|2)` tags * Update `SonyModelID` array comment * Add Sony `LensSpec` tag to easyaccess * Update `Sony(1|2)` label/descriptions * Update `int` to `size_t` (credit:@kevinbackhouse) * Fix Windows build warning in `src/tags_int.hpp`
3 years ago
//! Print Sony white balance fine tune values
static std::ostream& printWhiteBalanceFineTune(std::ostream&, const Value&, const ExifData*);
//! Print Sony multi-burst mode values
static std::ostream& printMultiBurstMode(std::ostream&, const Value&, const ExifData*);
//! Print Sony multi-burst size values
static std::ostream& printMultiBurstSize(std::ostream&, const Value&, const ExifData*);
//! Print Sony HDR values
static std::ostream& printAutoHDRStd(std::ostream&, const Value&, const ExifData*);
//! Print Sony white balance shift amber/blue or green/magenta values
static std::ostream& printWBShiftABGM(std::ostream&, const Value&, const ExifData*);
//! Print Sony focus mode 2 values
static std::ostream& printFocusMode2(std::ostream&, const Value&, const ExifData*);
//! Print Sony auto-focus area mode Settings values
static std::ostream& printAFAreaModeSetting(std::ostream&, const Value&, const ExifData*);
//! Print Sony flexible spot position values
static std::ostream& printFlexibleSpotPosition(std::ostream&, const Value&, const ExifData*);
//! Print Sony auto-focus point selected values
static std::ostream& printAFPointSelected(std::ostream&, const Value&, const ExifData*);
//! Print Sony auto-focus points used values
static std::ostream& printAFPointsUsed(std::ostream&, const Value&, const ExifData*);
//! Print Sony auto-focus tracking values
static std::ostream& printAFTracking(std::ostream&, const Value&, const ExifData*);
//! Print Sony focal plane auto-focus points used values
static std::ostream& printFocalPlaneAFPointsUsed(std::ostream&, const Value&, const ExifData*);
//! Print Sony white balance shift amber/blue and green/magenta precise values
static std::ostream& printWBShiftABGMPrecise(std::ostream&, const Value&, const ExifData*);
//! Print Sony variable low pass filter values
static std::ostream& printExposureStandardAdjustment(std::ostream&, const Value&, const ExifData*);
//! Print Sony pixel shift information values
static std::ostream& printPixelShiftInfo(std::ostream&, const Value&, const ExifData*);
//! Print Sony focus frame size values
static std::ostream& printFocusFrameSize(std::ostream&, const Value&, const ExifData*);
//! Print Sony color temperature values
static std::ostream& printColorTemperature(std::ostream&, const Value&, const ExifData*);
//! Print Sony color compensation filter values
static std::ostream& printColorCompensationFilter(std::ostream&, const Value&, const ExifData*);
//! Print Sony lens specification values
static std::ostream& printLensSpec(std::ostream&, const Value&, const ExifData*);
//! Print Sony focus mode values
static std::ostream& printFocusMode(std::ostream&, const Value&, const ExifData*);
//! Print Sony full and preview image size values
static std::ostream& printImageSize(std::ostream&, const Value&, const ExifData*);
//! Print Sony auto-focus area mode values
static std::ostream& printAFMode(std::ostream&, const Value&, const ExifData*);
//! Print Sony focus mode 3 values
static std::ostream& printFocusMode3(std::ostream&, const Value&, const ExifData*);
//! Print Sony high ISO noise reduction 2 values
static std::ostream& printHighISONoiseReduction2(std::ostream&, const Value&, const ExifData*);
//! Print Sony SonyMisc1 CameraTemperature values (in degrees Celsius)
static std::ostream& printSonyMisc1CameraTemperature(std::ostream&, const Value&, const ExifData*);
//! Print Sony2Fp Focus Mode value
static std::ostream& printSony2FpFocusMode(std::ostream&, const Value&, const ExifData*);
//! Print Sony2Fp Focus Position 2 value
static std::ostream& printSony2FpFocusPosition2(std::ostream&, const Value&, const ExifData* metadata);
//! Print Sony 2Fp AmbientTemperature values (in degrees Celsius)
static std::ostream& printSony2FpAmbientTemperature(std::ostream&, const Value&, const ExifData*);
//! Print SonyMisc2b Lens Zoom Position value
static std::ostream& printSonyMisc2bLensZoomPosition(std::ostream&, const Value&, const ExifData* metadata);
//! Print SonyMisc2b Focus Position 2 value
static std::ostream& printSonyMisc2bFocusPosition2(std::ostream&, const Value&, const ExifData* metadata);
//! Print SonyMisc3c shot number since power up value
static std::ostream& printSonyMisc3cShotNumberSincePowerUp(std::ostream&, const Value&, const ExifData*);
//! Print SonyMisc3c sequence number
static std::ostream& printSonyMisc3cSequenceNumber(std::ostream&, const Value&, const ExifData*);
//! Print SonyMisc3c Sony image height value
static std::ostream& printSonyMisc3cSonyImageHeight(std::ostream&, const Value&, const ExifData* metadata);
//! Print SonyMisc3c model release year value
static std::ostream& printSonyMisc3cModelReleaseYear(std::ostream&, const Value&, const ExifData* metadata);
//! Print SonyMisc3c quality 2 value
static std::ostream& printSonyMisc3cQuality2(std::ostream&, const Value&, const ExifData* metadata);
private:
//! Tag information
static const TagInfo tagInfo_[];
static const TagInfo tagInfoCs_[];
static const TagInfo tagInfoCs2_[];
static const TagInfo tagInfoFp_[];
static const TagInfo tagInfoSonyMisc1_[];
static const TagInfo tagInfoSonyMisc2b_[];
static const TagInfo tagInfoSonyMisc3c_[];
static const TagInfo tagInfoSonySInfo1_[];
static const TagInfo tagInfo2010e_[];
}; // class SonyMakerNote
DataBuf sonyTagDecipher(uint16_t, const byte*, size_t, TiffComponent*);
DataBuf sonyTagEncipher(uint16_t, const byte*, size_t, TiffComponent*);
} // namespace Exiv2::Internal
#endif // #ifndef SONYMN_INT_HPP_