chore: preserve existing library source changes for MatchVerify migration
Isolated source snapshot; original checkout and index unchanged. This migration does not claim new build or hardware validation.
This commit is contained in:
parent
71285a0686
commit
ce11777d22
@ -2313,6 +2313,16 @@ bool VizumCamera::GetFloatParam(const std::string& name, float& value)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (name == "GainMin" || name == "GainMax" || name == "GainStep") {
|
||||
unsigned int minimum = 0, maximum = 0;
|
||||
const int result = VzNL_QueryParamRange(m_deviceHandle, keDeviceParamType_Gain,
|
||||
&minimum, &maximum);
|
||||
LogSdkReturn("camera_param_read", "VzNL_QueryParamRange(gain)", result);
|
||||
if (result != 0 || minimum > maximum || maximum > 65535) return false;
|
||||
value = name == "GainMin" ? float(minimum) : name == "GainMax" ? float(maximum) : 1.0f;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (name == "ExposureTime" || name == "Exposure" || name == "exposure") {
|
||||
EVzNLExposeMode exposeMode = keVzNLExposeMode_Fix;
|
||||
uint32_t exposeUs = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user