Skip to content

Commit

Permalink
LibUpdate_3.3.4
Browse files Browse the repository at this point in the history
更新内容
- 优化风格化滤镜性能
- 优化鉴权失败时的表现
- 包含高质量美颜和高性能美颜两个方案
- 其他已知问题修复
  • Loading branch information
jdbbjd committed Apr 18, 2017
1 parent 645030a commit 3b482cd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions FULiveDemo/Faceunity/FaceUnity-SDK-iOS/Headers/funama.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ typedef struct{

#define FU_FORMAT_AVATAR_INFO 12
typedef struct{
void* p_translation;
void* p_rotation;
void* p_expression;
int rotation_mode;
float* p_translation;
float* p_rotation;
float* p_expression;
float* rotation_mode;
float* pupil_pos;
int is_valid;
}TAvatarInfo;

#define FU_FORMAT_VOID 13

#ifdef __cplusplus
extern "C"{
#endif
Expand Down Expand Up @@ -242,10 +246,7 @@ FUNAMA_API int fuBeautifyImage(
\param n_items is the number of items
\return a GLuint texture handle containing the rendering result if out_format isn't FU_FORMAT_GL_CURRENT_FRAMEBUFFER
*/
FUNAMA_API int fuTrackFace(
int out_format,void* out_ptr,
int in_format,void* in_ptr,
int w,int h,int frame_id, int* p_items,int n_items);
FUNAMA_API int fuTrackFace(int in_format,void* in_ptr,int w,int h);

/**
\brief Generalized interface for rendering a list of items with extension.
Expand Down Expand Up @@ -375,16 +376,21 @@ FUNAMA_API void fuSetQualityTradeoff(float quality);
\param name is among "landmarks", "eye_rotation", "translation", "rotation"
\param pret allocated memory space as container
\param num is number of float allocated in pret
eg: "landmarks" - 150 float
eg: "landmarks" - 75*2 float
"landmarks_ar" - 75*3 float
"eye_rotation" - 4
"translation" - 3
"rotation" - 4
"projection_matrix" - 16
\return 1 means successful fetch, container filled with info
0 means failure, general failure is due to invalid face info
other specific failure will print on the console
*/
FUNAMA_API int fuGetFaceInfo(int face_id, char* name, float* pret, int num);

//todo: documentation
FUNAMA_API int fuAvatarBindItems(int avatar_item, int* p_items,int n_items, int* p_contracts,int n_contracts);

/**
\brief Get SDK version string
\return SDK version string in const char*
Expand Down
Binary file not shown.
Binary file modified FULiveDemo/Faceunity/FaceUnity-SDK-iOS/Resources/v3.bundle
Binary file not shown.
Binary file modified FULiveDemo/Faceunity/FaceUnity-SDK-iOS/libnama.a
100755 → 100644
Binary file not shown.

0 comments on commit 3b482cd

Please sign in to comment.