@@ -37,8 +37,7 @@ namespace fs = std::filesystem;
3737namespace {
3838// Todo: Can be generalized further - get any tag as a string/long/...
3939// ! Get the Value for a tag within a particular group
40- const Exiv2::Value* getExifValue (Exiv2::Internal::TiffComponent* pRoot, const uint16_t & tag,
41- const Exiv2::Internal::IfdId& group);
40+ const Exiv2::Value* getExifValue (Exiv2::Internal::TiffComponent* pRoot, const uint16_t & tag, const Exiv2::IfdId& group);
4241// ! Get the model name from tag Exif.Image.Model
4342std::string getExifModel (Exiv2::Internal::TiffComponent* pRoot);
4443
@@ -969,9 +968,9 @@ int sonyMisc2bSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/,
969968 // > First byte must be 9 or 12 or 13 or 15 or 16 and 4th byte must be 2 (deciphered)
970969
971970 // Get the value from the image format that is being used
972- auto value = getExifValue (pRoot, 0x9404 , Exiv2::Internal:: sony1Id);
971+ auto value = getExifValue (pRoot, 0x9404 , Exiv2::sony1Id);
973972 if (!value) {
974- value = getExifValue (pRoot, 0x9404 , Exiv2::Internal:: sony2Id);
973+ value = getExifValue (pRoot, 0x9404 , Exiv2::sony2Id);
975974 if (!value)
976975 return -1 ;
977976 }
@@ -996,9 +995,9 @@ int sonyMisc3cSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/,
996995 // > first byte decoded: 62, 48, 215, 28, 106 respectively
997996
998997 // Get the value from the image format that is being used
999- auto value = getExifValue (pRoot, 0x9400 , Exiv2::Internal:: sony1Id);
998+ auto value = getExifValue (pRoot, 0x9400 , Exiv2::sony1Id);
1000999 if (!value) {
1001- value = getExifValue (pRoot, 0x9400 , Exiv2::Internal:: sony2Id);
1000+ value = getExifValue (pRoot, 0x9400 , Exiv2::sony2Id);
10021001 if (!value)
10031002 return -1 ;
10041003 }
@@ -1024,7 +1023,7 @@ int sonyMisc3cSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/,
10241023// local definitions
10251024namespace {
10261025const Exiv2::Value* getExifValue (Exiv2::Internal::TiffComponent* pRoot, const uint16_t & tag,
1027- const Exiv2::Internal:: IfdId& group) {
1026+ const Exiv2::IfdId& group) {
10281027 Exiv2::Internal::TiffFinder finder (tag, group);
10291028 if (!pRoot)
10301029 return nullptr ;
@@ -1035,7 +1034,7 @@ const Exiv2::Value* getExifValue(Exiv2::Internal::TiffComponent* pRoot, const ui
10351034
10361035std::string getExifModel (Exiv2::Internal::TiffComponent* pRoot) {
10371036 // Lookup the Exif.Image.Model tag
1038- const auto value = getExifValue (pRoot, 0x0110 , Exiv2::Internal:: ifd0Id);
1037+ const auto value = getExifValue (pRoot, 0x0110 , Exiv2::ifd0Id);
10391038 return (!value || value->count () == 0 ) ? std::string (" " ) : static_cast <std::string>(value->toString ());
10401039}
10411040
0 commit comments