|
|
|
@ -5,44 +5,41 @@
|
|
|
|
|
#include <iomanip>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
using EasyAccessFct = Exiv2::ExifData::const_iterator (*)(const Exiv2::ExifData&);
|
|
|
|
|
using EasyAccess = std::pair<const char*, EasyAccessFct>;
|
|
|
|
|
|
|
|
|
|
static const EasyAccess easyAccess[] = {
|
|
|
|
|
{"Orientation", Exiv2::orientation},
|
|
|
|
|
{"ISO speed", Exiv2::isoSpeed},
|
|
|
|
|
{"Date & time original", Exiv2::dateTimeOriginal},
|
|
|
|
|
{"Flash bias", Exiv2::flashBias},
|
|
|
|
|
{"Exposure mode", Exiv2::exposureMode},
|
|
|
|
|
{"Scene mode", Exiv2::sceneMode},
|
|
|
|
|
{"Macro mode", Exiv2::macroMode},
|
|
|
|
|
{"Image quality", Exiv2::imageQuality},
|
|
|
|
|
{"White balance", Exiv2::whiteBalance},
|
|
|
|
|
{"Lens name", Exiv2::lensName},
|
|
|
|
|
{"Saturation", Exiv2::saturation},
|
|
|
|
|
{"Sharpness", Exiv2::sharpness},
|
|
|
|
|
{"Contrast", Exiv2::contrast},
|
|
|
|
|
{"Scene capture type", Exiv2::sceneCaptureType},
|
|
|
|
|
{"Metering mode", Exiv2::meteringMode},
|
|
|
|
|
{"Camera make", Exiv2::make},
|
|
|
|
|
{"Camera model", Exiv2::model},
|
|
|
|
|
{"Exposure time", Exiv2::exposureTime},
|
|
|
|
|
{"FNumber", Exiv2::fNumber},
|
|
|
|
|
{"Shutter speed value", Exiv2::shutterSpeedValue},
|
|
|
|
|
{"Aperture value", Exiv2::apertureValue},
|
|
|
|
|
{"Brightness value", Exiv2::brightnessValue},
|
|
|
|
|
{"Exposure bias", Exiv2::exposureBiasValue},
|
|
|
|
|
{"Max aperture value", Exiv2::maxApertureValue},
|
|
|
|
|
{"Subject distance", Exiv2::subjectDistance},
|
|
|
|
|
{"Light source", Exiv2::lightSource},
|
|
|
|
|
{"Flash", Exiv2::flash},
|
|
|
|
|
{"Camera serial number", Exiv2::serialNumber},
|
|
|
|
|
{"Focal length", Exiv2::focalLength},
|
|
|
|
|
{"Subject location/area", Exiv2::subjectArea},
|
|
|
|
|
{"Flash energy", Exiv2::flashEnergy},
|
|
|
|
|
{"Exposure index", Exiv2::exposureIndex},
|
|
|
|
|
{"Sensing method", Exiv2::sensingMethod},
|
|
|
|
|
{"AF point", Exiv2::afPoint},
|
|
|
|
|
static constexpr auto easyAccess = std::array{
|
|
|
|
|
std::pair("Orientation", &Exiv2::orientation),
|
|
|
|
|
std::pair("ISO speed", &Exiv2::isoSpeed),
|
|
|
|
|
std::pair("Date & time original", &Exiv2::dateTimeOriginal),
|
|
|
|
|
std::pair("Flash bias", &Exiv2::flashBias),
|
|
|
|
|
std::pair("Exposure mode", &Exiv2::exposureMode),
|
|
|
|
|
std::pair("Scene mode", &Exiv2::sceneMode),
|
|
|
|
|
std::pair("Macro mode", &Exiv2::macroMode),
|
|
|
|
|
std::pair("Image quality", &Exiv2::imageQuality),
|
|
|
|
|
std::pair("White balance", &Exiv2::whiteBalance),
|
|
|
|
|
std::pair("Lens name", &Exiv2::lensName),
|
|
|
|
|
std::pair("Saturation", &Exiv2::saturation),
|
|
|
|
|
std::pair("Sharpness", &Exiv2::sharpness),
|
|
|
|
|
std::pair("Contrast", &Exiv2::contrast),
|
|
|
|
|
std::pair("Scene capture type", &Exiv2::sceneCaptureType),
|
|
|
|
|
std::pair("Metering mode", &Exiv2::meteringMode),
|
|
|
|
|
std::pair("Camera make", &Exiv2::make),
|
|
|
|
|
std::pair("Camera model", &Exiv2::model),
|
|
|
|
|
std::pair("Exposure time", &Exiv2::exposureTime),
|
|
|
|
|
std::pair("FNumber", &Exiv2::fNumber),
|
|
|
|
|
std::pair("Shutter speed value", &Exiv2::shutterSpeedValue),
|
|
|
|
|
std::pair("Aperture value", &Exiv2::apertureValue),
|
|
|
|
|
std::pair("Brightness value", &Exiv2::brightnessValue),
|
|
|
|
|
std::pair("Exposure bias", &Exiv2::exposureBiasValue),
|
|
|
|
|
std::pair("Max aperture value", &Exiv2::maxApertureValue),
|
|
|
|
|
std::pair("Subject distance", &Exiv2::subjectDistance),
|
|
|
|
|
std::pair("Light source", &Exiv2::lightSource),
|
|
|
|
|
std::pair("Flash", &Exiv2::flash),
|
|
|
|
|
std::pair("Camera serial number", &Exiv2::serialNumber),
|
|
|
|
|
std::pair("Focal length", &Exiv2::focalLength),
|
|
|
|
|
std::pair("Subject location/area", &Exiv2::subjectArea),
|
|
|
|
|
std::pair("Flash energy", &Exiv2::flashEnergy),
|
|
|
|
|
std::pair("Exposure index", &Exiv2::exposureIndex),
|
|
|
|
|
std::pair("Sensing method", &Exiv2::sensingMethod),
|
|
|
|
|
std::pair("AF point", &Exiv2::afPoint),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
|