[libcamera-devel,v2,0/4] ipu3: Change sensor size selection policy
mbox series

Message ID 20210810075854.86191-1-umang.jain@ideasonboard.com
Headers show
Series
  • ipu3: Change sensor size selection policy
Related show

Message

Umang Jain Aug. 10, 2021, 7:58 a.m. UTC
The series is geared towards addressing sensor selection constraints
on soraka and nautilus. 1/4 and 2/4 prepares the base to highlight
the change in selection policy. 3/4 and 4/4 is the actual change.

The constraints are documented in the commit messages of 3/4 and 4/4.

Changes in v2:
- 1/4 also sees the change in CIO2Device::sizes to  
  CIO2Device::sizes(pixelFormat).
- Use std::numeric_limits<> in 2/4. Include <math.h> otherwise
  compilation breaks on gcc.
- Few wordings restructure.

Umang Jain (4):
  libcamera: camera_sensor: Transform CameraSensor::sizes()
  ipu3: cio2: Replicate CameraSensor::getFormats() to a member function
  ipu3: cio2:  Change sensor size selection policy
  ipu3: cio2: Tweak sensor size selection policy

 include/libcamera/internal/camera_sensor.h |   2 +-
 src/libcamera/camera_sensor.cpp            |  25 +++--
 src/libcamera/pipeline/ipu3/cio2.cpp       | 119 +++++++++++++++++++--
 src/libcamera/pipeline/ipu3/cio2.h         |   5 +-
 src/libcamera/pipeline/ipu3/ipu3.cpp       |   2 +-
 test/camera-sensor.cpp                     |   2 +-
 6 files changed, 138 insertions(+), 17 deletions(-)