0

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.

Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241

1 Answers1

1

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

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