[libcamera-devel] [PATCH 0/6] Raspberry Pi: Conversion to media controller

Naushir Patuck naush at raspberrypi.com
Fri Oct 22 13:55:31 CEST 2021


Hi,

This series of patches convert the Raspberry Pi pipeline handler to a more
media controller centric mode of operation.  In particular, we set/get formats
and controls directly on the sensor subdevice instead of proxying through the
unicam driver node.

Note that these changes rely on https://github.com/raspberrypi/linux/pull/4645
being merged into our kernel tree.  That merge will need to be synchronised with
merging this change into the libcamera upstream tree else we will have a mismatch
between kernel and userland.  In such cases, the pipeline handler will throw an
error and fail to start.

Thanks,
Naush

Naushir Patuck (6):
  libcamera: bayer_format: Add conversion helpers to the BayerFormat
    class
  pipeline: raspberrypi: Convert the pipeline handler to use media
    controller
  pipeline: raspberrypi: Return a PixelFormat from findBestMode()
  pipeline: raspberrypi: Remove "unpacked" format penalty in mode
    selection
  pipeline: raspberrypi: Account for a missing Unicam embedded data node
  pipeline: raspberrypi: Apply sensor flips at the start of configure()

 include/libcamera/internal/bayer_format.h     |   4 +
 src/libcamera/bayer_format.cpp                |  31 +++
 .../pipeline/raspberrypi/raspberrypi.cpp      | 229 +++++++++++-------
 3 files changed, 170 insertions(+), 94 deletions(-)

-- 
2.25.1



More information about the libcamera-devel mailing list