[libcamera-devel] [PATCH v2 03/10] libcamera: request: Add PFCError flag
Umang Jain
umang.jain at ideasonboard.com
Thu Aug 11 06:55:33 CEST 2022
Hi Jacopo,
Thank you for the pathc.
On 8/5/22 19:23, Jacopo Mondi via libcamera-devel wrote:
> From: Kieran Bingham via libcamera-devel <libcamera-devel at lists.libcamera.org>
>
> Provide a new flag for the Request error state to indicate that a
> per-frame control error has occurred. One or more controls set for this
> request could not be guaranteed on this frame.
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>
> Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
Reviewed-by: Umang Jain <umang.jain at ideasonboard.com>
> ---
> include/libcamera/request.h | 1 +
> src/libcamera/request.cpp | 4 ++++
> 2 files changed, 5 insertions(+)
>
> diff --git a/include/libcamera/request.h b/include/libcamera/request.h
> index 3304da31200d..9aee81922c91 100644
> --- a/include/libcamera/request.h
> +++ b/include/libcamera/request.h
> @@ -47,6 +47,7 @@ public:
> enum ErrorFlag {
> NoError = 0,
> ControlError = (1 << 0),
> + PFCError = (1 << 1),
> };
>
> using Errors = Flags<ErrorFlag>;
> diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp
> index 9a808f19fc03..b93eaac75880 100644
> --- a/src/libcamera/request.cpp
> +++ b/src/libcamera/request.cpp
> @@ -346,6 +346,10 @@ void Request::Private::timeout()
> * Control Error. At least one control was not applied correctly to the camera.
> * The application should compare the metadata to the requested control values
> * to check which controls weren't applied.
> + *
> + * \var Request::PFCError
> + * A per-frame-control error has occured. Controls that were expected to be set
> + * during the processing of this request were not processed in time.
> */
>
> /**
More information about the libcamera-devel
mailing list