[RFC PATCH 0/1] Enable raw streams with software ISP

Milan Zamazal mzamazal at redhat.com
Fri Nov 22 21:13:03 CET 2024


This makes raw streams working again in ‘simple’ pipeline when software
ISP is enabled for the given device.  For now, only a single raw stream
is supported and there are no immediate plans to change that unless
there is a request for more.

An example ‘cam’ invocation requesting a raw stream rather than a debayered stream:

  cam -c1 -C8 -s role=raw,width=1920,height=1080 -Ffile#.raw

See the commit message for more information about the patch.

The patch is RFC because I’m not sure where it is placed on the scale
between a hack/PoC and a proper solution and because it’s not that
useful until a control for exposure/gain adjustments is implemented.

In the meantime, fixed exposure+gain can be hardwired in
src/ipa/simple/soft_simple.cpp by changing the lines

  ctrls.set(V4L2_CID_EXPOSURE, …);
  ctrls.set(V4L2_CID_ANALOGUE_GAIN, …);

to set the desired values (values used under the given conditions can be
obtained from normal software ISP debayered output debug log).

Milan Zamazal (1):
  libcamera: simple: Fix raw output

 src/libcamera/pipeline/simple/simple.cpp | 66 +++++++++++++++++++-----
 1 file changed, 54 insertions(+), 12 deletions(-)

-- 
2.44.2



More information about the libcamera-devel mailing list