#include "fcdynamic.h"
Functions | |
const unsigned long * | get_mem () |
Returns a pointer to buffer memory allocated by the frame buffer. | |
int | init_cam (Fg_Struct **grabber, int memsize, int buffers, int camlink) |
Initializes the framegrabber and camera. | |
int | acquire_imgs (Fg_Struct *fg, int *seq, int seq_len) |
Transfers the initial region of interest (ROI) information to the frame grabber. | |
int | deinit_cam (Fg_Struct *fg) |
Stops grabbing images and frees resources associated with the frame grabber. |
int acquire_imgs | ( | Fg_Struct * | fg, | |
int * | seq, | |||
int | seq_len | |||
) |
Transfers the initial region of interest (ROI) information to the frame grabber.
acquire_imgs tells the frame grabber to start grabbing an infinite number of images. This function will also write the ROI parameters to the frame grabber. The active ROIs will become active on the camera in the order that seq
lists them. After cycling through the list, the sequence repeats itself from the beginning. A seq
cannot exceed 4,096 entires and seq_len
must equal the number of entries in seq
.
grabber | an initialized Fg_Struct object defined in the Silicon Software API | |
seq | the sequence specifying when a ROI is active | |
seq_len | the length of seq . |
int deinit_cam | ( | Fg_Struct * | fg | ) |
Stops grabbing images and frees resources associated with the frame grabber.
deinit_cam stops the frame grabber from acquiring images and frees the resources used by the frame grabber.
grabber | an initialized Fg_Struct object defined in the Silicon Software API |
int init_cam | ( | Fg_Struct ** | grabber, | |
int | memsize, | |||
int | buffers, | |||
int | camlink | |||
) |
Initializes the framegrabber and camera.
init_cam performs the necessary initialization routines prior to acquiring images. memsize
should equal the image width x image height x buffers
. Although this is not enforced, undesired behavior may result.
grabber | an uninitialized Fg_Struct object defined in the Silicon Software API | |
memsize | the image buffer memory size in bytes | |
buffers | the number of buffer to divide the memsize bytes into | |
camlink | the camera link type as defined in the Silicon Software API |
FG_CL_DUALTAP_8_BIT
in order to maximize the number of pixel information that can be sent over the cable (physically) connecting the framegrabber and camera.