openncc frame
cameraCtrl.h
Go to the documentation of this file.
1 
8 #ifndef _CAMERA_CONTROL_H
9 #define _CAMERA_CONTROL_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
19 #define MAX_MODE_SIZE 5
20 
25 typedef enum {
36 
41 typedef enum
42 {
47 
52 typedef struct
53 {
54  char moduleName[16];
55  int camWidth;
56  int camHeight;
57  int camFps;
58  int AFmode;
59  int maxEXP;
60  int minGain;
61  int maxGain;
63 
68 typedef struct
69 {
70  int num;
73 
81 int device_ctrl_id_get(char* serial_num);
82 
103 int device_ctrl_get_sensor_mode_list(int dev_index, SensorModesList_t* list);
104 
115 int device_ctrl_select_sensor_mode(int dev_index, int mode_index);
116 
117 
138 int device_ctrl_get_fw_version(int dev_index, char* fw_version, int size);
139 
148 int camera_ctrl_ae_enabled(int dev_index);
149 
150 
160 int camera_ctrl_me_set_exp_gain(int dev_index, unsigned int exp_us, unsigned int iso_val);
161 
169 int camera_ctrl_set_awb_mode(int dev_index, CAM_CTRL_AWB_MODE awb_mode);
170 
171 #ifdef __cplusplus
172 }
173 #endif
174 #endif /* _CAMERA_CONTROL_H */
#define MAX_MODE_SIZE
The maximum of the modes which the ncc cameras supported.
Definition: cameraCtrl.h:19
< MWB for WARM_FLUORESCENT,4
Definition: cameraCtrl.h:31
int camera_ctrl_me_set_exp_gain(int dev_index, unsigned int exp_us, unsigned int iso_val)
Set the exposure time and gain of the camera.
int maxEXP
< support AF or not, if your camera use fixed focal lens, not support it
Definition: cameraCtrl.h:59
Definition: cameraCtrl.h:33
int camWidth
< the name of the sensor
Definition: cameraCtrl.h:55
int device_ctrl_id_get(char *serial_num)
Get index of device handle according to serial number.
int camFps
< output resolution of the height
Definition: cameraCtrl.h:57
Definition: cameraCtrl.h:43
Definition: cameraCtrl.h:26
< MWB for INCANDESCENT,2
Definition: cameraCtrl.h:29
int minGain
< maximum exposure time, unit us
Definition: cameraCtrl.h:60
int camera_ctrl_ae_enabled(int dev_index)
Enable AE of the camera.
int AFmode
< frame rates per second
Definition: cameraCtrl.h:58
< MWB for FLUORESCENT,3
Definition: cameraCtrl.h:30
int num
Definition: cameraCtrl.h:70
CAM_CTRL_AWB_MODE
The WB modes list,could disable or enable the AWB,swithc to MWB mode.
Definition: cameraCtrl.h:25
List of camera control parameters.
Definition: cameraCtrl.h:52
int maxGain
< min exposure gain value,100 means x1
Definition: cameraCtrl.h:61
Definition: cameraCtrl.h:45
< for MWB for TWILIGHT,7
Definition: cameraCtrl.h:34
int device_ctrl_select_sensor_mode(int dev_index, int mode_index)
Select sensor and resolution.
int device_ctrl_get_fw_version(int dev_index, char *fw_version, int size)
Get firmware version.
int camera_ctrl_set_awb_mode(int dev_index, CAM_CTRL_AWB_MODE awb_mode)
Set white balance mode.
List of camera control parameters.
Definition: cameraCtrl.h:68
< Disable the WB mode,and switch to MWB mode,user could set the WB mode,0
Definition: cameraCtrl.h:27
< MWB for DAYLIGHT,5
Definition: cameraCtrl.h:32
VIDEO_CTRL_OUT_MDOE
Set the video stream mode of the ncc camera.
Definition: cameraCtrl.h:41
int camHeight
< output resolution of the width
Definition: cameraCtrl.h:56
< Enable the WB mode,1
Definition: cameraCtrl.h:28
int device_ctrl_get_sensor_mode_list(int dev_index, SensorModesList_t *list)
Get mode list which camera supported.
Definition: cameraCtrl.h:44