upload android base code part4
This commit is contained in:
parent
b9e30e05b1
commit
78ea2404cd
23455 changed files with 5250148 additions and 0 deletions
|
@ -0,0 +1,46 @@
|
|||
|
||||
#ifndef __APPERCEIVEPEOPLE_API_H___
|
||||
#define __APPERCEIVEPEOPLE_API_H___
|
||||
|
||||
#include <utils/StrongPointer.h>
|
||||
|
||||
namespace android {
|
||||
|
||||
struct APPERCEIVEPEOPLE_INFO
|
||||
{
|
||||
int scree_oriention;//横竖屏,横屏:1,竖屏:2
|
||||
int buffer_oriention; //buffer_oriention正常0,反了是1.
|
||||
};
|
||||
|
||||
typedef int (*apperceive_notify_cb)(int cmd, void * data, void *user);
|
||||
|
||||
enum APPERCEIVEPEOPLE_NOTITY_CMD{
|
||||
APPERCEIVEPEOPLE_NOTITY_CMD_REQUEST_FRAME,
|
||||
APPERCEIVEPEOPLE_NOTITY_CMD_RESULT,
|
||||
APPERCEIVEPEOPLE_NOTITY_CMD_POSITION,
|
||||
APPERCEIVEPEOPLE_NOTITY_CMD_REQUEST_ORIENTION,
|
||||
};
|
||||
|
||||
class CApperceivePeople;
|
||||
|
||||
enum APPERCEIVEPEOPLE_OPS_CMD
|
||||
{
|
||||
APPERCEIVEPEOPLE_OPS_CMD_START,
|
||||
APPERCEIVEPEOPLE_OPS_CMD_STOP,
|
||||
APPERCEIVEPEOPLE_OPS_CMD_REGISTE_USER,
|
||||
};
|
||||
|
||||
struct ApperceivePeopleDev
|
||||
{
|
||||
void * user;
|
||||
sp<CApperceivePeople> priv;
|
||||
void (*setCallback)(ApperceivePeopleDev * dev, apperceive_notify_cb cb);
|
||||
int (*ioctrl)(ApperceivePeopleDev * dev, int cmd, int para0, int para1,void* arg ,int mode_idx);
|
||||
};
|
||||
|
||||
extern int CreateApperceivePeopleDev(ApperceivePeopleDev ** dev);
|
||||
extern void DestroyApperceivePeopleDev(ApperceivePeopleDev * dev);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
#ifndef __FACE_DETECTION_API_H___
|
||||
#define __FACE_DETECTION_API_H___
|
||||
|
||||
#include <utils/StrongPointer.h>
|
||||
|
||||
namespace android {
|
||||
|
||||
typedef int (*face_notify_cb)(int cmd, void * data, void *user);
|
||||
|
||||
enum FACE_NOTITY_CMD{
|
||||
FACE_NOTITY_CMD_REQUEST_FRAME,
|
||||
FACE_NOTITY_CMD_RESULT,
|
||||
FACE_NOTITY_CMD_POSITION,
|
||||
FACE_NOTITY_CMD_REQUEST_ORIENTION,
|
||||
};
|
||||
|
||||
class CFaceDetection;
|
||||
|
||||
enum FACE_OPS_CMD
|
||||
{
|
||||
FACE_OPS_CMD_START,
|
||||
FACE_OPS_CMD_STOP,
|
||||
FACE_OPS_CMD_REGISTE_USER,
|
||||
};
|
||||
|
||||
struct FocusArea_t
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
int x1;
|
||||
int y1;
|
||||
};
|
||||
|
||||
struct FaceDetectionDev
|
||||
{
|
||||
void * user;
|
||||
sp<CFaceDetection> priv;
|
||||
void (*setCallback)(FaceDetectionDev * dev, face_notify_cb cb);
|
||||
int (*ioctrl)(FaceDetectionDev * dev, int cmd, int para0, int para1);
|
||||
};
|
||||
|
||||
extern int CreateFaceDetectionDev(FaceDetectionDev ** dev);
|
||||
extern void DestroyFaceDetectionDev(FaceDetectionDev * dev);
|
||||
|
||||
}
|
||||
|
||||
#endif // __FACE_DETECTION_API_H__
|
|
@ -0,0 +1 @@
|
|||
#ifndef __SMILE_DETECTION_API_H___
#define __SMILE_DETECTION_API_H___
#include <utils/StrongPointer.h>
namespace android {
/*input and output data*/
typedef struct FacePosition
{
int faceTopLeftX;
int faceTopLeftY;
int faceWidth;
int faceHeigth;
}FacePosition;
typedef struct FrameFaceData
{
FacePosition *facePositions;
int faceNum;
unsigned char *frameData;
int frameWidth;
int frameHeight;
int angle;//0,90,180,270
}FrameFaceData;
typedef struct Status
{
int num;
int *sta;
}Statuss;
/*Smile Detect*/
typedef int (*smile_notify_cb)(int cmd, void * data, void *user);
enum SMILE_NOTITY_CMD{
SMILE_NOTITY_CMD_RESULT,
};
class SmileDetection;
enum SMILE_OPS_CMD
{
SMILE_OPS_CMD_START,
SMILE_OPS_CMD_STOP,
SMILE_OPS_CMD_REGISTE_USER,
};
struct SmileDetectionDev
{
void * user;
sp<SmileDetection> priv;
void (*setCallback)(SmileDetectionDev * dev, smile_notify_cb cb);
int (*ioctrl)(SmileDetectionDev * dev, int cmd, int para0, FrameFaceData *para1);
};
extern int CreateSmileDetectionDev(SmileDetectionDev ** dev);
extern void DestroySmileDetectionDev(SmileDetectionDev * dev);
/*eye blink detection*/
typedef int (*eye_blink_notify_cb)(int cmd, void * data, void *user);
enum EYE_BLINK_NOTITY_CMD{
EYE_BLINK_NOTITY_CMD_RESULT,
};
class EyeBlinkDetection;
enum EYE_BLINK_OPS_CMD
{
EYE_BLINK_OPS_CMD_START,
EYE_BLINK_OPS_CMD_STOP,
EYE_BLINK_OPS_CMD_REGISTE_USER,
};
struct EyeBlinkDetectionDev
{
void * user;
sp<EyeBlinkDetection> priv;
void (*setCallback)(EyeBlinkDetectionDev * dev, eye_blink_notify_cb cb);
int (*ioctrl)(EyeBlinkDetectionDev * dev, int cmd, int para0, FrameFaceData *para1);
};
extern int CreateEyeBlinkDetectionDev(EyeBlinkDetectionDev ** dev);
extern void DestroyEyeBlinkDetectionDev(EyeBlinkDetectionDev * dev);
}
#endif // __FACE_DETECTION_API_H__
|
Loading…
Add table
Add a link
Reference in a new issue