summaryrefslogtreecommitdiffstats
path: root/libcamera/SecCamera.cpp
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2010-10-10 20:34:48 -0700
committerSimon Wilson <simonwilson@google.com>2010-10-10 20:34:53 -0700
commit739b7b3d62646772a1045cf80f310172b364fb1d (patch)
treeae229f95db4a870be5f9bf510a4bbeb152a8eab3 /libcamera/SecCamera.cpp
parentec19c5a973442d05c2e2ae51e32bb23723ce373d (diff)
downloaddevice_samsung_crespo-739b7b3d62646772a1045cf80f310172b364fb1d.zip
device_samsung_crespo-739b7b3d62646772a1045cf80f310172b364fb1d.tar.gz
device_samsung_crespo-739b7b3d62646772a1045cf80f310172b364fb1d.tar.bz2
libcamera: change orientation of front camera
Also add EXIF data for front camera JPEGs, which is required for snapshots to have the correct orientation. Change-Id: I9298df87c0816950779d9a2a9d821dac198c5fd7
Diffstat (limited to 'libcamera/SecCamera.cpp')
-rw-r--r--libcamera/SecCamera.cpp3
1 files changed, 2 insertions, 1 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);