From: Sungjoong Kang Date: Thu, 4 Oct 2012 20:31:13 +0000 (-0700) Subject: hardware: samsung_slsi: libcamera2: Fix JPEG GPS Coordinates X-Git-Tag: cm-10.1-M1~47 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0066b2cb831c1a4e20edd7339cc1bc790e0d968c;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos5.git 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 --- 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;