[libcamera-devel] demo code: demosaic a raw Bayer image with compute shader

Andrey Konovalov andrey.konovalov at linaro.org
Mon Jul 12 09:34:08 CEST 2021


Greetings,

This is a pretty early code [1] (a lot of stuff is hardcoded etc), but it looks like sharing
it now still makes sense.

The main motivation to use compute shaders vs OpenCL is the availability of open source
implementation right now (for adreno 6xx+ atm).

This is a command line application which converts a raw Bayer image (fixed format and resolution)
into an RGB one. Some more details are in the README.txt on the github.

My next step planned is to add the DPC (defect pixel correction) step before debayering.

Tested on the RB3 board [2] (adreno 630 GPU) with the freedreno driver and the recent media_tree kernel.

Inspired by [3].

Thanks,
Andrey

[1] https://github.com/andrey-konovalov/debayer-ssbo-demo
[2] https://www.96boards.org/product/rb3-platform/
[3] https://blogs.igalia.com/elima/2016/10/06/example-run-an-opengl-es-compute-shader-on-a-drm-render-node/


More information about the libcamera-devel mailing list