mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	add some clarifying comments (#1754)
This commit is contained in:
		@@ -131,7 +131,7 @@ void EncoderThread::process()
 | 
			
		||||
#if defined(ENABLE_V4L2)
 | 
			
		||||
				_pixelFormat,
 | 
			
		||||
#else
 | 
			
		||||
				PixelFormat::BGR24,
 | 
			
		||||
				PixelFormat::BGR24,  // MF-Grabber always sends RGB24, but memory layout is RGBTRIPLE (b,g,r) -> process as BGR24
 | 
			
		||||
#endif
 | 
			
		||||
				image
 | 
			
		||||
			);
 | 
			
		||||
 
 | 
			
		||||
@@ -149,7 +149,7 @@ public:
 | 
			
		||||
#else
 | 
			
		||||
		if (_pixelformat != PixelFormat::RGB24 && _pixelformat != PixelFormat::NO_CHANGE)
 | 
			
		||||
#endif
 | 
			
		||||
			pSample = TransformSample(_transform, pSample);
 | 
			
		||||
			pSample = TransformSample(_transform, pSample); // forced conversion to RGB24, but memory layout is RGBTRIPLE (b,g,r) -> process as BGR24
 | 
			
		||||
 | 
			
		||||
		_hrStatus = pSample->ConvertToContiguousBuffer(&buffer);
 | 
			
		||||
		if (FAILED(_hrStatus))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user