--- /dev/null
+/*
+ Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
+
+ This file is part of face-engine
+ Written by Hyunwoo Kim <hw4444.kim@samsung.com>
+
+ PROPRIETARY/CONFIDENTIAL
+
+ This software is the confidential and proprietary information of
+ SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
+ disclose such Confidential Information and shall use it only in
+ accordance with the terms of the license agreement you entered
+ into with SAMSUNG ELECTRONICS.
+ SAMSUNG make no representations or warranties about the suitability
+ of the software, either express or implied, including but not limited
+ to the implied warranties of merchantability, fitness for a particular
+ purpose, or non-infringement. SAMSUNG shall not be liable for any
+ damages suffered by licensee as a result of using, modifying or
+ distributing this software or its derivatives.
+ */
+
+
+#ifndef __FACE_ENGINE_H__
+#define __FACE_ENGINE_H__
+
+#include <stdbool.h>
+
+/**
+ * @brief Facial engine handle type.
+ */
+typedef void* face_engine_h;
+
+/**
+ * @brief Enumerations of error codes for the FacialEngine API.
+ */
+typedef enum {
+ FACE_ENGINE_ERROR_NONE = 0, /**< Successful */
+ FACE_ENGINE_ERROR_INVALID_PARAMTER = -1, /**< A specified input parameter is invalid. */
+ FACE_ENGINE_ERROR_OUT_OF_MEMORY = -2, /**< The memory is insufficient. */
+ FACE_ENGINE_ERROR_OPERATION_FAILED = -3, /**< Does not support this property. À߸øµÈ state */
+ FACE_ENGINE_ERROR_FAILURE = -4, /**< A system error has occurred. ³»ºÎ error */
+ FACE_ENGINE_ERROR_ENGINE_NOT_FOUND = -5,
+} face_engine_error_e;
+
+/**
+ * @brief Enumerations of input image format for the FacialEngine API.
+ */
+typedef enum {
+ FACE_ENGINE_IMAGE_FORMAT_Y, /**< luminance only image*/
+} face_engine_image_colorspace_e;
+
+/**
+ * @brief Enumerations of facial expression that recognized for the FacialEngine API.
+ */
+typedef enum {
+ FACE_ENGINE_EXPRESSION_UNKNOWN,
+ FACE_ENGINE_EXPRESSION_NUETRAL, /**< Normal expression */
+ FACE_ENGINE_EXPRESSION_ANGRY, /**< Angry expression */
+ FACE_ENGINE_EXPRESSION_SMILE, /**< Cheerful expression */
+ FACE_ENGINE_EXPRESSION_SURPRISE, /**< Suprised expression */
+} face_engine_expression_e;
+
+/**
+ * @brief Enumerations of the eye state for the FacialEngine API.
+ */
+typedef enum {
+ FACE_ENGINE_EYE_UNKNOWN, /**< The no eye state, when the eye detect fails */
+ FACE_ENGINE_EYE_OPENED, /**< The state when eye is opened */
+ FACE_ENGINE_EYE_CLOSED, /**< The state when eye is closed */
+} face_engine_eye_e;
+
+typedef enum {
+ FACE_ENGINE_IMAGE_TYPE_SINGLE, /**< */
+ FACE_ENGINE_IMAGE_TYPE_CONTINIOUS,
+} face_engine_image_type_e;
+
+typedef struct {
+ int x; /**< x-coordinate */
+ int y; /**< y-coordinate */
+} face_engine_point_t;
+
+typedef struct {
+ int x; /**< most left coordinate of detected face region */
+ int y; /**< most top coordinate of detected face region */
+ int w; /**< width of detected face region */
+ int h; /**< height of detected face region */
+} face_engine_rect_t;
+
+typedef struct {
+ unsigned char *pixel; /**< pixel data */
+
+ int width; /**< image data's width */
+ int height; /**< image data's height */
+
+ face_engine_image_colorspace_e colorspace; /**< color space */
+} face_engine_image_t;
+
+typedef union {
+ struct {
+ face_engine_rect_t face; // 16
+
+ face_engine_point_t lefteye; // 8
+ face_engine_point_t righteye; // 8
+
+ face_engine_rect_t mouse; // 16
+ };
+
+ char Reserved[128];
+} face_engine_component_t;
+
+typedef union {
+ struct {
+ int nMaxFaceNum; /**< */
+ int nScale; /**< */
+ int nInterval; /**< */
+ int nDetectionOption; /* 0 for FAST, 1 for ROBUST */
+ };
+
+ char Reserved[32];
+} face_engine_param_t;
+
+typedef struct {
+ unsigned char *data; /**< result data of face information */
+ unsigned int len; /**< size of result data */// in byte unit
+} face_engine_feature_t;
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+face_engine_error_e face_engine_create(face_engine_h *handle);
+face_engine_error_e face_engine_destroy(face_engine_h handle);
+
+face_engine_error_e face_engine_get_param(face_engine_h handle, face_engine_param_t *param);
+face_engine_error_e face_engine_set_param(face_engine_h handle, const face_engine_param_t *param);
+
+face_engine_error_e face_engine_detect_faces(face_engine_h handle, face_engine_image_type_e image_type, const face_engine_image_t *image, face_engine_rect_t *face[], int *count);
+
+face_engine_error_e face_engine_track_faces(face_engine_h handle, const face_engine_rect_t *prev_rect, face_engine_rect_t *cur_rect);
+
+face_engine_error_e face_engine_extract_face_component(face_engine_h handle, const face_engine_image_t *image, const face_engine_rect_t *rect, face_engine_component_t *component);
+face_engine_error_e face_engine_extract_face_feature(face_engine_h handle, const face_engine_image_t *image, const face_engine_component_t *component, face_engine_feature_t *feature);
+
+face_engine_error_e face_engine_compare_face_feature(const face_engine_feature_t *A, const face_engine_feature_t *B, int *similarity);
+
+face_engine_error_e face_engine_recognize_face_expression(face_engine_h handle, const face_engine_image_t *image , const face_engine_component_t *component, face_engine_expression_e *expression);
+
+face_engine_error_e face_engine_recognize_blink(face_engine_h handle, const face_engine_image_t *image, const face_engine_component_t *component, face_engine_eye_e *lefteye, face_engine_eye_e *righteye);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif // __TIZEN_UIX_FACE_ENGINE_H__
+
--- /dev/null
+Name: face-engine
+Summary: Face engine v1.0
+Version: 1.0.16
+Release: 1
+Group: misc
+License: Samsung proprietary
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: embryo-bin
+BuildRequires: pkgconfig(dlog)
+
+%description
+Face recognition engine v1.0.
+
+%package -n libface-engine
+Summary: Face engine library.
+Group: misc
+Requires: %{name} = %{version}
+
+Provides : libface-engine-plugin.so
+Provides : libface-engine.so
+
+%description -n libface-engine
+Face engine library
+
+# Devel package
+%package -n libface-engine-devel
+Summary: Face engine development library(devel)
+Group: Development/Libraries
+Requires: libface-engine = %{version}-%{release}
+
+%description -n libface-engine-devel
+Face engine development library
+
+%prep
+%setup -q
+
+%build
+
+%ifarch %{arm}
+%define ARCH arm
+%else
+%define ARCH i586
+%endif
+
+%define DATADIR /usr/share/face-engine/data/
+
+cmake . -DCMAKE_INSTALL_PREFIX="/usr" -DARCH=%{ARCH} -DCMAKE_DATA_DIR=%{DATADIR}
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+
+%files
+%defattr(-,root,root,-)
+
+# /home/root/*
+
+%files -n libface-engine
+%defattr(-,root,root,-)
+/usr/lib/libface-engine.so*
+
+/usr/lib/libface-engine-plugin.so
+/usr/share/face-engine/data/*.bin
+
+%files -n libface-engine-devel
+%defattr(-,root,root,-)
+/usr/lib/pkgconfig/*
+/usr/include/face-engine/*
+