[libcamera-devel] [PATCH 20/22] ipa: ipu3: Send color temperature in the metadata

Jacopo Mondi jacopo at jmondi.org
Mon Nov 8 15:12:27 CET 2021


Hi Jean-Michel

On Mon, Nov 08, 2021 at 02:13:48PM +0100, Jean-Michel Hautbois wrote:
> Now that the color temperature is updated per-frame, use the value and
> set the corresponding controls::ColourTemperature.
>
> Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>
> ---
>  src/ipa/ipu3/ipu3.cpp | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
> index 9b20e8ab..ca3f2417 100644
> --- a/src/ipa/ipu3/ipu3.cpp
> +++ b/src/ipa/ipu3/ipu3.cpp
> @@ -696,6 +696,14 @@ void IPAIPU3::parseStatistics(unsigned int frame,
>  				(sensorInfo_.pixelRate / 1e6);
>  	ctrls.set(controls::FrameDuration, frameDuration);
>
> +	ctrls.set(controls::ColourTemperature, context_.frameContext->awb.temperatureK);
> +
> +	/*
> +	 * \todo We should be able to add 'anything' (with a Control) in here to
> +	 * get information to say.
> +	 * It can be for debug purposes (qcam) or for any other HAL.
> +	 */
> +

Is this comment a leftover ?

>  	IPU3Action op;
>  	op.op = ActionMetadataReady;
>  	op.controls = ctrls;
> --
> 2.32.0
>


More information about the libcamera-devel mailing list