Functions for management of cameras and the library.
Functions | |
UINT32 DLL_FG_API | FG_get_camera_type (enum eFG_CAMERA_TYPE *camera_type) |
Returns the installed camera type. | |
UINT32 DLL_FG_API | FG_get_last_error (char *error_sting, UINT32 max_string_size) |
Returns an error description for the last failed library call. | |
UINT32 DLL_FG_API | FG_get_version (FG_VERSION *lib_version) |
Returns the library version. | |
UINT32 DLL_FG_API | FG_install_camera (enum eFG_CAMERA_TYPE camera_type,...) |
Opens and initializes the camera. | |
UINT32 DLL_FG_API | FG_uninstall_camera (void) |
Closes the camera. |
UINT32 DLL_FG_API FG_get_camera_type | ( | enum eFG_CAMERA_TYPE * | camera_type | ) |
Returns the installed camera type.
This function is useful if automatic detection of the camera type was used when calling FG_install_camera() (e.g. FG_CAMERA_TYPE_X_X_IMAGO_Vxx_AUTO).
camera_type | Pointer for storing the camera type |
UINT32 DLL_FG_API FG_get_last_error | ( | char * | error_sting, |
UINT32 | max_string_size ) |
Returns an error description for the last failed library call.
error_sting | A pointer to a preallocated buffer, which contains a zero-terminated string after a successful call. |
max_string_size | The total size of the passed buffer. The string will be truncated if the error message is too long. |
UINT32 DLL_FG_API FG_get_version | ( | FG_VERSION * | lib_version | ) |
Returns the library version.
A short summary which features the dependencies can be found in the Introduction. But this library is part of a complete SDK and inside this you will find a release document which describes the changes from version to version in detail.
lib_version | Pointer for storing the libary version |
UINT32 DLL_FG_API FG_install_camera | ( | enum eFG_CAMERA_TYPE | camera_type, |
... ) |
Opens and initializes the camera.
This function must be called before other camera functions can be used. All sensor parameters are initialized with default values.
camera_type | Selects the camera type to use. The value FG_CAMERA_TYPE_X_X_IMAGO_Vxx_AUTO can be used for automatic detection. Call FG_get_camera_type() to get the installed type. |
... | For GigE cameras, the function expects a 32-bit value containing the device's IPv4 address. |
UINT32 DLL_FG_API FG_uninstall_camera | ( | void | ) |
Closes the camera.
Before calling this function, image acquisition should be stopped and all image buffers should be released, please refer to the example code.