[RFC,v1,0/2] libcamera: camera_sensor: Add support for an additional image stream
mbox series

Message ID 20251024151058.1523308-1-julien.vuillaumier@nxp.com
Headers show
Series
  • libcamera: camera_sensor: Add support for an additional image stream
Related show

Message

Julien Vuillaumier Oct. 24, 2025, 3:10 p.m. UTC
Hello,

This RFC proposes 2 patches related to streams handling with sensors
implementing the raw camera model. Those sensors may produce multiple
streams from their internal pads, output to the source pad via routes.

Patch (1) is a fix for sensors implementing an optional stream, for
instance embedded data, meaning that the route associated to that stream
is mutable. Querying the stream format on the source pad of the sensor
requires the relevant mutable route to be enabled.

Patch (2) adds support for an additional image stream, in addition to
the main image that all sensors produce. That may be needed for
different camera use cases, for instance:
- HDR sensors that produce multiples exposures (DOL/DCG) on separate
  MIPI-CSI VC/DT channels
- Sensors that produce alternate images from different context on
  separate channels - RGBIr sensor is one application.

Thanks

Julien Vuillaumier (2):
  libcamera: camera_sensor: Enable routes to query stream formats
  libcamera: camera_sensor: Add support for auxiliary image

 include/libcamera/internal/camera_sensor.h |   3 +
 src/libcamera/sensor/camera_sensor.cpp     |  52 ++++++++
 src/libcamera/sensor/camera_sensor_raw.cpp | 134 ++++++++++++++++++---
 3 files changed, 173 insertions(+), 16 deletions(-)