[libcamera-devel] [PATCH 03/11] Adds rkisp1 metadata required for the Android HAL to use it.
paul.elder at ideasonboard.com
paul.elder at ideasonboard.com
Tue Oct 25 02:13:22 CEST 2022
On Tue, Oct 25, 2022 at 02:49:25AM +0300, Laurent Pinchart via libcamera-devel wrote:
> Hi Nicholas,
>
> Thank you for the patch.
>
> On Mon, Oct 24, 2022 at 12:55:35AM -0500, Nicholas Roth via libcamera-devel wrote:
> > From: Nicholas Roth <nicholas at rothemail.net>
> >
> > ---
> > src/ipa/rkisp1/rkisp1.cpp | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp
> > index ba3c547e..c536852c 100644
> > --- a/src/ipa/rkisp1/rkisp1.cpp
> > +++ b/src/ipa/rkisp1/rkisp1.cpp
> > @@ -100,6 +100,13 @@ const ControlInfoMap::Map rkisp1Controls{
> > { &controls::Contrast, ControlInfo(0.0f, 1.993f) },
> > { &controls::Saturation, ControlInfo(0.0f, 1.993f) },
> > { &controls::Sharpness, ControlInfo(0.0f, 10.0f, 1.0f) },
> > + /* libcamera requires a fixed value for minimum frame duration,
> > + * but this depends on the frame size and the rkisp1 device datasheets
> > + * measure this in pixels per second. Neither the datasheets nor the driver
> > + * specify a maximum. The minimum below is for 1920x1920. The maximum
> > + * corresponds to two seconds. */
> > + { &controls::FrameDurationLimits, ControlInfo(48505, 2000000) },
>
> Could this be computed the same way we do it in the IPU3 IPA module ?
>
> > + { &controls::draft::MaxLatency, ControlInfo(0) },
>
> Why is this needed ?
This control looks familiar in the context of android...
iirc from the CTS FULL support ordeal, MaxLatency needs to be between 0
and 4 inclusive for burst capture capability [1], which is required for
FULL (but not LIMITED).
Paul
[1] https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE
> > { &controls::draft::NoiseReductionMode, ControlInfo(controls::draft::NoiseReductionModeValues) },
> > };
> >
More information about the libcamera-devel
mailing list