[libcamera-devel] [PATCH v2 6/6] libcamera: controls: Add controls to report back frame metadata

David Plowman david.plowman at raspberrypi.com
Fri Mar 20 17:25:49 CET 2020


Yes, we return the colour temperature in Kelvin. But you're right, and
I think there's a general point here. How is code going to get less
platform specific if we don't define what all these numbers mean, by
which I mean both the controls that you set and the values that may
get reported back?

David

On Fri, 20 Mar 2020 at 15:45, Kieran Bingham
<kieran.bingham at ideasonboard.com> wrote:
>
> Hi Naush,
>
> On 09/03/2020 12:33, Naushir Patuck wrote:
> > Add controls to report the current frame's exposure and gain, and an
> > estimate of the current lux level from the AE algorithm.
> >
> > Add controls to report the red and blue colour gains, and an estimate of
> > the colour temperature from the AWB algorithm.
> >
> > Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
> > ---
> >  src/libcamera/control_ids.yaml | 28 ++++++++++++++++++++++++++++
> >  1 file changed, 28 insertions(+)
> >
> > diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
> > index 3d1b058f..ee93975e 100644
> > --- a/src/libcamera/control_ids.yaml
> > +++ b/src/libcamera/control_ids.yaml
> > @@ -138,6 +138,22 @@ controls:
> >
> >          \sa ManualExposure
> >
> > +  - CurrentExposure:
> > +      type: int32_t
> > +      description: Report the exposure time in micro-seconds of this frame.
> > +
> > +        \sa CurrentAnalogueGain
> > +
> > +  - CurrentAnalogueGain:
> > +      type: float
> > +      description: Report the analogue gain parameter for the current frame.
> > +
> > +        \sa CurrentExposure
> > +
> > +  - CurrentLux:
> > +      type: float
> > +      description: Report an estimate of the current lux level.
> > +
> >    - AwbEnable:
> >        type: bool
> >        description: |
> > @@ -190,6 +206,18 @@ controls:
> >          in that order.
> >        size: [2]
> >
> > +  - CurrentWbGains:
> > +      type: float
> > +      description: |
> > +        Report the current gain AWB gain values for the Red and Blue colour
> > +        channels, in that order.
> > +      size: [2]
> > +
> > +  - CurrentTemperature:
> > +      type: float
> > +      description:  |
> > +        Report the current estimate of the colour temperature for this frame.
>
> Do we need to explicitly define the scale/units of the temperature?
> (Presumably people would assume kelvins, but perhaps people could
> misinterpret this somehow if we're not explicit)
>
> > +
> >    - Brightness:
> >        type: int32_t
> >        description: |
> >
>
> --
> Regards
> --
> Kieran
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel


More information about the libcamera-devel mailing list