Control and configure general parameters of NCC camera. More...
Go to the source code of this file.
Classes | |
struct | SensorModesPara_t |
List of camera control parameters. More... | |
struct | SensorModesList_t |
List of camera control parameters. More... | |
Macros | |
#define | MAX_MODE_SIZE 5 |
The maximum of the modes which the ncc cameras supported. More... | |
Enumerations | |
enum | CAM_CTRL_AWB_MODE { CAMERA_CONTROL_AWB_MODE__OFF, CAMERA_CONTROL_AWB_MODE__AUTO, CAMERA_CONTROL_AWB_MODE__INCANDESCENT, CAMERA_CONTROL_AWB_MODE__FLUORESCENT, CAMERA_CONTROL_AWB_MODE__WARM_FLUORESCENT, CAMERA_CONTROL_AWB_MODE__DAYLIGHT, CAMERA_CONTROL_AWB_MODE__CLOUDY_DAYLIGHT, CAMERA_CONTROL_AWB_MODE__TWILIGHT, CAMERA_CONTROL_AWB_MODE__SHADE } |
The WB modes list,could disable or enable the AWB,swithc to MWB mode. More... | |
enum | VIDEO_CTRL_OUT_MDOE { VIDEO_OUT_DISABLE, VIDEO_OUT_SINGLE, VIDEO_OUT_CONTINUOUS } |
Set the video stream mode of the ncc camera. More... | |
Functions | |
int | device_ctrl_id_get (char *serial_num) |
Get index of device handle according to serial number. More... | |
int | device_ctrl_get_sensor_mode_list (int dev_index, SensorModesList_t *list) |
Get mode list which camera supported. More... | |
int | device_ctrl_select_sensor_mode (int dev_index, int mode_index) |
Select sensor and resolution. More... | |
int | device_ctrl_get_fw_version (int dev_index, char *fw_version, int size) |
Get firmware version. More... | |
int | camera_ctrl_ae_enabled (int dev_index) |
Enable AE of the camera. More... | |
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. More... | |
int | camera_ctrl_set_awb_mode (int dev_index, CAM_CTRL_AWB_MODE awb_mode) |
Set white balance mode. More... | |
Control and configure general parameters of NCC camera.
#define MAX_MODE_SIZE 5 |
The maximum of the modes which the ncc cameras supported.
MAX_MODE_SIZE
enum CAM_CTRL_AWB_MODE |
The WB modes list,could disable or enable the AWB,swithc to MWB mode.
enum VIDEO_CTRL_OUT_MDOE |
int camera_ctrl_ae_enabled | ( | int | dev_index | ) |
Enable AE of the camera.
[in] | dev_index | [Range from 0 to SensorModesConfig.num] |
0 | success, others follow enum usb_error |
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.
[in] | dev_index,if | detected more than two cameras ,need selete one [Range from 0 to SensorModesConfig.num] |
[in] | exp_us,[unit | us, Max value: 1/fps*1000*1000] |
[in] | iso_val,exposure | gain.The range of the value is get from SensorModesPara_t.minGain and SensorModesPara_t.maxGain |
0 | success, others follow enum usb_error |
int camera_ctrl_set_awb_mode | ( | int | dev_index, |
CAM_CTRL_AWB_MODE | awb_mode | ||
) |
Set white balance mode.
[in] | dev_index,if | detected more than two cameras ,need selete one [Range from 0 to SensorModesConfig.num] |
[in] | awb_mode,CAM_CTRL_AWB_MODE | mode |
0 | success, others follow enum usb_error |
int device_ctrl_get_fw_version | ( | int | dev_index, |
char * | fw_version, | ||
int | size | ||
) |
Get firmware version.
[in] | dev_index,the | active ncc device scaned by ncc sdk,could use the device's index to config camera |
[out] | *fw_version,get | the firmware version from ncc camera or device |
0 | success, others follow enum usb_error |
int device_ctrl_get_sensor_mode_list | ( | int | dev_index, |
SensorModesList_t * | list | ||
) |
Get mode list which camera supported.
[in] | dev_index,the | active ncc device scaned by ncc sdk,could use the device's index to config camera |
[out] | *list,point | to a SensorModesList_t |
0 | success, others follow enum usb_error |
int device_ctrl_id_get | ( | char * | serial_num | ) |
Get index of device handle according to serial number.
[in] | *serial_num | serial number of device |
>0 | index of device controller corresponding to serial number |
-1 | No corresponding serial number found |
int device_ctrl_select_sensor_mode | ( | int | dev_index, |
int | mode_index | ||
) |
Select sensor and resolution.
[in] | dev_index | [Range from 0 to SensorModesConfig.num] |
[in] | mode_index,selecte | the SensorModesPara_t index get from camera |
0 | success, others follow enum usb_error |