fix_Sony2010e_0.27 Thanks to @sridharb1

This commit is contained in:
clanmills
2020-03-29 17:55:37 +01:00
parent 6006bb1c23
commit 18ed65a25f
8 changed files with 151 additions and 3 deletions
+15
View File
@@ -1243,6 +1243,21 @@ namespace Exiv2 {
}
return idx;
}
int sony2010eSelector(uint16_t /*tag*/, const byte* /*pData*/, uint32_t /*size*/, TiffComponent* const pRoot)
{
const char* models[] = { "SLT-A58", "SLT-A99", "ILCE-3000", "ILCE-3500", "NEX-3N", "NEX-5R", "NEX-5T", "NEX-6", "VG30E", "VG900",
"DSC-RX100", "DSC-RX1", "DSC-RX1R", "DSC-HX300", "DSC-HX50V", "DSC-TX30", "DSC-WX60", "DSC-WX200", "DSC-WX300" };
std::set<std::string> s2010eModels;
for (size_t i = 0; i < EXV_COUNTOF(models); i++) {
s2010eModels.insert(models[i]);
}
std::string model = getExifModel(pRoot);
int idx = -1;
if (s2010eModels.find(model) != s2010eModels.end()) {
idx = 0;
}
return idx;
}
}} // namespace Internal, Exiv2
// *****************************************************************************