USB 3.x GigE |
USB 3.x GigE |
Syntax
INT is_DeviceFeature (HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
Using is_DeviceFeature() you can configure special camera functions provided by specific uEye models:
•On the UI-336x/UI-536x, UI-337x/UI-537x, and UI-359x: Set the sensor bit depth
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the cbSizeOfParam input parameter.
Input parameters
hCam |
Camera handle |
pParam |
Pointer to a function parameter, whose function depends on nCommand. |
cbSizeOfParam |
Size (in bytes) of the memory area to which pParam refers. |
Status flags from DEVICE_FEATURE_MODE_CAPS
IS_DEVICE_FEATURE_CAP_SENSOR_BIT_DEPTH |
Sets the bit depth of the sensor. With the IS_SENSOR_BIT_DEPTH_AUTO setting the software selects the appropriate sensor bit depth to the chosen image format. The bit depth can also be selected independent from the image format. Attention: As you can choose combinations that do not fit, this function should be used by experts only. In most cases the auto control is sufficient. |
UINT nSupportedBitDepths = 0;
UINT nBitDepth;
INT nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_SUPPORTED_SENSOR_BIT_DEPTHS,
(void*)&nSupportedBitDepths, sizeof(nSupportedBitDepths));
/* 10 Bit is supported */
if ((nSupportedBitDepths & IS_SENSOR_BIT_DEPTH_10_BIT) != 0)
{
/* Set Bit depth to 10 Bit */
nBitDepth = IS_SENSOR_BIT_DEPTH_10_BIT;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_SENSOR_BIT_DEPTH,
(void*)&nBitDepth , sizeof(nBitDepth));
}
/* Get default bit depth (auto) */
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_SENSOR_BIT_DEPTH_DEFAULT,
(void*)&nBitDepth, sizeof(nBitDepth));
/* Get current bit depth */
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_SENSOR_BIT_DEPTH,
(void*)&nBitDepth, sizeof(nBitDepth));