2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #ifndef __TIZEN_UIX_FACE_PRIV_H__
17 #define __TIZEN_UIX_FACE_PRIV_H__
19 #include "face-debug.h"
30 #define FACE_COMPONENT_MAGIC (0x4e3f2e1f)
31 #define FACE_FEATURE_MAGIC (0x09090909)
32 #define FACE_IMAGE_MAGIC (0x1a2b3c4d)
33 #define FACE_INVALID_MAGIC (0xDEADBEAF)
35 typedef struct face_component_s {
36 face_rect_s face; // 16
38 face_point_s lefteye; // 8
39 face_point_s righteye; // 8
41 face_rect_s mouth; // 16
47 typedef struct face_image_s {
48 unsigned char *pixel; /**< pixel data */
50 int width; /**< image data's width */
51 int height; /**< image data's height */
55 face_image_colorspace_e colorspace; /**< color space */
60 typedef struct face_feature_s {
61 unsigned char *data; /**< result data of face information */
62 unsigned int len; /**< size of result data */// in byte unit
67 const char *_face_convert_error(int err);
71 int face_component_create(face_component_h *face_component);
73 #endif // __TIZEN_UIX_FACE_PRIV_H__