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