From 23ce2f833b0dfa8df423195a63877f9565a96d24 Mon Sep 17 00:00:00 2001 From: Jeong-Seok Yang Date: Mon, 14 Feb 2011 22:55:21 +0900 Subject: libcamera: Add checking of preview sizes on setting parameters bug fix: If it try to set invalid preview sizes, driver will be stuck in an unrecoverable state. Thus, It is fixed to return error when setting parameters bug:3429909 Change-Id: If51b47439c140410fa03e3a0b66492633f194e53 Signed-off-by: Jeong-Seok Yang --- libcamera/SecCameraHWInterface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcamera/SecCameraHWInterface.h') diff --git a/libcamera/SecCameraHWInterface.h b/libcamera/SecCameraHWInterface.h index 75526c6..0a948db 100644 --- a/libcamera/SecCameraHWInterface.h +++ b/libcamera/SecCameraHWInterface.h @@ -156,6 +156,8 @@ private: int *pdwJPEGSize, void *pVideo, int *pdwVideoSize); void setSkipFrame(int frame); + bool isSupportedPreviewSize(const int width, + const int height) const; /* used by auto focus thread to block until it's told to run */ mutable Mutex mFocusLock; mutable Condition mFocusCondition; @@ -205,6 +207,8 @@ private: int mPostViewWidth; int mPostViewHeight; int mPostViewSize; + + Vector mSupportedPreviewSizes; }; }; // namespace android -- cgit v1.1