[libcamera-devel,v4,0/3] qcam: viewfinder_gl: add RAW10P and RAW12P formats
mbox series

Message ID 20210617123941.1095481-1-andrey.konovalov@linaro.org
Headers show
Series
  • qcam: viewfinder_gl: add RAW10P and RAW12P formats
Related show

Message

Andrey Konovalov June 17, 2021, 12:39 p.m. UTC
This patchset adds support for both 10-bit, and 12-bit raw Bayer packed
formats. GL_RED texture is used to store the image data.
Not only this allows to use the same shader code in 10-bit and 12-bit cases.
But it also turned out that sampling from GL_RED texture is easier (less
"patterns") than from GL_RGB - even though we loose the "auto-skipping the LS
bytes of pixel values" feature in the 12-bit case.

8-bit raw Bayer format support is excluded from this patchset, and will be
posted as a separate patchset.

Changes in v4 vs v3 [1]:
* patch 4/4 is excluded from the patchset and will be posted separately
* the review comments for v2 which I missed when posting v3 are addressed
  this time. As well as the review comments for v3.

[1] https://patchwork.libcamera.org/cover/12572/