Example code is provided at briefcodeforimagerecording. More...
Data Structures | |
struct | VCCamInit |
Camera Settings only configurable during Initialization. More... | |
struct | VCCamDesc |
Camera Description. More... | |
struct | VCCamCfg |
Camera Settings. More... | |
Enumerations | |
enum | VCCamType { CAMTYPE_UNSET = 0, CAMTYPE_NANO_Z_0 = 1, CAMTYPE_NANO_Z_RH_0 = 2, CAMTYPE_PRO_Z_0 = 3, CAMTYPE_NANO_3D_Z_0 = 4 } |
Camera Type. More... | |
Functions | |
I32 | vc_cam_deinit (VCCamCfg *cam) |
Deinitializes the Camera. More... | |
I32 | vc_cam_init_raw (VCCamCfg *camNew, VCCamInit *camInit) |
Initializes the Camera. More... | |
I32 | vc_cam_init (VCCamCfg *camNew, VCCaptCfg *cptNew, VCCamInit *camInit, VCTrgInit *trgInit, VCSenInit *senInit) |
Initializes a Standard Camera Setup. More... | |
struct VCCamInit |
This structure keeps camera settings which are only configurable during Initialization.
struct VCCamDesc |
This structure keeps Camera descripting information. Never change anything in here, also not in substructures!
Data Fields | ||
---|---|---|
VCCamType | camType |
Camera Type |
I32 | fdMem |
Camera Access File Handle |
U8 * | physBase |
Initial Address for driver memory access |
U32 | physBaseBytes |
Total Bytes Available through memory driver |
VCGpioCfg | gpio |
For GPIO access |
VCCamInit | init |
Initialization Values |
struct VCCamCfg |
This structure keeps settings for a camera configuration.
Data Fields | ||
---|---|---|
VCCamDesc | d |
Read-Only Description |
enum VCCamType |
This function deinitializes the camera wich was formerly initialized by the function vc_cam_init() or vc_cam_init_raw().
This function initializes the camera.
After calling this function, one can add capture configurations by calling the function vc_cam_init(). Deinitialization is necessary before leaving your program by using the function vc_cam_deinit().
You can provide NULL as value for camInit
. Then the default values will be used. If you want to add your own settings, please be sure to first pass default values to them, e.g. for camInit
the contents of the definition VCCamInit_Default
, and second apply your settings.
Content of camNew
will be overwritten, so be sure to set values not before the initialisation has been done (e.g. by this function).
camNew | New Camera Struct, will be overwritten. |
camInit | Set to NULL, or provide it with VCCamInit_Default applied and changed by your needs. |
I32 vc_cam_init | ( | VCCamCfg * | camNew, |
VCCaptCfg * | cptNew, | ||
VCCamInit * | camInit, | ||
VCTrgInit * | trgInit, | ||
VCSenInit * | senInit | ||
) |
This function initializes the standard camera configuration which can be used for image acquisitions: This function calls vc_capt_init(). Deinitialization is necessary before leaving your program by using the function vc_capt_deinit() as well as vc_cam_deinit().
You can provide NULL as value for camInit
, trgInit
and senInit
. Then the default values will be used. If you want to add your own settings, please be sure to first pass default values to them, e.g. for senInit
the contents of the definition VCSenInit_Default
, and second apply your settings.
Content of camNew
and @cptNew will be overwritten, so be sure to set values not before their initialisation has been done (e.g. by this function).
This function must not be called more than once before proper deinitialisation.
camNew | New Camera Struct, will be overwritten. |
cptNew | New Capture Struct, will be overwritten. |
camInit | Set to NULL, or provide it with VCCamInit_Default applied and changed by your needs. |
trgInit | Set to NULL, or provide it with VCTrgInit_Default applied and changed by your needs. |
senInit | Set to NULL, or provide it with VCSenInit_Default applied and changed by your needs. |