Camera API Technical Report:
Image Capture

next up previous
Next: Errors and the Set Up: The Camera Library Previous: Composite Attribute Procedures

Image Capture

There are two routines for image capture. The read routine will transfer data directly in to the data buffer supplied as argument. The capture routine is for frame-buffer cameras and will grab an image into the frame-buffer.

#include <sys/types.h>
#include <camera.h>

int CameraRead( cam, buf )
Camera  cam;
caddr_t buf;

int CameraCapture( cam )
Camera  cam;

CameraRead() copies the camera output image directly into the data buffer. It is the users responsiblity to ensure that sufficient memory has been allocated - see earlier code for an example. The procedure returns zero on success, 1 otherwise.

CameraCapture() grabs an image into the frame-buffer.



Richard Baldock
1998-07-02