[libcamera-devel] [PATCH] ipa: raspberrypi: Return controls::FrameDuration from the IPA

Naushir Patuck naush at raspberrypi.com
Wed Jul 28 08:36:38 CEST 2021


Hi,

Gentle ping for some feedback on this change.

Thanks,
Naush

On Thu, 22 Jul 2021 at 12:57, Naushir Patuck <naush at raspberrypi.com> wrote:

> Return controls::FrameDuration through the per-frame Request metadata. The
> frame duration is obtained by either the value in DelayedControls, or
> (preferably) the value parsed from the embedded data buffer.
>
> Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
> ---
>  src/ipa/raspberrypi/raspberrypi.cpp | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp
> b/src/ipa/raspberrypi/raspberrypi.cpp
> index 5cd333049807..b08602f474af 100644
> --- a/src/ipa/raspberrypi/raspberrypi.cpp
> +++ b/src/ipa/raspberrypi/raspberrypi.cpp
> @@ -465,6 +465,8 @@ void IPARPi::reportMetadata()
>                 libcameraMetadata_.set(controls::ExposureTime,
>
>  deviceStatus->shutter_speed.get<std::micro>());
>                 libcameraMetadata_.set(controls::AnalogueGain,
> deviceStatus->analogue_gain);
> +               libcameraMetadata_.set(controls::FrameDuration,
> +
> helper_->Exposure(deviceStatus->frame_length).get<std::micro>());
>         }
>
>         AgcStatus *agcStatus =
> rpiMetadata_.GetLocked<AgcStatus>("agc.status");
> --
> 2.25.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20210728/8fae9840/attachment.htm>


More information about the libcamera-devel mailing list