Illustrates working with Capabilities and The Gain Tables.
This example shows you how to retrieve the Camera Capabilities from the device and extract the Gain Table information.
#include "stdafx.h"
#include "stdint.h"
#include "stdlib.h"
#define FLI_TEST_MAX_SUPPORTED_CAMERAS (4)
static int32_t s_iDeviceHandle;
uint32_t uiNumDetectedDevices;
static FPRODEVICEINFO s_camDeviceInfo[FLI_TEST_MAX_SUPPORTED_CAMERAS];
int main()
{
int32_t iResult;
uint32_t uiCapSize;
uint32_t uiGainEntries;
uint32_t uiGainIndex;
float fGainValue;
uiNumDetectedDevices = FLI_TEST_MAX_SUPPORTED_CAMERAS;
if ((iResult >= 0) && (uiNumDetectedDevices > 0))
{
s_iDeviceHandle = -1;
iResult =
FPROCam_Open(&s_camDeviceInfo[0], &s_iDeviceHandle);
if ((iResult >= 0) && (s_iDeviceHandle >= 0))
{
if (iResult >= 0)
{
{
{
for (uint32_t i = 0; i < uiGainEntries; ++i)
{
}
}
{
}
}
}
}
}
return 0;
}