[libcamera-devel] [PATCH 0/6] Move formats from v4l2-compat into libcamera

Paul Elder paul.elder at ideasonboard.com
Mon Jun 29 17:14:05 CEST 2020


This patchset moves format information out of V4L2CameraProxy in the
compatibility layer and into libcamera core. The first three patches add
the info in the libcamera core formats, including an expansion to the
format info to account for how many bytes are needed per how many pixels
The last patch then removes the formats from V4L2CameraProxy and uses
the libcamera core formats, cleaning code up at the same time.

Paul Elder (6):
  libcamera: formats: Add NV24 and NV42, and reorder NV formats
  libcamera: formats: Add fields to info ease calculating bpl
  libcamera: formats: PixelFormatInfo: Add v4l2 constructor
  libcamera: PixelFormatInfo: Add methods bytesPerLine and imageSize
  libcamera: pipeline: raspberrypi: Simplify format fetching
  v4l2: v4l2_camera_proxy: Use libcamera formats

 include/libcamera/internal/formats.h          |   8 +-
 src/libcamera/formats.cpp                     | 168 ++++++++++++++++--
 .../pipeline/raspberrypi/raspberrypi.cpp      |   3 +-
 src/v4l2/v4l2_camera_proxy.cpp                | 167 ++++-------------
 src/v4l2/v4l2_camera_proxy.h                  |   7 -
 5 files changed, 199 insertions(+), 154 deletions(-)

-- 
2.27.0



More information about the libcamera-devel mailing list