Skip to content

Commit

Permalink
Add a few more IDs for cameras and lenses
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos authored and neheb committed Sep 26, 2023
1 parent b163483 commit f20977c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/canonmn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ constexpr TagDetails canonModelId[] = {{0x00000412, "EOS M50 / Kiss M"},
{0x80000480, "EOS R50"},
{0x80000481, "EOS R6 Mark II"},
{0x80000487, "EOS R8"},
{0x80000491, "PowerShot V10"},
{0x80000498, "EOS R100"},
{0x80000520, "EOS D2000C"},
{0x80000560, "EOS D6000C"}};

Expand Down Expand Up @@ -1946,6 +1948,8 @@ constexpr TagDetails canonCsLensType[] = {{1, "Canon EF 50mm f/1.8"},
{61182, "Canon RF 400mm F2.8L IS USM + RF1.4x"},
{61182, "Canon RF 400mm F2.8L IS USM + RF2x"},
{61182, "Canon RF 600mm F4L IS USM"},
{61182, "Canon RF 600mm F4L IS USM + RF1.4x"},
{61182, "Canon RF 600mm F4L IS USM + RF2x"},
{61182, "Canon RF 800mm F5.6L IS USM"},
{61182, "Canon RF 800mm F5.6L IS USM + RF1.4x"},
{61182, "Canon RF 800mm F5.6L IS USM + RF2x"},
Expand All @@ -1956,7 +1960,11 @@ constexpr TagDetails canonCsLensType[] = {{1, "Canon EF 50mm f/1.8"},
{61182, "Canon RF 135mm F1.8 L IS USM"},
{61182, "Canon RF 24-50mm F4.5-6.3 IS STM"},
{61182, "Canon RF-S 55-210mm F5-7.1 IS STM"},
{65535, "n/a"}};
{61182, "Canon RF 100-300mm F2.8L IS USM"},
{61182, "Canon RF 100-300mm F2.8L IS USM + RF1.4x"},
{61182, "Canon RF 100-300mm F2.8L IS USM + RF2x"},
{61182, "Canon RF 28mm F2.8 STM"},
{65535, N_("n/a")}};

//! FlashActivity, tag 0x001c
constexpr TagDetails canonCsFlashActivity[] = {{0, N_("Did not fire")}, {1, N_("Fired")}};
Expand Down Expand Up @@ -2324,7 +2332,7 @@ constexpr TagDetails canonToningEffect[] = {
{0, N_("None")}, {1, N_("Sepia")}, {2, N_("Blue")}, {3, N_("Purple")}, {4, N_("Green")}};

//! RFLensType, tag 0x003D
// from https://github.com/exiftool/exiftool/blob/12.49/lib/Image/ExifTool/Canon.pm#L6791
// from https://github.com/exiftool/exiftool/blob/12.67/lib/Image/ExifTool/Canon.pm#L6833
constexpr TagDetails canonRFLensType[] = {{0, N_("n/a")},
{257, "Canon RF 50mm F1.2L USM"},
{258, "Canon RF 24-105mm F4L IS USM"},
Expand Down Expand Up @@ -2362,6 +2370,8 @@ constexpr TagDetails canonRFLensType[] = {{0, N_("n/a")},
{290, "Canon RF 400mm F2.8L IS USM + RF1.4x"},
{291, "Canon RF 400mm F2.8L IS USM + RF2x"},
{292, "Canon RF 600mm F4L IS USM"},
{293, "Canon RF 600mm F4L IS USM + RF1.4x"},
{294, "Canon RF 600mm F4L IS USM + RF2x"},
{295, "Canon RF 800mm F5.6L IS USM"},
{296, "Canon RF 800mm F5.6L IS USM + RF1.4x"},
{297, "Canon RF 800mm F5.6L IS USM + RF2x"},
Expand All @@ -2371,7 +2381,11 @@ constexpr TagDetails canonRFLensType[] = {{0, N_("n/a")},
{302, "Canon RF 15-30mm F4.5-6.3 IS STM"},
{303, "Canon RF 135mm F1.8 L IS USM"},
{304, "Canon RF 24-50mm F4.5-6.3 IS STM"},
{305, "Canon RF-S 55-210mm F5-7.1 IS STM"}};
{305, "Canon RF-S 55-210mm F5-7.1 IS STM"},
{306, "Canon RF 100-300mm F2.8L IS USM"},
{307, "Canon RF 100-300mm F2.8L IS USM + RF1.4x"},
{308, "Canon RF 100-300mm F2.8L IS USM + RF2x"},
{313, "Canon RF 28mm F2.8 STM"}};

// Canon File Info Tag
constexpr TagInfo CanonMakerNote::tagInfoFi_[] = {
Expand Down
4 changes: 4 additions & 0 deletions src/nikonmn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3849,6 +3849,10 @@ std::ostream& Nikon3MakerNote::printLensId4ZMount(std::ostream& os, const Value&
{38, "Nikon", "Nikkor Z 85mm f/1.2 S"}, // 28
{39, "Nikon", "Nikkor Z 17-28mm f/2.8"}, // IB
{40, "Nikon", "Nikkor Z 26mm f/2.8"},
{41, "Nikon", "Nikkor Z DX 12-28mm f/3.5-5.6 PZ VR"},
{42, "Nikon", "Nikkor Z 180-600mm f/5.6-6.3 VR"},
{43, "Nikon", "Nikkor Z DX 24mm f/1.7"},
{44, "Nikon", "Nikkor Z 70-180mm f/2.8"},
};

auto lid = static_cast<uint16_t>(value.toInt64());
Expand Down
3 changes: 3 additions & 0 deletions src/pentaxmn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ constexpr TagDetails pentaxModel[] = {
{0x13240, "K-1 Mark II"},
{0x13254, "K-3 Mark III"},
{0x13290, "WG-70"},
{0x1329a, "GR IIIx"},
{0x132d6, "K-3 Mark III Monochrome"},
};

//! Quality, tag 0x0008
Expand Down Expand Up @@ -663,6 +665,7 @@ constexpr TagDetails pentaxLensType[] = {
{0x0402, "smc PENTAX-FA 80-320mm F4.5-5.6"},
{0x0403, "smc PENTAX-FA 43mm F1.9 Limited"},
{0x0406, "smc PENTAX-FA 35-80mm F4-5.6"},
{0x0407, "Irix 45mm F/1.4"},
{0x0408, "Irix 150mm F/2.8 Macro"},
{0x0409, "Irix 11mm F/4"},
{0x040a, "Irix 15mm F/2.4"},
Expand Down

0 comments on commit f20977c

Please sign in to comment.