[v2,0/2] pipeline: rkisp1: Filter out sensor sizes not supported by the pipeline
mbox series

Message ID 20240913103759.2166-1-umang.jain@ideasonboard.com
Headers show
Series
  • pipeline: rkisp1: Filter out sensor sizes not supported by the pipeline
Related show

Message

Umang Jain Sept. 13, 2024, 10:37 a.m. UTC
The series targets fixing and improving maximum resolutions that can be
streamed on the pipeline, successfully.

1/2 targets fixing the issue where the RkISP1MainPath was considering max
supported size > ISP on i.MX8MP.

2/2 filters out sensor sizes that cannot be supported by the pipeline.
Such sizes are filtered out and the highest resolution (supported by
sensor) is considered as the max sensor resolution for
generateConfiguration() and validate() code paths.

Previous attempts:
https://patchwork.libcamera.org/patch/20699/
https://patchwork.libcamera.org/patch/19411/

Based on series:
libcamera: rkisp1: Plumb the dw100 dewarper as V4L2M2M converter v7

Changes in v2:
- Use const for variables in 1/2
- Add comment on why we need to bound max size 1/2
- Use std::map<> in 2/2 for sensor sizes as multiple
  sensor can be attached to same ISP.

Umang Jain (2):
  pipeline: rkisp1: Bound RkISP1 path to ISP maximum input
  pipeline: rkisp1: Filter out sensor sizes not supported by the
    pipeline

 src/libcamera/pipeline/rkisp1/rkisp1.cpp      | 15 ++++-
 src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 64 ++++++++++++++++++-
 src/libcamera/pipeline/rkisp1/rkisp1_path.h   | 10 ++-
 3 files changed, 83 insertions(+), 6 deletions(-)