add some clarifying comments

This commit is contained in:
unknown 2024-06-09 21:29:56 +02:00
parent 1fd40571af
commit 2579834001
2 changed files with 2 additions and 2 deletions

View File

@ -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
);

View File

@ -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))