summaryrefslogtreecommitdiffstats
path: root/libcamera/SecCameraHWInterface.h
diff options
context:
space:
mode:
authorJeong-Seok Yang <jseok.yang@samsung.com>2011-02-14 22:55:21 +0900
committerWu-cheng Li <wuchengli@google.com>2011-02-15 17:15:25 +0800
commit23ce2f833b0dfa8df423195a63877f9565a96d24 (patch)
tree48dde5375b29f029f3070ea2f6bf21d55baaa0f7 /libcamera/SecCameraHWInterface.h
parent1fa3b285489b04647eafe2ce87b1b9215032e821 (diff)
downloaddevice_samsung_crespo-23ce2f833b0dfa8df423195a63877f9565a96d24.zip
device_samsung_crespo-23ce2f833b0dfa8df423195a63877f9565a96d24.tar.gz
device_samsung_crespo-23ce2f833b0dfa8df423195a63877f9565a96d24.tar.bz2
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 <jseok.yang@samsung.com>
Diffstat (limited to 'libcamera/SecCameraHWInterface.h')
-rw-r--r--libcamera/SecCameraHWInterface.h4
1 files changed, 4 insertions, 0 deletions
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<Size> mSupportedPreviewSizes;
};
}; // namespace android