android: jpeg: get ISO from SENSOR_SENSITIVITY
The data for the exif ISO tag needs to come from SENSOR_SENSITIVITY. Set it. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
c9e1f75791
commit
ad2105c2a7
1 changed files with 4 additions and 1 deletions
|
@ -119,7 +119,10 @@ int PostProcessorJpeg::process(const FrameBuffer &source,
|
|||
ret = requestMetadata.getEntry(ANDROID_LENS_APERTURE, &entry);
|
||||
if (ret)
|
||||
exif.setAperture(*entry.data.f);
|
||||
exif.setISO(100);
|
||||
|
||||
ret = resultMetadata->getEntry(ANDROID_SENSOR_SENSITIVITY, &entry);
|
||||
exif.setISO(ret ? *entry.data.i32 : 100);
|
||||
|
||||
exif.setFlash(Exif::Flash::FlashNotPresent);
|
||||
exif.setWhiteBalance(Exif::WhiteBalance::Auto);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue