diff options
author | Simon Wilson <simonwilson@google.com> | 2010-10-10 20:34:48 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2010-10-10 20:34:53 -0700 |
commit | 739b7b3d62646772a1045cf80f310172b364fb1d (patch) | |
tree | ae229f95db4a870be5f9bf510a4bbeb152a8eab3 /libcamera | |
parent | ec19c5a973442d05c2e2ae51e32bb23723ce373d (diff) | |
download | device_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')
-rw-r--r-- | libcamera/SecCamera.cpp | 3 | ||||
-rw-r--r-- | libcamera/SecCameraHWInterface.cpp | 2 |
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 */ } }; |