From e0acacf95c94d3c2d08547a5f48a990d20c76551 Mon Sep 17 00:00:00 2001 From: Milen Mitkov Date: Wed, 26 Oct 2011 15:47:04 +0300 Subject: CameraHAL: Use Ancillary data to check for snapshot Uses the ancilary data field nDCCStatus to check if the preview frame is a snapshot. Fixes a rare issue in which a normal (non-snapshot) preview frame is received after capture has started. Change-Id: I242c17ee3dd1365eb24c6c15585bb125f6938dee Signed-off-by: Milen Mitkov related-to-bug: 5472396 --- camera/inc/OMXCameraAdapter/OMXCameraAdapter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camera/inc/OMXCameraAdapter') diff --git a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h index 2f17ba8..7358f22 100644 --- a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h +++ b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h @@ -640,6 +640,8 @@ private: status_t setAutoConvergence(OMX_TI_AUTOCONVERGENCEMODETYPE pACMode, OMX_S32 pManualConverence); status_t getAutoConvergence(OMX_TI_AUTOCONVERGENCEMODETYPE *pACMode, OMX_S32 *pManualConverence); + OMX_OTHER_EXTRADATATYPE *getExtradata(OMX_OTHER_EXTRADATATYPE *extraData, OMX_EXTRADATATYPE type); + class CommandHandler : public Thread { public: CommandHandler(OMXCameraAdapter* ca) -- cgit v1.1