开发者

Gambit Scheme FFI

开发者 https://www.devze.com 2023-02-20 05:31 出处:网络
I am trying to use ffi to call opencv\'s cvReleaseCapture, void cvReleaseCapture( CvCapture** capture );

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

精彩评论

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