add some clarifying comments (#1754)

This commit is contained in:
Thinner77 2024-06-16 18:01:33 +02:00 committed by GitHub
parent 6d5dfef3ad
commit 719c844dda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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))