[libcamera-devel] [PATCH v2 18/18] libcamera: debayer_cpu: Add BGR888 output support

Pavel Machek pavel at ucw.cz
Sun Jan 14 18:18:32 CET 2024


Hi!

> BGR888 is RGB888 with the red and blue pixels swapped, adjust
> the debayering to swap the red and blue pixels in the bayer pattern
> to add support for writing formats::BGR888.

Wow. This is quite a hack (because debayering variables named "red"
will now contain "blue" data, etc). And yes, this special case works
for RGB888, but I wonder if we'll need hooks in writing data for stuff
like RGBA8888.

Best regards,
								Pavel
								
-- 
People of Russia, stop Putin before his war on Ukraine escalates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20240114/82112220/attachment.sig>


More information about the libcamera-devel mailing list