disable DoubleRate
This commit is contained in:
12
uvoscam.cpp
12
uvoscam.cpp
@ -253,6 +253,18 @@ bool Camera::setupCamera()
|
||||
}
|
||||
Log(Log::DEBUG)<<"Binning: "<<(binning ? "yes" : "no");
|
||||
|
||||
bool doubleRate = arv_camera_is_feature_available(aCamera_, "DoubleRate_Enable", &error);
|
||||
if(!error && doubleRate)
|
||||
{
|
||||
Log(Log::INFO)<<"Disable broken PhotonFocus DoubleRate implementation";
|
||||
arv_device_set_boolean_feature_value(arv_camera_get_device(aCamera_), "DoubleRate_Enable", false, &error);
|
||||
if(error)
|
||||
{
|
||||
Log(Log::ERROR)<<"Failed to disable DoubleRate\n";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
decoderThread = new std::thread([this](){decoderThreadFunc();});
|
||||
|
||||
Log(Log::DEBUG)<<"Using "<<arv_camera_get_pixel_format_as_string(aCamera_, nullptr)<<" as pixel format";
|
||||
|
Reference in New Issue
Block a user