Matrox Framegrabber interface [message #29311] |
Mon, 11 February 2002 05:01 |
Gert Van de Wouwer
Messages: 21 Registered: January 2002
|
Junior Member |
|
|
hi,
I need to interface a camera via a Matrox framegrabber that comes with a
c-library to grab images, and I want to use these functions through a dll.
The documentation specifies that the memory in which the image is grabbed
must be in non-paged memory. To do this, I see two possibilities:
1) allocate memory in IDL, go to my dll, and specify that the grabber should
use the IDL-allocated memory. But hoz can I make sure that this memory is
non-paged?
2) go to my dll, use the Matrox lib's memory allocation function, and use
this memory in IDL. But how can I return this memory in a valid IDL member.
Off course, the easy way is: allocate IDL memory, go to my dll, allocate the
Matrox memory, grab image, copy image data to the IDL memory, destroy matrox
mem, return.... But since the acquisition is a time critical step...
any help is appreciated,
Gert
PS. I use IDL 5.4 on Win2000 and Visual studio C++ 6.0
|
|
|