From ae5be4a124733403d5025b536bf8271da4c16c41 Mon Sep 17 00:00:00 2001 From: Jeong-Seok Yang Date: Mon, 8 Nov 2010 20:47:08 -0800 Subject: libcamera: Skip some frames on overlay for image quality. 1. Skip some frames to adjust AWB automatically on initial time. 2. Skip a frame when applying image effect End-user doesn't see ugly frames when using camera applications by above 2 approaches. Change-Id: I8b4cc868a0a40164bfb3bc1e150c6d2dd351a1ba Signed-off-by: Jeong-Seok Yang --- libcamera/SecCameraHWInterface.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcamera/SecCameraHWInterface.h') diff --git a/libcamera/SecCameraHWInterface.h b/libcamera/SecCameraHWInterface.h index b3f90ac..6f52ece 100644 --- a/libcamera/SecCameraHWInterface.h +++ b/libcamera/SecCameraHWInterface.h @@ -161,7 +161,7 @@ private: int dwVideoHeight, void *pJPEG, int *pdwJPEGSize, void *pVideo, int *pdwVideoSize); - + void setSkipFrame(int frame); /* used by auto focus thread to block until it's told to run */ mutable Mutex mFocusLock; mutable Condition mCondition; @@ -186,6 +186,9 @@ private: int mPreviewFrameRateMicrosec; const __u8 *mCameraSensorName; + mutable Mutex mSkipFrameLock; + int mSkipFrame; + #if defined(BOARD_USES_OVERLAY) sp mOverlay; bool mUseOverlay; -- cgit v1.1