[libcamera-devel] [PATCH v3 0/4] qcam: viewfinder_gl: add RAW8, RAW10P and RAW12P formats

Andrey Konovalov andrey.konovalov at linaro.org
Fri Jun 11 18:27:22 CEST 2021


This patchset adds support for both 10-bit, and 12-bit raw Bayer packed
and 8-bit raw Bayer 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.

Changes in v3 vs v2 [1]:
* Squashed 2/5 and 3/5 into single commit.
  Moved couple comments added in "Add support for RAW12 packed" to this commit
  as they are generic, and belong to the initial change.
* Made stride_ unsigned
* Dropped unused bayer_8.vert file from "Add support for RAW8 Bayer" patch

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




More information about the libcamera-devel mailing list