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

Naushir Patuck naush at raspberrypi.com
Wed Oct 27 11:27:54 CEST 2021


Hi,

Version 3 of this series makes the following changes over v2:

- Add Laurent's patches for R10 and R12 mono image formats.
- In 3/9, update the BayerFormat converstion table to include PixelFormat types.
- In 4/9 add a BayerFormat::fromPixelFormat member function.
- In 5/9 add a local mbusCodeToBayerFormat function for conversions instead of
relying on the BayerFormat class table. Also switch some labels from "mode" to
"format" :-) Default to using CSI2 packing, as that duplicates existing behavior.
Also fixed up the various minors from the review feedback.
- In 6/9 explicitly pass packing mode into toV4L2DeviceFormat().
- In 9/9 move the h/v flip setup above the sensor->setFormat() call so we do not
need an extra sensor->getFormat() once the flips have been setup.

Thanks,
Naush

Laurent Pinchart (2):
  include: drm_fourcc: Add R10 and R12 FourCC
  libcamera: formats: Add R10 and R12 formats

Naushir Patuck (7):
  libcamera: bayer_format: Rework BayerFormat conversion table
  libcamera: bayer_format: Add PixelFormat conversion helpers to
    BayerFormat class
  pipeline: raspberrypi: Convert the pipeline handler to use media
    controller
  pipeline: raspberrypi: Set packing formats for the Unicam image node
  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 +
 include/linux/drm_fourcc.h                    |   6 +
 src/libcamera/bayer_format.cpp                | 139 +++++++---
 src/libcamera/formats.cpp                     |  26 ++
 src/libcamera/formats.yaml                    |   4 +
 .../pipeline/raspberrypi/raspberrypi.cpp      | 247 +++++++++++-------
 src/libcamera/v4l2_pixelformat.cpp            |   4 +
 7 files changed, 297 insertions(+), 133 deletions(-)

-- 
2.25.1



More information about the libcamera-devel mailing list