summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcamera/SecCamera.cpp3
-rw-r--r--libcamera/SecCameraHWInterface.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/libcamera/SecCamera.cpp b/libcamera/SecCamera.cpp
index 91117bc..a6a52db 100644
--- a/libcamera/SecCamera.cpp
+++ b/libcamera/SecCamera.cpp
@@ -1778,7 +1778,8 @@ int SecCamera::getSnapshotAndJpeg(unsigned char *yuv_buf, unsigned char *jpeg_bu
}
memcpy(pInBuf, yuv_buf, snapshot_size);
- jpgEnc.encode(output_size, NULL);
+ setExifChangedAttribute();
+ jpgEnc.encode(output_size, &mExifInfo);
uint64_t outbuf_size;
unsigned char *pOutBuf = (unsigned char *)jpgEnc.getOutBuf(&outbuf_size);
diff --git a/libcamera/SecCameraHWInterface.cpp b/libcamera/SecCameraHWInterface.cpp
index 0c0d60d..8cf30d2 100644
--- a/libcamera/SecCameraHWInterface.cpp
+++ b/libcamera/SecCameraHWInterface.cpp
@@ -2406,7 +2406,7 @@ static CameraInfo sCameraInfo[] = {
},
{
CAMERA_FACING_FRONT,
- 0, /* orientation */
+ 90, /* orientation */
}
};