diff options
author | Simon Wilson <simonwilson@google.com> | 2010-10-10 20:36:43 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-10-10 20:36:43 -0700 |
commit | bff9e7744e4e7775b2ef7ebf96be08f4c04ffe3b (patch) | |
tree | 6f059c9dcb219993e22b2178f8b574a7ee2ef68b | |
parent | a6c454af757af25532f3ddaaf33f6193d9ee019d (diff) | |
parent | 739b7b3d62646772a1045cf80f310172b364fb1d (diff) | |
download | device_samsung_crespo-bff9e7744e4e7775b2ef7ebf96be08f4c04ffe3b.zip device_samsung_crespo-bff9e7744e4e7775b2ef7ebf96be08f4c04ffe3b.tar.gz device_samsung_crespo-bff9e7744e4e7775b2ef7ebf96be08f4c04ffe3b.tar.bz2 |
Merge "libcamera: change orientation of front camera" into gingerbread
-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 */ } }; |