IDS peak comfortC v1.10.0
Loading...
Searching...
No Matches
Auto white balance control

Functions

PEAK_API_ACCESS_STATUS peak_AutoWhiteBalance_GetAccessStatus (peak_camera_handle hCam)
 Query the auto white balance access status.
 
PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Mode_Set (peak_camera_handle hCam, peak_auto_feature_roi_mode autoWhiteBalanceROIMode)
 Set the auto white balance ROI mode.
 
PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Mode_Get (peak_camera_handle hCam, peak_auto_feature_roi_mode *autoWhiteBalanceROIMode)
 Get the auto white balance ROI mode.
 
PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Offset_GetRange (peak_camera_handle hCam, peak_position *minAutoWhiteBalanceROIOffset, peak_position *maxAutoWhiteBalanceROIOffset, peak_position *incAutoWhiteBalanceROIOffset)
 Get the current range of valid auto white balance ROI offsets.
 
PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Size_GetRange (peak_camera_handle hCam, peak_size *minAutoWhiteBalanceROISize, peak_size *maxAutoWhiteBalanceROISize, peak_size *incAutoWhiteBalanceROISize)
 Get the current range of valid auto white balance ROI sizes.
 
PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Set (peak_camera_handle hCam, peak_roi autoWhiteBalanceROI)
 Set the auto white balance ROI.
 
PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Get (peak_camera_handle hCam, peak_roi *autoWhiteBalanceROI)
 Get the auto white balance ROI.
 
PEAK_API_STATUS peak_AutoWhiteBalance_Mode_Set (peak_camera_handle hCam, peak_auto_feature_mode autoWhiteBalanceMode)
 Set the auto white balance control mode.
 
PEAK_API_STATUS peak_AutoWhiteBalance_Mode_Get (peak_camera_handle hCam, peak_auto_feature_mode *autoWhiteBalanceMode)
 Get the auto white balance control mode.
 

Detailed Description

Auto white balance control related functions and types.

This feature is applied in the camera.
There is also a host implementation. See Host Features / Auto white balance control.

Function Documentation

◆ peak_AutoWhiteBalance_GetAccessStatus()

PEAK_API_ACCESS_STATUS peak_AutoWhiteBalance_GetAccessStatus ( peak_camera_handle  hCam)

Query the auto white balance access status.

Provides the current access status for the auto white balance feature.

This function implements the Access Status Query principle.

Parameters
[in]hCamThe camera handle.
Returns
PEAK_ACCESS_READWRITE The auto white balance feature is readable and writable.
PEAK_ACCESS_READONLY The auto white balance feature is readable only.
PEAK_ACCESS_GFA_LOCK The auto white balance feature is not accessible because the GFA write access is enabled.
PEAK_ACCESS_NONE The auto white balance feature is not accessible.
PEAK_ACCESS_NOT_SUPPORTED The auto white balance feature is not supported.
PEAK_ACCESS_INVALID The function failed. Call peak_Library_GetLastError to get the error code and description.

If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:

◆ peak_AutoWhiteBalance_Mode_Get()

PEAK_API_STATUS peak_AutoWhiteBalance_Mode_Get ( peak_camera_handle  hCam,
peak_auto_feature_mode *  autoWhiteBalanceMode 
)

Get the auto white balance control mode.

Reads the current auto white balance control mode.

Parameters
[in]hCamThe camera handle.
[out]autoWhiteBalanceModeThe current auto white balance control mode.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The auto white balance control feature is not available for read access. Check the access status via peak_AutoWhiteBalance_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER autoWhiteBalanceMode is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_AutoWhiteBalance_Mode_Set()

PEAK_API_STATUS peak_AutoWhiteBalance_Mode_Set ( peak_camera_handle  hCam,
peak_auto_feature_mode  autoWhiteBalanceMode 
)

Set the auto white balance control mode.

Writes the desired auto white balance control mode.

Parameters
[in]hCamThe camera handle.
[in]autoWhiteBalanceModeThe auto white balance control mode to set.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The auto white balance control feature is not available for write access. Check the access status via peak_AutoWhiteBalance_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER autoWhiteBalanceMode is an invalid auto feature mode. Check peak_auto_feature_mode.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_AutoWhiteBalance_ROI_Get()

PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Get ( peak_camera_handle  hCam,
peak_roi *  autoWhiteBalanceROI 
)

Get the auto white balance ROI.

Reads the current auto white balance ROI.

Parameters
[in]hCamThe camera handle.
[out]autoWhiteBalanceROIThe auto white balance ROI.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The auto white balance feature is not available for read access. Check the access status via peak_AutoWhiteBalance_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER autoWhiteBalanceROI is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_AutoWhiteBalance_ROI_Mode_Get()

PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Mode_Get ( peak_camera_handle  hCam,
peak_auto_feature_roi_mode *  autoWhiteBalanceROIMode 
)

Get the auto white balance ROI mode.

Reads the current auto white balance ROI mode.

Parameters
[in]hCamThe camera handle.
[out]autoWhiteBalanceROIModeThe current auto white balance ROI mode.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The auto white balance control feature is not available for read access. Check the access status via peak_AutoWhiteBalance_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER autoWhiteBalanceROIMode is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_AutoWhiteBalance_ROI_Mode_Set()

PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Mode_Set ( peak_camera_handle  hCam,
peak_auto_feature_roi_mode  autoWhiteBalanceROIMode 
)

Set the auto white balance ROI mode.

Writes the desired auto white balance ROI mode.

Parameters
[in]hCamThe camera handle.
[in]autoWhiteBalanceROIModeThe auto white balance ROI mode to set.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The auto white balance feature is not available for write access. Check the access status via peak_AutoWhiteBalance_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER autoWhiteBalanceROIMode is an invalid auto feature ROI mode. Check peak_auto_feature_roi_mode.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_AutoWhiteBalance_ROI_Offset_GetRange()

PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Offset_GetRange ( peak_camera_handle  hCam,
peak_position *  minAutoWhiteBalanceROIOffset,
peak_position *  maxAutoWhiteBalanceROIOffset,
peak_position *  incAutoWhiteBalanceROIOffset 
)

Get the current range of valid auto white balance ROI offsets.

Queries the current range of valid values for the auto white balance ROI offset.

The range of valid auto white balance ROI offset values may depend on the camera configuration and the camera status.
In special the current setting of the image ROI and the current setting of the auto white balance ROI size has an impact on the range of valid auto white balance ROI offset values.

Parameters
[in]hCamThe camera handle.
[out]minAutoWhiteBalanceROIOffsetThe minimum auto white balance ROI offset values.
[out]maxAutoWhiteBalanceROIOffsetThe maximum auto white balance ROI offset values.
[out]incAutoWhiteBalanceROIOffsetThe auto white balance ROI offset values increments.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The auto white balance feature is not accessible. Check the access status via peak_AutoWhiteBalance_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER At least one of minAutoWhiteBalanceROIOffset, maxAutoWhiteBalanceROIOffset, and incAutoWhiteBalanceROIOffset is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_AutoWhiteBalance_ROI_Set()

PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Set ( peak_camera_handle  hCam,
peak_roi  autoWhiteBalanceROI 
)

Set the auto white balance ROI.

Writes the desired auto white balance ROI.

Note
Setting the auto white balance ROI is only possible if PEAK_AUTO_FEATURE_ROI_MODE_MANUAL is set for the auto white balance ROI mode.
Parameters
[in]hCamThe camera handle.
[in]autoWhiteBalanceROIThe auto white balance ROI to set.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_OUT_OF_RANGE autoWhiteBalanceROI value is out of range. Check the range of valid values via peak_AutoWhiteBalance_ROI_Offset_GetRange and peak_AutoWhiteBalance_ROI_Size_GetRange.
PEAK_STATUS_ACCESS_DENIED The auto white balance feature is not available for write access or the auto white balance ROI mode is not set to PEAK_AUTO_FEATURE_ROI_MODE_MANUAL. Check the access status via peak_AutoWhiteBalance_GetAccessStatus. Check the auto white balance ROI mode via peak_AutoWhiteBalance_ROI_Mode_Get.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_AutoWhiteBalance_ROI_Size_GetRange()

PEAK_API_STATUS peak_AutoWhiteBalance_ROI_Size_GetRange ( peak_camera_handle  hCam,
peak_size *  minAutoWhiteBalanceROISize,
peak_size *  maxAutoWhiteBalanceROISize,
peak_size *  incAutoWhiteBalanceROISize 
)

Get the current range of valid auto white balance ROI sizes.

Queries the current range of valid values for the auto white balance ROI dimensions.

The range of valid auto white balance ROI size values may depend on the camera configuration and the camera status.
In special the current setting of the image ROI and the current setting of the auto white balance ROI offset has an impact on the range of valid auto white balance ROI size values.

Parameters
[in]hCamThe camera handle.
[out]minAutoWhiteBalanceROISizeThe minimum auto white balance ROI size values.
[out]maxAutoWhiteBalanceROISizeThe maximum auto white balance ROI size values.
[out]incAutoWhiteBalanceROISizeThe auto white balance ROI size values increments.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The auto white balance feature is not accessible. Check the access status via peak_AutoWhiteBalance_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER At least one of minAutoWhiteBalanceROISize, maxAutoWhiteBalanceROISize, and incAutoWhiteBalanceROISize is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.