派生自 libgowrapper/face

zhangmeng
2020-01-14 50b861eba5c7d7db7d1e755c5f53eba9e3fb34e2
add chan cache for async
1个文件已修改
6 ■■■■ 已修改文件
goface.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
goface.go
@@ -175,15 +175,15 @@
}
// Propertize prop
func (s *SDKFace) Propertize(fpos sdkstruct.CFacePos, data []byte, w, h, c int, ch int) *sdkstruct.CThftResult {
func (s *SDKFace) Propertize(fpos sdkstruct.CFacePos, data []byte, w, h, c int, ch int) sdkstruct.CThftResult {
    if !s.propertizer {
        return nil
        return sdkstruct.CThftResult{Age: 0}
    }
    pos := (*C.cFacePos)(unsafe.Pointer(&fpos))
    result := C.c_api_face_property(pos, (*C.uchar)(unsafe.Pointer(&data[0])), C.int(w), C.int(h), C.int(ch))
    s.printLog("->face--> Propertize")
    return (*sdkstruct.CThftResult)(unsafe.Pointer(&result))
    return *(*sdkstruct.CThftResult)(unsafe.Pointer(&result))
}
// CFaceInfoArrayToGoArray convert cFaceInfo array to go