开发者

Gambit Scheme FFI

I am trying to use ffi to call opencv's cvReleaseCapture,

void cvReleaseCapture( CvCapture** capture );

http://www.ai.rug.nl/vakinformatie/pas/content/Highgui/opencvref_highgui.htm

I have tried,

(define release-capture (c-lambda ((pointer (pointer "CvCapture"))) void "cvReleaseCapture"))

didn开发者_运维技巧't relly worked.


(c-define-type CvCapture (pointer (pointer (struct "CvCapture"))))

(define release-capture (c-lambda (CvCapture) void "cvReleaseCapture"))

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜