From 0066b2cb831c1a4e20edd7339cc1bc790e0d968c Mon Sep 17 00:00:00 2001 From: Sungjoong Kang Date: Thu, 4 Oct 2012 13:31:13 -0700 Subject: [PATCH] hardware: samsung_slsi: libcamera2: Fix JPEG GPS Coordinates Fixed JPEG GPS Coordinates error due to unit mismatch. BUG: 7287793 Change-Id: Ie063f21e8a684fe7d5c6e56ca97b907d8fb302a9 Signed-off-by: Sungjoong Kang --- libcamera2/ExynosCameraHWInterface2.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libcamera2/ExynosCameraHWInterface2.cpp b/libcamera2/ExynosCameraHWInterface2.cpp index 59110ca..91ee230 100644 --- a/libcamera2/ExynosCameraHWInterface2.cpp +++ b/libcamera2/ExynosCameraHWInterface2.cpp @@ -5873,9 +5873,9 @@ void ExynosCameraHWInterface2::m_setExifChangedAttribute(exif_attribute_t *exifI else exifInfo->gps_altitude_ref = 1; - double latitude = fabs(ctl->jpeg.gpsCoordinates[0] / 10000.0); - double longitude = fabs(ctl->jpeg.gpsCoordinates[1] / 10000.0); - double altitude = fabs(ctl->jpeg.gpsCoordinates[2] / 100.0); + double latitude = fabs(ctl->jpeg.gpsCoordinates[0]); + double longitude = fabs(ctl->jpeg.gpsCoordinates[1]); + double altitude = fabs(ctl->jpeg.gpsCoordinates[2]); exifInfo->gps_latitude[0].num = (uint32_t)latitude; exifInfo->gps_latitude[0].den = 1; @@ -5909,6 +5909,7 @@ void ExynosCameraHWInterface2::m_setExifChangedAttribute(exif_attribute_t *exifI snprintf((char*)exifInfo->gps_datestamp, sizeof(exifInfo->gps_datestamp), "%04d:%02d:%02d", tm_data.tm_year + 1900, tm_data.tm_mon + 1, tm_data.tm_mday); + memcpy(exifInfo->gps_processing_method, currentEntry->gpsProcessingMethod, 32); exifInfo->enableGps = true; } else { exifInfo->enableGps = false; -- 2.20.1