|
Camera API Technical Report:
Image Capture |
#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.