Fw: [cffi-devel] How would i use a function with a callback parameter

2013-10-28 Thread Joeish W
On , Joeish W wrote: > >I got the callback working somewhat to illustrate here is my code so far below >and again im attempting to convert the lowest function on this page: >http://opencv-srf.blogspot.com/2011/11/track-bars.html > >(defcallback a :void  ((contrast :int) (img cv-arr) (des

[cffi-devel] How would i use a function with a callback parameter

2013-10-27 Thread f9cef2aa
>here is my attempt but i have no idea how to define a function as a pointer >and ive tried alot of  variations but is too long to post.  The defun change >contrast compiles btw...i tried using make-pointer to make the change-contrast >function a pointer but make-pointer wants it to be a real...

[cffi-devel] How would i use a function with a callback parameter

2013-10-26 Thread Joeish W
the below function create-trackbar-example  works except for the last parameter of create-trackbar, "test" ..the test parameter is supposed to be a function that gets called  when the trackbar moves.  cvCreateTrackbar, the function I'm wrapping, creates a gui slider on the Opencv output window