|  |  | @ -28,7 +28,7 @@ class Debayer { | 
			
		
	
		
		
			
				
					
					|  |  |  | public: |  |  |  | public: | 
			
		
	
		
		
			
				
					
					|  |  |  |   Debayer(cl_device_id device_id, cl_context context, const CameraBuf *b, const CameraState *s, int buf_width, int uv_offset) { |  |  |  |   Debayer(cl_device_id device_id, cl_context context, const CameraBuf *b, const CameraState *s, int buf_width, int uv_offset) { | 
			
		
	
		
		
			
				
					
					|  |  |  |     char args[4096]; |  |  |  |     char args[4096]; | 
			
		
	
		
		
			
				
					
					|  |  |  |     const CameraInfo *ci = s->ci.get(); |  |  |  |     const SensorInfo *ci = s->ci.get(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     snprintf(args, sizeof(args), |  |  |  |     snprintf(args, sizeof(args), | 
			
		
	
		
		
			
				
					
					|  |  |  |              "-cl-fast-relaxed-math -cl-denorms-are-zero " |  |  |  |              "-cl-fast-relaxed-math -cl-denorms-are-zero " | 
			
		
	
		
		
			
				
					
					|  |  |  |              "-DFRAME_WIDTH=%d -DFRAME_HEIGHT=%d -DFRAME_STRIDE=%d -DFRAME_OFFSET=%d " |  |  |  |              "-DFRAME_WIDTH=%d -DFRAME_HEIGHT=%d -DFRAME_STRIDE=%d -DFRAME_OFFSET=%d " | 
			
		
	
	
		
		
			
				
					|  |  | @ -66,7 +66,7 @@ void CameraBuf::init(cl_device_id device_id, cl_context context, CameraState *s, | 
			
		
	
		
		
			
				
					
					|  |  |  |   this->yuv_type = init_yuv_type; |  |  |  |   this->yuv_type = init_yuv_type; | 
			
		
	
		
		
			
				
					
					|  |  |  |   frame_buf_count = frame_cnt; |  |  |  |   frame_buf_count = frame_cnt; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   const CameraInfo *ci = s->ci.get(); |  |  |  |   const SensorInfo *ci = s->ci.get(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   // RAW frame
 |  |  |  |   // RAW frame
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   const int frame_size = (ci->frame_height + ci->extra_height) * ci->frame_stride; |  |  |  |   const int frame_size = (ci->frame_height + ci->extra_height) * ci->frame_stride; | 
			
		
	
		
		
			
				
					
					|  |  |  |   camera_bufs = std::make_unique<VisionBuf[]>(frame_buf_count); |  |  |  |   camera_bufs = std::make_unique<VisionBuf[]>(frame_buf_count); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |