[v6,01/24] libcamera: controls: AeExposureMode: Add ExposureMaximize
diff mbox series

Message ID 20261102101610.877390-2-barnabas.pocze@ideasonboard.com
State Superseded
Headers show
Series
  • ipa: libipa: agc: Take exposure margin into account
Related show

Commit Message

Barnabás Pőcze Nov. 2, 2026, 10:15 a.m. UTC
Add a new exposure mode that is intended to make the full capabilities
of a sensor available for applications, potentially allowing multi-second
exposure times and maximal analogue gain.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/libcamera/control_ids_core.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Stefan Klug Nov. 5, 2026, 8:43 a.m. UTC | #1
Hi Barnabás,

Quoting Barnabás Pőcze (2026-11-02 11:15:47)
> Add a new exposure mode that is intended to make the full capabilities
> of a sensor available for applications, potentially allowing multi-second
> exposure times and maximal analogue gain.
> 
> Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> ---
>  src/libcamera/control_ids_core.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml
> index 73643e7e84..d27be4be6a 100644
> --- a/src/libcamera/control_ids_core.yaml
> +++ b/src/libcamera/control_ids_core.yaml
> @@ -188,6 +188,11 @@ controls:
>          - name: Custom
>            value: 3
>            description: Custom exposure mode.
> +        - name: Maximize
> +          value: 4
> +          description: |
> +            Exposure mode allowing very large exposure times and gains,
> +            up to the sensors capabilities.

Maybe this was discussed elsewhere previously. Isn't that exactly the
behavior of all the modes in AgcMeanLuminance? If proper exposure can't
be reached with the predefined steps, exposure time and then gain get
maxed out. There is surely more we could do here but I don't see the
reasoning why we'd need another mode. How would the user decide between
these modes?

Best regards,
Stefan

>  
>    - ExposureValue:
>        type: float
> -- 
> 2.56.0
>
Barnabás Pőcze Nov. 5, 2026, 8:47 a.m. UTC | #2
2026. 11. 05. 9:43 keltezéssel, Stefan Klug írta:
> Hi Barnabás,
> 
> Quoting Barnabás Pőcze (2026-11-02 11:15:47)
>> Add a new exposure mode that is intended to make the full capabilities
>> of a sensor available for applications, potentially allowing multi-second
>> exposure times and maximal analogue gain.
>>
>> Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
>> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
>> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
>> ---
>>   src/libcamera/control_ids_core.yaml | 5 +++++
>>   1 file changed, 5 insertions(+)
>>
>> diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml
>> index 73643e7e84..d27be4be6a 100644
>> --- a/src/libcamera/control_ids_core.yaml
>> +++ b/src/libcamera/control_ids_core.yaml
>> @@ -188,6 +188,11 @@ controls:
>>           - name: Custom
>>             value: 3
>>             description: Custom exposure mode.
>> +        - name: Maximize
>> +          value: 4
>> +          description: |
>> +            Exposure mode allowing very large exposure times and gains,
>> +            up to the sensors capabilities.
> 
> Maybe this was discussed elsewhere previously. Isn't that exactly the
> behavior of all the modes in AgcMeanLuminance? If proper exposure can't
> be reached with the predefined steps, exposure time and then gain get
> maxed out.

That's correct, but this patch series proposes to change that, in order to
have the same behaviour as the rpi implementation.

https://gitlab.freedesktop.org/camera/libcamera/-/work_items/362



> There is surely more we could do here but I don't see the
> reasoning why we'd need another mode. How would the user decide between
> these modes?
> 
> Best regards,
> Stefan
> 
>>   
>>     - ExposureValue:
>>         type: float
>> -- 
>> 2.56.0
>>

Patch
diff mbox series

diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml
index 73643e7e84..d27be4be6a 100644
--- a/src/libcamera/control_ids_core.yaml
+++ b/src/libcamera/control_ids_core.yaml
@@ -188,6 +188,11 @@  controls:
         - name: Custom
           value: 3
           description: Custom exposure mode.
+        - name: Maximize
+          value: 4
+          description: |
+            Exposure mode allowing very large exposure times and gains,
+            up to the sensors capabilities.
 
   - ExposureValue:
       type: float