#111 exif_data_dump does not work on arm

open-works-for-me
nobody
libexif (61)
7
2012-08-08
2012-08-08
klaus1977
No

libexif 0.6.21 generates on an arm system (codesourcery 2009q1 toolchain) the following message:

# /arm_test /write-exif.jpg
Dumping IFD '0'...
Dumping exif content (4 entries)...
Tag: 0x11a ('XResolution')
Format: 5 ('Rational')
Components: 1
Size: 8
Value: 72
Tag: 0x11b ('YResolution')
Format: 5 ('Rational')
Components: 1
Size: 8
Value: 72
Tag: 0x128 ('ResolutionUnit')
Format: 3 ('Short')
Components: 1
Size: 2
Value: Inch
Tag: 0x213 ('YCbCrPositioning')
Format: 3 ('Short')
Components: 1
Size: 2
Value: Centered
Dumping IFD 'EXIF'...
Dumping exif content (3 entries)...
Tag: 0x9000 ('ExifVersion')
Format: 7 ('Undefined')
Components: 4
Size: 4
Value: Exif Version 2.1
Tag: 0xa000 ('FlashPixVersion')
Format: 7 ('Undefined')
Components: 4
Size: 4
Value: FlashPix Version 1.0
Tag: 0xa001 ('ColorSpace')
Format: 3 ('Short')
Components: 1
Size: 2
Value: Internal error (unknown value -1)

On a normal System x64 with same image:

Dumping IFD '0'...
Dumping exif content (4 entries)...
Tag: 0x11a ('XResolution')
Format: 5 ('Rational')
Components: 1
Size: 8
Value: 72.00
Tag: 0x11b ('YResolution')
Format: 5 ('Rational')
Components: 1
Size: 8
Value: 72.00
Tag: 0x128 ('ResolutionUnit')
Format: 3 ('Short')
Components: 1
Size: 2
Value: Inch
Tag: 0x213 ('YCbCrPositioning')
Format: 3 ('Short')
Components: 1
Size: 2
Value: centered
Dumping IFD 'EXIF'...
Dumping exif content (7 entries)...
Tag: 0x9000 ('ExifVersion')
Format: 7 ('Undefined')
Components: 4
Size: 4
Value: Exif Version 2.1
Tag: 0x9101 ('ComponentsConfiguration')
Format: 7 ('Undefined')
Components: 4
Size: 4
Value: Y Cb Cr -
Tag: 0x9286 ('UserComment')
Format: 7 ('Undefined')
Components: 35
Size: 35
Value: libexif demonstration image
Tag: 0xa000 ('FlashPixVersion')
Format: 7 ('Undefined')
Components: 4
Size: 4
Value: FlashPix Version 1.0
Tag: 0xa001 ('ColorSpace')
Format: 3 ('Short')
Components: 1
Size: 2
Value: sRGB
Tag: 0xa002 ('PixelXDimension')
Format: 4 ('Long')
Components: 1
Size: 4
Value: 640
Tag: 0xa003 ('PixelYDimension')
Format: 4 ('Long')
Components: 1
Size: 4
Value: 650

Discussion

1 2 > >> (Page 1 of 2)
  • klaus1977
    klaus1977
    2012-08-08

    test image

     
    Attachments
  • klaus1977
    klaus1977
    2012-08-08

    main file

     
    Attachments
  • klaus1977
    klaus1977
    2012-08-08

    exif_data_get_entry(exif_data, EXIF_TAG_USER_COMMENT);

    The function does also not work on arm (return NULL), but on x64.

     
  • Dan Fandrich
    Dan Fandrich
    2012-08-08

    • priority: 5 --> 7
     
  • Dan Fandrich
    Dan Fandrich
    2012-08-08

    There are some differences in the working and non-working logs that lead me to believe that they were generated by different versions of libexif. Can you try a statically-linked ver. 0.6.21 exif front-end on both platforms to rule out an application issue? And there may be some clues in the debug output, so please attach that as well. Is this a little endian or big endian ARM platform?

    exif_data_get_entry naturally should return NULL if there is no such tag in the image, but clearly the attached image does have that tag.

     
  • Dan Fandrich
    Dan Fandrich
    2012-08-08

    I've just tried this with qemu-arm with the attached test program and image, and it gives me the same result as the "On a normal System x64 with same image" log in the bug report (modulus the formatting differences resulting from using a pre-0.6.20 version). You'll have to provide much more information to help reproduce this.

     
  • Dan Fandrich
    Dan Fandrich
    2012-08-08

    • status: open --> open-works-for-me
     
  • Dan Fandrich
    Dan Fandrich
    2012-08-08

    My ARM binary passes the libexif-testsuite just fine as well. It's possible it's a compiler issue; try compiling everything without any optimization flags.

     
  • klaus1977
    klaus1977
    2012-08-09

    correct output x64

     
    Attachments
  • klaus1977
    klaus1977
    2012-08-09

    build libexif-0.6.21 for arm with buildroot

     
    Attachments
1 2 > >> (Page 1 of 2)