opened
drewnoakes
username_0
Diff between Java and C# versions:

```diff
diff --git a/jpg/metadata/epson photopc 3000z.jpg.txt b/jpg/metadata/epson photopc 3000z.jpg.txt
index 35cb037..9c7af1a 100644
--- a/jpg/metadata/epson photopc 3000z.jpg.txt	
+++ b/jpg/metadata/epson photopc 3000z.jpg.txt	
@@ -48,32 +48,5 @@ FILE: Epson PhotoPC 3000Z.jpg
 [Exif SubIFD - 0xa300] File Source = Digital Still Camera (DSC)
 [Exif SubIFD - 0xa301] Scene Type = Directly photographed image
 
-[Olympus Makernote - 0x0200] Special Mode = Unknown picture taking mode / 208th in a sequence
-[Olympus Makernote - 0x0201] JPEG Quality = Super High Quality
-[Olympus Makernote - 0x0202] Macro = Macro
-[Olympus Makernote - 0x0203] BW Mode = Off
-[Olympus Makernote - 0x0204] DigiZoom Ratio = Unknown (1)
-[Olympus Makernote - 0x0209] Camera Id = EPSON DIGITAL CAMERA
-[Olympus Makernote - 0x020a] Unknown tag (0x020a) = [512 values]
-[Olympus Makernote - 0x020b] Image Width = 2048
-[Olympus Makernote - 0x020c] Image Height = 1536
-[Olympus Makernote - 0x020d] Original Manufacturer Model = SX321
-[Olympus Makernote - 0x0300] Pre Capture Frames = 0
-[Olympus Makernote - 0x0f00] Data Dump = [174 values]
-
-[Interoperability - 0x0001] Interoperability Index = Recommended Exif Interoperability Rules (ExifR98)
-[Interoperability - 0x0002] Interoperability Version = 1.00
-
-[Exif Thumbnail - 0x0103] Compression = JPEG (old-style)
-[Exif Thumbnail - 0x011a] X Resolution = 72 dots per inch
-[Exif Thumbnail - 0x011b] Y Resolution = 72 dots per inch
-[Exif Thumbnail - 0x0128] Resolution Unit = Inch
-[Exif Thumbnail - 0x0201] Thumbnail Offset = 4084 bytes
-[Exif Thumbnail - 0x0202] Thumbnail Length = 4700 bytes
-
-[File - 0x0001] File Name = Epson PhotoPC 3000Z.jpg
-[File - 0x0002] File Size = 744723 bytes
-[File - 0x0003] File Modified Date = Sun Jan 27 02:31:15 +00:00 2013
```
Epson PhotoPC image missing several directories
issue
created
drewnoakes
username_0
This occurs in many images during Olympus makernote processing.

This one is particularly bad as all processing halts:

```diff
diff --git a/jpg/metadata/minolta dimage s404.jpg.txt b/jpg/metadata/minolta dimage s404.jpg.txt
index fca5fb4..4e11678 100644
--- a/jpg/metadata/minolta dimage s404.jpg.txt	
+++ b/jpg/metadata/minolta dimage s404.jpg.txt	
@@ -51,60 +51,18 @@ FILE: Minolta DiMAGE S404.jpg
 [Olympus Makernote - 0xf006] Image Quality = Raw
 [Olympus Makernote - 0xf007] Shooting Mode = Single
 [Olympus Makernote - 0xf008] Metering Mode = Unknown (43)
-[Olympus Makernote - 0xf009] Apex Film Speed Value = 450.0
+[Olympus Makernote - 0xf009] Apex Film Speed Value = 450
 [Olympus Makernote - 0xf00a] Apex Shutter Speed Time Value = 1.890625 sec
-[Olympus Makernote - 0xf00b] Apex Aperture Value = f/0.2
+[Olympus Makernote - 0xf00b] Apex Aperture Value = f/0.3
 [Olympus Makernote - 0xf00c] Macro Mode = Off
 [Olympus Makernote - 0xf00d] Digital Zoom = Unknown (6)
-[Olympus Makernote - 0xf00e] Exposure Compensation = -1.6666666666666667 EV
+[Olympus Makernote - 0xf00e] Exposure Compensation = -1.66666666666667 EV
 [Olympus Makernote - 0xf00f] Bracket Step = 1/3 EV
 [Olympus Makernote - 0xf010] Unknown tag (0xf010) = 0
 [Olympus Makernote - 0xf011] Interval Length = N/A
 [Olympus Makernote - 0xf012] Interval Number = N/A
-[Olympus Makernote - 0xf013] Focal Length = 0.0 mm
+[Olympus Makernote - 0xf013] Focal Length = 0 mm
 [Olympus Makernote - 0xf014] Focus Distance = Infinity
 [Olympus Makernote - 0xf015] Flash Fired = Unknown (131204368)
-[Olympus Makernote - 0xf016] Date = Sat Apr 26 00:00:00 BST 2014
-[Olympus Makernote - 0xf017] Time = 00:00:38
-[Olympus Makernote - 0xf018] Max Aperture at Focal Length = f/3.5
-[Olympus Makernote - 0xf019] Unknown tag (0xf019) = 0
-[Olympus Makernote - 0xf01a] Unknown tag (0xf01a) = 0
-[Olympus Makernote - 0xf01b] File Number Memory = Off
-[Olympus Makernote - 0xf01c] Last File Number = 671
-[Olympus Makernote - 0xf01d] White Balance Red = 1.0
-[Olympus Makernote - 0xf01e] White Balance Green = 1.44140625
-[Olympus Makernote - 0xf01f] White Balance Blue = 0.01171875
-[Olympus Makernote - 0xf020] Saturation = 0
-[Olympus Makernote - 0xf021] Contrast = -2
-[Olympus Makernote - 0xf022] Sharpness = Normal
-[Olympus Makernote - 0xf023] Subject Program = Unknown (6)
-[Olympus Makernote - 0xf024] Flash Compensation = -0.6666666666666666 EV
-[Olympus Makernote - 0xf025] ISO Setting = 800
-[Olympus Makernote - 0xf026] Camera Model = DiMAGE 7
-[Olympus Makernote - 0xf027] Interval Mode = Time Lapse Movie
-[Olympus Makernote - 0xf028] Folder Name = Data Form
-[Olympus Makernote - 0xf029] Color Mode = Unknown (8000)
-[Olympus Makernote - 0xf02a] Color Filter = 5
-[Olympus Makernote - 0x0010] Unknown tag (0x0010) = [12968 values]
-[Olympus Makernote - 0x0020] Unknown tag (0x0020) = [354 values]
-[Olympus Makernote - 0x0040] Compressed Image Size = 1826901
-[Olympus Makernote - 0x0e00] Print Image Matching (PIM) Info = [40 values]
-
-[Interoperability - 0x0001] Interoperability Index = Recommended Exif Interoperability Rules (ExifR98)
-[Interoperability - 0x0002] Interoperability Version = 1.00
-
-[Exif Thumbnail - 0x0103] Compression = JPEG (old-style)
-[Exif Thumbnail - 0x0112] Orientation = Top, left side (Horizontal / normal)
-[Exif Thumbnail - 0x011a] X Resolution = 72 dots per inch
-[Exif Thumbnail - 0x011b] Y Resolution = 72 dots per inch
-[Exif Thumbnail - 0x0128] Resolution Unit = Inch
-[Exif Thumbnail - 0x0201] Thumbnail Offset = 14338 bytes
-[Exif Thumbnail - 0x0202] Thumbnail Length = 4381 bytes
-[Exif Thumbnail - 0x0213] YCbCr Positioning = Center of pixel array
-
-[File - 0x0001] File Name = Minolta DiMAGE S404.jpg
-[File - 0x0002] File Size = 1897844 bytes
-[File - 0x0003] File Modified Date = Sun Jan 27 02:31:15 +00:00 2013
-
 Generated using metadata-extractor
 https://username_0.com/code/exif/
```
comment
created
drewnoakes
username_0
This bug is seen because the Java version stored `int32u_t` as `long` (because there are no unsigned integers in Java), but the C# version uses `uint`. The descriptor class was failing to cast this to `long[]`, as `long` is used to model `uint` in Java.
comment
closed
drewnoakes
username_0
issue