disable DoubleRate
This commit is contained in:
		
							parent
							
								
									40418c4c0e
								
							
						
					
					
						commit
						1aaa137d88
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										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";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue