From b1a586852b13fe603c87d8bca3a5509fc1bb7a65 Mon Sep 17 00:00:00 2001 From: Jeong-Seok Yang Date: Wed, 3 Nov 2010 01:23:38 -0700 Subject: libcamera: for reliability 1. Adding checking preview status in CameraHardwareSec::stopPreview(). So if its status is not previewing, It doesn't call SecCamera::stopPreview. Thus, buffers what be used by picture thread will not be cleared. 2. Adding killing thread and clear buffers in CameraHardwareSec::cancelPicture() 3. CameraHardwareSec::SplitFrame was modified to remove potential problem about memory access. fix : bug 3093595 Change-Id: Iefa85df297a6abdbb5fb7772b58e0c949aeda0de Signed-off-by: Jeong-Seok Yang --- libcamera/SecCamera.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libcamera/SecCamera.h') diff --git a/libcamera/SecCamera.h b/libcamera/SecCamera.h index 700b653..e1460b9 100644 --- a/libcamera/SecCamera.h +++ b/libcamera/SecCamera.h @@ -328,6 +328,7 @@ public: unsigned int getRecPhyAddrY(int); unsigned int getRecPhyAddrC(int); #endif + int cancelPicture(void); int flagPreviewStart(void); int getPreview(void); int setPreviewSize(int width, int height, int pixel_format); -- cgit v1.1