[libcamera-devel] [PATCH v3 0/3] Support monochrome raw sensors
Kieran Bingham
kieran.bingham at ideasonboard.com
Sat Jun 19 00:18:08 CEST 2021
On 18/06/2021 23:04, David Plowman wrote:
> Hi again
Hello ;-)
> Here's a v3 set which addresses Kieran's comments, so thanks for
> those! Otherwise everything is functionally the same as before.
>
> To answer Kieran's other questions:
>
> * Yes, a monochrome raw sensor is very different to a monochrome
> non-raw sensor! No black levels, vignetting to worry about on those,
> among other things.
Understood.
> * On the question of warning about missing AWB results only for
> monochrome sensors. Yes, that's a reasonable thought, though at the
> moment I don't think the IPA side of the world even knows if a
> sensor is monochrome. We'd have to pass that somehow, maybe in the
> IPACameraSesnsorInfo? That's perhaps a slightly longer discussion,
> I'm not entirely sure I want to open that right now...
I don't mind either at the moment. I wasn't sure if it was directly
feasible, so it could be something to optionally consider later if it
became helpful. The print is still there - it might just then needlessly
spam the debug logs for monochrome sensors. But I don't think that will
be a big impact currently.
> * We need to be very nice to Dave, but then the plan would be to start
> upstreaming new drivers, as we've been doing previously. There are a
> couple more I'd like to get going too. Some of them would need a
> "Y12P" format, which seems to be missing from the kernel, currently.
I'll leave Laurent to the decisions there, but as long as we know
there's intent to get the support upstream, I think the IPA can get in
place earlier. I don't think there's particular risk on this of things
changing on the way in, as we use the standard interfaces ...
> * The tuning I've given for the OV9281 is for an Innomaker module, or
> maybe not, I'm not sure what it is. But it actually makes
> surprisingly little difference as there is no colour shading, AWB or
> colour matrices to worry about.
Well I don't think anyone can complain about less things to do. The ISP
gets to take a break ;-)
I guess things like lens shading will still apply here and be specific
to a module - but that needs to be per-device anyway ... and I think I
recall you mentioned that the ALSC has a good go at it anyway.
> Thanks
> David
>
>
> David Plowman (3):
> libcamera: Add support for monochrome sensors
> libcamera: ipa: raspberrypi: Demote warnings about lack of AWB results
> libcamera: ipa: raspberrypi: Add support for ov9281 sensor
>
> include/libcamera/internal/bayer_format.h | 3 +-
> src/ipa/raspberrypi/cam_helper_mov9281.cpp | 65 +++++++++++++++
> src/ipa/raspberrypi/controller/rpi/agc.cpp | 2 +-
> src/ipa/raspberrypi/controller/rpi/alsc.cpp | 4 +-
> src/ipa/raspberrypi/data/meson.build | 1 +
> src/ipa/raspberrypi/data/mov9281.json | 92 +++++++++++++++++++++
> src/ipa/raspberrypi/meson.build | 1 +
> src/libcamera/bayer_format.cpp | 14 +++-
> src/libcamera/camera_sensor.cpp | 3 +
> src/libcamera/property_ids.yaml | 4 +
> 10 files changed, 183 insertions(+), 6 deletions(-)
> create mode 100644 src/ipa/raspberrypi/cam_helper_mov9281.cpp
> create mode 100644 src/ipa/raspberrypi/data/mov9281.json
>
--
Regards
--
Kieran
More information about the libcamera-devel
mailing list