disable DoubleRate

This commit is contained in:
2021-06-14 15:50:10 +02:00
parent 40418c4c0e
commit 1aaa137d88

View File

@ -253,6 +253,18 @@ bool Camera::setupCamera()
} }
Log(Log::DEBUG)<<"Binning: "<<(binning ? "yes" : "no"); 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();}); decoderThread = new std::thread([this](){decoderThreadFunc();});
Log(Log::DEBUG)<<"Using "<<arv_camera_get_pixel_format_as_string(aCamera_, nullptr)<<" as pixel format"; Log(Log::DEBUG)<<"Using "<<arv_camera_get_pixel_format_as_string(aCamera_, nullptr)<<" as pixel format";