jpeg loader: exif parsing bug fix
authorwonguk.jeong <wonguk.jeong@samsung.com>
Sun, 29 Jun 2014 11:10:15 +0000 (13:10 +0200)
committerCedric BAIL <c.bail@partner.samsung.com>
Sun, 29 Jun 2014 11:10:16 +0000 (13:10 +0200)
Summary:
problem: orientation information was not come out properly

byte align value was wrong. 0x4949 is II not MM

refer to http://www.media.mit.edu/pia/Research/deepview/exif.html

@fix

Reviewers: raster, cedric, jpeg

CC: seoz, cedric
Differential Revision: https://phab.enlightenment.org/D1082

src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c

index 6469758..e2fd97c 100644 (file)
@@ -160,8 +160,8 @@ static const unsigned char JfifHeader[] = {0x4A, 0x46, 0x49, 0x46, 0x00};
 static const unsigned char JfxxHeader[] = {0x4A, 0x46, 0x58, 0x58, 0x00};
 static const unsigned char App0[] = {0xff, 0xe0};
 static const unsigned char App1[] = {0xff, 0xe1};
-static const unsigned char MM[] = {0x49, 0x49};
-static const unsigned char II[] = {0x4d, 0x4d};
+static const unsigned char II[] = {0x49, 0x49};
+static const unsigned char MM[] = {0x4d, 0x4d};
 typedef enum {
      EXIF_BYTE_ALIGN_II,
      EXIF_BYTE_ALIGN_MM