take this for instance 

CvPointpoints[2];


id like to be able to cast  points[2] to the CvPoint struct  more info here 
http://docs.opencv.org/modules/core/doc/old_basic_structures.html?highlight=cvpoint#CvPoint


here is my struct which works for other things



;; (cffi:foreign-type-size '(:struct cv-point)) = 8 
(cffi:defcstruct cv-point 
(x :int) 
(y :int)) 


put in a defparameter you cant just go 

(defparameter points (cffi:foreign-alloc :int :count 2))

(defparameter a ((:struct cv-point) points))


you get an illegal function call error...any help is appreciated

Reply via email to