|
|
@ -1219,16 +1219,18 @@ namespace Exiv2 {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return std::find(std::begin(models), std::end(models), getExifModel(pRoot)) != std::end(models) ? 0 : -1;
|
|
|
|
return std::find(std::begin(models), std::end(models), getExifModel(pRoot)) != std::end(models) ? 0 : -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int sony2FpSelector(uint16_t /*tag*/, const byte* /*pData*/, uint32_t /*size*/, TiffComponent* const pRoot)
|
|
|
|
int sony2FpSelector(uint16_t /*tag*/, const byte* /*pData*/, uint32_t /*size*/, TiffComponent* const pRoot)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Not valid for models beginning
|
|
|
|
// Not valid for models beginning
|
|
|
|
std::string model = getExifModel(pRoot);
|
|
|
|
std::string model = getExifModel(pRoot);
|
|
|
|
for (auto& m : { "SLT-", "HV", "ILCA-" }) {
|
|
|
|
for (auto& m : { "SLT-", "HV", "ILCA-" }) {
|
|
|
|
if (Util::startsWith(model, m))
|
|
|
|
if (model.find(m) == 0)
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int sonyMisc2bSelector(uint16_t /*tag*/, const byte* /*pData*/, uint32_t /*size*/, TiffComponent* const pRoot)
|
|
|
|
int sonyMisc2bSelector(uint16_t /*tag*/, const byte* /*pData*/, uint32_t /*size*/, TiffComponent* const pRoot)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// From Exiftool: https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool/Sony.pm
|
|
|
|
// From Exiftool: https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool/Sony.pm
|
|
|
|