[0/5] libcamera: Replace IPU3/RkISP1FrameInfo
mbox series

Message ID 20240221174015.52958-1-jacopo.mondi@ideasonboard.com
Headers show
Series
  • libcamera: Replace IPU3/RkISP1FrameInfo
Related show

Message

Jacopo Mondi Feb. 21, 2024, 5:40 p.m. UTC
The RkISP1 and IPU3 pipeline have custom classes that provide the
following features:

- Associate a stat, params and (optionally) a raw buffer with the id used
  to communicate between the pipeline handler and the IPA
- Associate a completed buffer with the Request it belongs to

The same functionalities can be obtained by extending the Request::Private
class with a per-pipeline derived implementation that tracks buffers and ids
reducing code duplications.

Jacopo Mondi (5):
  libcamera: Allow pipeline to provide a Private request
  libcamera: rkisp1: Create a request with a custom private class
  libcamera: rkisp1: Replace usage of RkISP1FrameInfo
  libcamera: ipu3: Replace IPU3FrameInfo
  libcamera: ipu3: Return Raw buffers on error

 include/libcamera/internal/pipeline_handler.h |   5 +-
 include/libcamera/request.h                   |   3 +-
 src/libcamera/camera.cpp                      |   8 +-
 src/libcamera/pipeline/ipu3/frames.cpp        | 143 -------
 src/libcamera/pipeline/ipu3/frames.h          |  67 ----
 src/libcamera/pipeline/ipu3/ipu3.cpp          | 224 +++++++----
 src/libcamera/pipeline/ipu3/meson.build       |   1 -
 src/libcamera/pipeline/rkisp1/rkisp1.cpp      | 359 +++++++-----------
 src/libcamera/pipeline_handler.cpp            |  38 +-
 src/libcamera/request.cpp                     |  15 +-
 10 files changed, 337 insertions(+), 526 deletions(-)
 delete mode 100644 src/libcamera/pipeline/ipu3/frames.cpp
 delete mode 100644 src/libcamera/pipeline/ipu3/frames.h

--
2.43.0