android: jpeg: exif: Fix setGPSLocation longitude
There was a copy-paste error that caused the latitude to be set twice and the longitude never. Fix this. This is part of the fix that allows the following CTS test to pass: - android.hardware.cts.CameraTest#testJpegExif Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
4c0b6c6bd1
commit
a3c9718cfc
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ void Exif::setGPSLocation(const double *coords)
|
|||
std::tie<int, int, int>(deg, min, sec) = degreesToDMS(coords[1]);
|
||||
setString(EXIF_IFD_GPS, static_cast<ExifTag>(EXIF_TAG_GPS_LONGITUDE_REF),
|
||||
EXIF_FORMAT_ASCII, deg >= 0 ? "E" : "W");
|
||||
setGPSDMS(EXIF_IFD_GPS, static_cast<ExifTag>(EXIF_TAG_GPS_LATITUDE),
|
||||
setGPSDMS(EXIF_IFD_GPS, static_cast<ExifTag>(EXIF_TAG_GPS_LONGITUDE),
|
||||
std::abs(deg), min, sec);
|
||||
|
||||
setByte(EXIF_IFD_GPS, static_cast<ExifTag>(EXIF_TAG_GPS_ALTITUDE_REF),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue