EDT PDV SDK Documentation 6.2.0
|
Functions | |
int | pdv_initcam (PdvDev pdv_p, PdvDependent dd_p, int unit, Edtinfo *ei_p, const char *cfgfname, char *bitdir, int pdv_debug) |
Initializes the frame grabber and sets the expected camera configuration. This is the "guts" of the initcam CLI application that gets executed to initialize when you choose a camera. The library subroutine is provided for programmers who wish to incorporate the initialization procedure into their own applications. More... | |
int | pdv_readcfg (const char *cfgfile, PdvDependent dd_p, Edtinfo *ei_p) |
Reads configuration file and fills in the dependent and edtinfo structures based on the information in the file. These structures can then be passed in to pdv_initcam() to initialize the board and camera. More... | |
PdvDependent | pdv_alloc_dependent (void) |
Allocates a PdvDependent structure, for use by pdv_readcfg and pdv_initcam, and checks for and reports error conditions as a result of the alloc. More... | |
Read configuration files and initialize the board and camera. Typically the external utility program initcam handles these tasks (possibly invoked by an EDT application such as vlviewer or camconfig.) initcam calls these subroutines to do the work, and they are available as well for programmers who wish to invoke them directly from a user application. See the initcam.c source code for an example of how how to use these subroutines to read configration files and initialize the board from within an application.
int pdv_initcam | ( | PdvDev | pdv_p, |
PdvDependent | dd_p, | ||
int | unit, | ||
Edtinfo * | ei_p, | ||
const char * | cfgfname, | ||
char * | bitdir, | ||
int | pdv_debug | ||
) |
Initializes the frame grabber and sets the expected camera configuration. This is the "guts" of the initcam
CLI application that gets executed to initialize when you choose a camera. The library subroutine is provided for programmers who wish to incorporate the initialization procedure into their own applications.
dd_p
is used by the library until it is either freed by edt_close(), or no longer used by later calls to this function; this means that if you call pdv_initcam() again you should free() pdv_p->dd_p first to avoid memory leaks.For a complete example of initializing
clsiminit
CLI application.initcam
CLI application.Example
int pdv_readcfg | ( | const char * | cfgfile, |
PdvDependent | dd_p, | ||
Edtinfo * | ei_p | ||
) |
Reads configuration file and fills in the dependent and edtinfo structures based on the information in the file. These structures can then be passed in to pdv_initcam() to initialize the board and camera.
PdvDependent pdv_alloc_dependent | ( | void | ) |
Allocates a PdvDependent structure, for use by pdv_readcfg and pdv_initcam, and checks for and reports error conditions as a result of the alloc.
The structure should be deallocated with free() later.