summaryrefslogtreecommitdiffstats
path: root/libcamera
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-07-29 06:55:10 +0800
committerWu-cheng Li <wuchengli@google.com>2011-07-29 06:55:10 +0800
commit94d61946588b3f5a9fc71b725cd15fcd37f7cca0 (patch)
tree2cae2fb2f5ad595581c296de0ca744f41ec8d1bf /libcamera
parent0acdbb0485f819fcb4a6813dcda6a26a5457c588 (diff)
downloaddevice_samsung_crespo-94d61946588b3f5a9fc71b725cd15fcd37f7cca0.zip
device_samsung_crespo-94d61946588b3f5a9fc71b725cd15fcd37f7cca0.tar.gz
device_samsung_crespo-94d61946588b3f5a9fc71b725cd15fcd37f7cca0.tar.bz2
Use new camera data callback.
bug:4460717 Change-Id: I8d60a5cd1b7630075dc04dad0083c4abc2770cf4
Diffstat (limited to 'libcamera')
-rw-r--r--libcamera/SecCameraHWInterface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcamera/SecCameraHWInterface.cpp b/libcamera/SecCameraHWInterface.cpp
index dbfed28..c316ea6 100644
--- a/libcamera/SecCameraHWInterface.cpp
+++ b/libcamera/SecCameraHWInterface.cpp
@@ -680,7 +680,7 @@ int CameraHardwareSec::previewThread()
callbacks:
// Notify the client of a new frame.
if (mMsgEnabled & CAMERA_MSG_PREVIEW_FRAME)
- mDataCb(CAMERA_MSG_PREVIEW_FRAME, mPreviewHeap, index, mCallbackCookie);
+ mDataCb(CAMERA_MSG_PREVIEW_FRAME, mPreviewHeap, index, NULL, mCallbackCookie);
Mutex::Autolock lock(mRecordLock);
if (mRecordRunning == true) {
@@ -1203,7 +1203,7 @@ int CameraHardwareSec::pictureThread()
memcpy(mRawHeap->data, PostviewHeap->base(), postviewHeapSize);
if (mMsgEnabled & CAMERA_MSG_RAW_IMAGE) {
- mDataCb(CAMERA_MSG_RAW_IMAGE, mRawHeap, 0, mCallbackCookie);
+ mDataCb(CAMERA_MSG_RAW_IMAGE, mRawHeap, 0, NULL, mCallbackCookie);
}
if (mMsgEnabled & CAMERA_MSG_COMPRESSED_IMAGE) {
@@ -1225,7 +1225,7 @@ int CameraHardwareSec::pictureThread()
memmove(ImageStart, ExifStart, JpegImageSize - 2);
memcpy(ExifStart, ExifHeap->data, JpegExifSize);
- mDataCb(CAMERA_MSG_COMPRESSED_IMAGE, JpegHeap, 0, mCallbackCookie);
+ mDataCb(CAMERA_MSG_COMPRESSED_IMAGE, JpegHeap, 0, NULL, mCallbackCookie);
}
LOG_TIME_END(0)