[libcamera-devel,02/10] libcamera: controls: Define AwbLocked control
diff mbox series

Message ID 20201009122101.73858-3-jacopo@jmondi.org
State Accepted
Headers show
Series
  • android: Introduce draft controls
Related show

Commit Message

Jacopo Mondi Oct. 9, 2020, 12:20 p.m. UTC
Define a control to report the AWB algorithm locking state.
The control definition is copied from the AeLocked one.

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
 src/libcamera/control_ids.yaml | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Laurent Pinchart Oct. 12, 2020, 12:02 a.m. UTC | #1
Hi Jacopo,

Thank you for the patch.

On Fri, Oct 09, 2020 at 02:20:53PM +0200, Jacopo Mondi wrote:
> Define a control to report the AWB algorithm locking state.
> The control definition is copied from the AeLocked one.
> 
> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/libcamera/control_ids.yaml | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
> index 3560d4a81882..4c415545dcae 100644
> --- a/src/libcamera/control_ids.yaml
> +++ b/src/libcamera/control_ids.yaml
> @@ -208,6 +208,17 @@ controls:
>            value: 7
>            description: Maximum allowed value (place any new values above here).
>  
> +  - AwbLocked:
> +      type: bool
> +      description: |
> +        Report the lock status of a running AWB algorithm.
> +
> +        If the AWB algorithm is locked the value shall be set to true, if it's
> +        converging it shall be set to false. If the AWB algorithm is not
> +        running the control shall not be present in the metadata control list.
> +
> +        \sa AwbEnable
> +
>    - ColourGains:
>        type: float
>        description: |

Patch
diff mbox series

diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 3560d4a81882..4c415545dcae 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -208,6 +208,17 @@  controls:
           value: 7
           description: Maximum allowed value (place any new values above here).
 
+  - AwbLocked:
+      type: bool
+      description: |
+        Report the lock status of a running AWB algorithm.
+
+        If the AWB algorithm is locked the value shall be set to true, if it's
+        converging it shall be set to false. If the AWB algorithm is not
+        running the control shall not be present in the metadata control list.
+
+        \sa AwbEnable
+
   - ColourGains:
       type: float
       description: |