allwinner_a64/android/hardware/aw/camera/libfacedetection/ApperceivePeopleApi.h
2018-08-08 17:00:29 +08:00

46 lines
No EOL
1.1 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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