summaryrefslogtreecommitdiffstats
path: root/camera/inc
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2011-09-20 17:14:53 -0500
committerIliyan Malchev <malchev@google.com>2011-09-21 16:11:57 -0700
commit7762bf32b7bd874ce34948eb53a3bfa3906f4aef (patch)
treed2a35185a7ac08f26f606d5a2c2c430003a57a23 /camera/inc
parent2010763a13490313d773d8bbabec46414649b3ab (diff)
downloadhardware_ti_omap4xxx-7762bf32b7bd874ce34948eb53a3bfa3906f4aef.zip
hardware_ti_omap4xxx-7762bf32b7bd874ce34948eb53a3bfa3906f4aef.tar.gz
hardware_ti_omap4xxx-7762bf32b7bd874ce34948eb53a3bfa3906f4aef.tar.bz2
CameraHal: Add filter to smooth faces from OMXCamera
Filter faces coming from Ducati to smooth out the jitter. This patch requires the face tracking mechanism in Ducati so faces are ordered properly for each frame. Also, this patch is only providing filtering of face sizes since Ducati is already smoothing the face positions. b/5141268 Change-Id: Ia7ee1c46ca41fcdd1e45505242f2802b0b4fb647 Orginal-author: Mandeep Kumar <mandeep@ti.com> Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'camera/inc')
-rw-r--r--camera/inc/OMXCameraAdapter/OMXCameraAdapter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
index 6ec32ad..2a6ffc2 100644
--- a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
+++ b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
@@ -69,6 +69,7 @@ namespace android {
#define ZOOM_STAGES 31
#define FACE_DETECTION_BUFFER_SIZE 0x1000
+#define MAX_NUM_FACES_SUPPORTED 35
#define EXIF_MODEL_SIZE 100
#define EXIF_MAKE_SIZE 100
@@ -756,6 +757,9 @@ private:
bool mFaceDetectionRunning;
bool mFaceDetectionPaused;
+ camera_face_t faceDetectionLastOutput [MAX_NUM_FACES_SUPPORTED];
+ int faceDetectionNumFacesLastOutput;
+
//Geo-tagging
EXIFData mEXIFData;