FG Camera Library  1.7.2.0 (2025-09-18)
Loading...
Searching...
No Matches
Library functions and callability

Library functions grouped by functionality and their dependencies.

Every library function returns a value of eFG_ERROR_CODE to indicate success or failure. FG_get_last_error() can be used to obtain additional information.

The following table shows the callability of functions depending on the camera state:

Camera state vs. function availability
ModuleFunctionCamera StateNew state
closedopenedbuffers allocatedstop called
Handle camera and libraryFG_install_camera()yesnononoopened
FG_uninstall_camera()noyesyesyesclosed
FG_get_camera_type()noyesyesyes-
FG_get_version()yesyesyesyes-
FG_get_last_error()yesyesyesyes-
Capture and buffer control FG_alloc_image()noyesyesnot usefulbuffers allocated
FG_append_image()nonoyesnot useful -
FG_free_image()nonoyesyesafter all buffers are released: opened
FG_get_image()nonoyesnot useful-
FG_get_timestamp()nonoyesnot useful-
FG_stop_image()nonot usefulyesnot usefulstop called
FG_trigger_image()nonot usefulyesnot useful-
FG_save_image()nonoyesyes-
FG_get_image_size()noyesyesyes-
Configure parametersFG_set_aoi()noyesno[1]no-
FG_set_scan_param()noyesno[1]no-
FG_set_black()noyesyesnot useful-
FG_set_gain()noyesyesnot useful-
FG_set_gain_rgb()noyesyesnot useful-
FG_set_shutter_time()noyesyesnot useful-
FG_set_trigger_mode()noyesyesnot useful-
FG_get_aoi()noyesyesyes-
FG_get_scan_param()noyesyesyes-
FG_get_pixel_order()noyesyesyes-
FG_get_black()noyesyesyes-
FG_get_gain()noyesyesyes-
FG_get_gain_rgb()noyesyesyes-
FG_get_shutter_time()noyesyesyes-
FG_get_trigger_mode()noyesyesyes-
Configure special featuresFG_set_special_option()noyesyesnot useful-
FG_get_special_option()noyesyesnot useful-

  1. Some sensors allow moving the AOI position at the fly.