[libcamera-devel] [PATCH v2 1/2] libcamera: controls: Add DigitalGain control

Jacopo Mondi jacopo at jmondi.org
Thu Nov 26 16:26:53 CET 2020


Hi David,

On Thu, Nov 26, 2020 at 02:50:04PM +0000, David Plowman wrote:
> This control reports the global digital gain applied by the pipeline
> as a whole, after capturing a raw image from the sensor.
>
> Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
> ---
>  src/libcamera/control_ids.yaml | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>
> diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
> index c8874fa9..75a00f79 100644
> --- a/src/libcamera/control_ids.yaml
> +++ b/src/libcamera/control_ids.yaml
> @@ -530,4 +530,21 @@ controls:
>          This control is only present when the pipeline supports scaling. Its
>          maximum valid value is given by the properties::ScalerCropMaximum
>          property, and the two can be used to implement digital zoom.
> +
> +  - DigitalGain:
> +      type: float
> +      description: |
> +        Digital gain value applied during the processing steps applied
> +        to the image as captured from the sensor.
> +
> +        The global digital gain factor is applied to all the colour channels
> +        of the RAW image. Different pipeline models are free to
> +        specify how the global gain factor applies to each separate
> +        channel.
> +
> +        If an imaging pipeline applies digital gain in distinct
> +        processing steps, this value indicates their total sum.
> +        Pipelines are free to decide how to adjust each processing
> +        step to respect the received gain factor and shall report
> +        their total value in the request metadata.

Still not sure I agree with myself here completely :)
But indeed:
Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>

Thanks
   j

>  ...
> --
> 2.20.1
>
> _______________________________________________
> 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