@@ -78,31 +78,31 @@ namespace Exiv2::Internal {
7878const CrwMapping CrwMap::crwMapping_[] = {
7979 // CrwTag CrwDir Size ExifTag IfdId decodeFct encodeFct
8080 // ------ ------ ---- ------- ----- --------- ---------
81- CrwMapping (0x0805 , 0x300a , 0 , 0 , canonId, decode0x0805, encode0x0805),
82- CrwMapping (0x080a , 0x2807 , 0 , 0 , canonId, decode0x080a, encode0x080a),
83- CrwMapping (0x080b , 0x3004 , 0 , 0x0007 , canonId, decodeBasic, encodeBasic),
84- CrwMapping (0x0810 , 0x2807 , 0 , 0x0009 , canonId, decodeBasic, encodeBasic),
85- CrwMapping (0x0815 , 0x2804 , 0 , 0x0006 , canonId, decodeBasic, encodeBasic),
86- CrwMapping (0x1029 , 0x300b , 0 , 0x0002 , canonId, decodeBasic, encodeBasic),
87- CrwMapping (0x102a , 0x300b , 0 , 0x0004 , canonId, decodeArray, encodeArray),
88- CrwMapping (0x102d , 0x300b , 0 , 0x0001 , canonId, decodeArray, encodeArray),
89- CrwMapping (0x1033 , 0x300b , 0 , 0x000f , canonId, decodeArray, encodeArray),
90- CrwMapping (0x1038 , 0x300b , 0 , 0x0012 , canonId, decodeArray, encodeArray),
91- CrwMapping (0x10a9 , 0x300b , 0 , 0x00a9 , canonId, decodeBasic, encodeBasic),
81+ CrwMapping (0x0805 , 0x300a , 0 , 0 , IfdId:: canonId, decode0x0805, encode0x0805),
82+ CrwMapping (0x080a , 0x2807 , 0 , 0 , IfdId:: canonId, decode0x080a, encode0x080a),
83+ CrwMapping (0x080b , 0x3004 , 0 , 0x0007 , IfdId:: canonId, decodeBasic, encodeBasic),
84+ CrwMapping (0x0810 , 0x2807 , 0 , 0x0009 , IfdId:: canonId, decodeBasic, encodeBasic),
85+ CrwMapping (0x0815 , 0x2804 , 0 , 0x0006 , IfdId:: canonId, decodeBasic, encodeBasic),
86+ CrwMapping (0x1029 , 0x300b , 0 , 0x0002 , IfdId:: canonId, decodeBasic, encodeBasic),
87+ CrwMapping (0x102a , 0x300b , 0 , 0x0004 , IfdId:: canonId, decodeArray, encodeArray),
88+ CrwMapping (0x102d , 0x300b , 0 , 0x0001 , IfdId:: canonId, decodeArray, encodeArray),
89+ CrwMapping (0x1033 , 0x300b , 0 , 0x000f , IfdId:: canonId, decodeArray, encodeArray),
90+ CrwMapping (0x1038 , 0x300b , 0 , 0x0012 , IfdId:: canonId, decodeArray, encodeArray),
91+ CrwMapping (0x10a9 , 0x300b , 0 , 0x00a9 , IfdId:: canonId, decodeBasic, encodeBasic),
9292 // Mapped to Exif.Photo.ColorSpace instead (see below)
93- // CrwMapping(0x10b4, 0x300b, 0, 0x00b4, canonId, decodeBasic, encodeBasic),
94- CrwMapping (0x10b4 , 0x300b , 0 , 0xa001 , exifId, decodeBasic, encodeBasic),
95- CrwMapping (0x10b5 , 0x300b , 0 , 0x00b5 , canonId, decodeBasic, encodeBasic),
96- CrwMapping (0x10c0 , 0x300b , 0 , 0x00c0 , canonId, decodeBasic, encodeBasic),
97- CrwMapping (0x10c1 , 0x300b , 0 , 0x00c1 , canonId, decodeBasic, encodeBasic),
98- CrwMapping (0x1807 , 0x3002 , 0 , 0x9206 , exifId, decodeBasic, encodeBasic),
99- CrwMapping (0x180b , 0x3004 , 0 , 0x000c , canonId, decodeBasic, encodeBasic),
100- CrwMapping (0x180e , 0x300a , 0 , 0x9003 , exifId, decode0x180e, encode0x180e),
101- CrwMapping (0x1810 , 0x300a , 0 , 0xa002 , exifId, decode0x1810, encode0x1810),
102- CrwMapping (0x1817 , 0x300a , 4 , 0x0008 , canonId, decodeBasic, encodeBasic),
103- // CrwMapping(0x1818, 0x3002, 0, 0x9204, exifId, decodeBasic, encodeBasic),
104- CrwMapping (0x183b , 0x300b , 0 , 0x0015 , canonId, decodeBasic, encodeBasic),
105- CrwMapping (0x2008 , 0x0000 , 0 , 0 , ifd1Id, decode0x2008, encode0x2008),
93+ // CrwMapping(0x10b4, 0x300b, 0, 0x00b4, IfdId:: canonId, decodeBasic, encodeBasic),
94+ CrwMapping (0x10b4 , 0x300b , 0 , 0xa001 , IfdId:: exifId, decodeBasic, encodeBasic),
95+ CrwMapping (0x10b5 , 0x300b , 0 , 0x00b5 , IfdId:: canonId, decodeBasic, encodeBasic),
96+ CrwMapping (0x10c0 , 0x300b , 0 , 0x00c0 , IfdId:: canonId, decodeBasic, encodeBasic),
97+ CrwMapping (0x10c1 , 0x300b , 0 , 0x00c1 , IfdId:: canonId, decodeBasic, encodeBasic),
98+ CrwMapping (0x1807 , 0x3002 , 0 , 0x9206 , IfdId:: exifId, decodeBasic, encodeBasic),
99+ CrwMapping (0x180b , 0x3004 , 0 , 0x000c , IfdId:: canonId, decodeBasic, encodeBasic),
100+ CrwMapping (0x180e , 0x300a , 0 , 0x9003 , IfdId:: exifId, decode0x180e, encode0x180e),
101+ CrwMapping (0x1810 , 0x300a , 0 , 0xa002 , IfdId:: exifId, decode0x1810, encode0x1810),
102+ CrwMapping (0x1817 , 0x300a , 4 , 0x0008 , IfdId:: canonId, decodeBasic, encodeBasic),
103+ // CrwMapping(0x1818, 0x3002, 0, 0x9204, IfdId:: exifId, decodeBasic, encodeBasic),
104+ CrwMapping (0x183b , 0x300b , 0 , 0x0015 , IfdId:: canonId, decodeBasic, encodeBasic),
105+ CrwMapping (0x2008 , 0x0000 , 0 , 0 , IfdId:: ifd1Id, decode0x2008, encode0x2008),
106106}; // CrwMap::crwMapping_[]
107107
108108/*
@@ -698,19 +698,19 @@ void CrwMap::decodeArray(const CiffComponent& ciffComponent, const CrwMapping* p
698698 int64_t aperture = 0 ;
699699 int64_t shutterSpeed = 0 ;
700700
701- IfdId ifdId = ifdIdNotSet;
701+ IfdId ifdId = IfdId:: ifdIdNotSet;
702702 switch (pCrwMapping->tag_ ) {
703703 case 0x0001 :
704- ifdId = canonCsId;
704+ ifdId = IfdId:: canonCsId;
705705 break ;
706706 case 0x0004 :
707- ifdId = canonSiId;
707+ ifdId = IfdId:: canonSiId;
708708 break ;
709709 case 0x000f :
710- ifdId = canonCfId;
710+ ifdId = IfdId:: canonCfId;
711711 break ;
712712 case 0x0012 :
713- ifdId = canonPiId;
713+ ifdId = IfdId:: canonPiId;
714714 break ;
715715 }
716716
@@ -725,18 +725,18 @@ void CrwMap::decodeArray(const CiffComponent& ciffComponent, const CrwMapping* p
725725 uint16_t n = 1 ;
726726 ExifKey key (c, groupName);
727727 UShortValue value;
728- if (ifdId == canonCsId && c == 23 && component_size >= 52 )
728+ if (ifdId == IfdId:: canonCsId && c == 23 && component_size >= 52 )
729729 n = 3 ;
730730 value.read (ciffComponent.pData () + c * 2 , n * 2 , byteOrder);
731731 image.exifData ().add (key, &value);
732- if (ifdId == canonSiId && c == 21 )
732+ if (ifdId == IfdId:: canonSiId && c == 21 )
733733 aperture = value.toInt64 ();
734- if (ifdId == canonSiId && c == 22 )
734+ if (ifdId == IfdId:: canonSiId && c == 22 )
735735 shutterSpeed = value.toInt64 ();
736736 c += n;
737737 }
738738
739- if (ifdId == canonSiId) {
739+ if (ifdId == IfdId:: canonSiId) {
740740 // Exif.Photo.FNumber
741741 float f = fnumber (canonEv (aperture));
742742 auto [r, s] = floatToRationalCast (f);
@@ -912,19 +912,19 @@ void CrwMap::encode0x080a(const Image& image, const CrwMapping* pCrwMapping, Cif
912912}
913913
914914void CrwMap::encodeArray (const Image& image, const CrwMapping* pCrwMapping, CiffHeader* pHead) {
915- IfdId ifdId = ifdIdNotSet;
915+ IfdId ifdId = IfdId:: ifdIdNotSet;
916916 switch (pCrwMapping->tag_ ) {
917917 case 0x0001 :
918- ifdId = canonCsId;
918+ ifdId = IfdId:: canonCsId;
919919 break ;
920920 case 0x0004 :
921- ifdId = canonSiId;
921+ ifdId = IfdId:: canonSiId;
922922 break ;
923923 case 0x000f :
924- ifdId = canonCfId;
924+ ifdId = IfdId:: canonCfId;
925925 break ;
926926 case 0x0012 :
927- ifdId = canonPiId;
927+ ifdId = IfdId:: canonPiId;
928928 break ;
929929 }
930930 DataBuf buf = packIfdId (image.exifData (), ifdId, pHead->byteOrder ());
0 commit comments