[libcamera-devel,0/6] Move formats from v4l2-compat into libcamera
mbox series

Message ID 20200629151411.216477-1-paul.elder@ideasonboard.com
Headers show
Series
  • Move formats from v4l2-compat into libcamera
Related show

Message

Paul Elder June 29, 2020, 3:14 p.m. UTC
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(-)