[libcamera-devel] libcamera: delayed_controls: Add missing documentation for ControlParams
diff mbox series

Message ID 20210313100218.2872534-1-naush@raspberrypi.com
State Accepted
Headers show
Series
  • [libcamera-devel] libcamera: delayed_controls: Add missing documentation for ControlParams
Related show

Commit Message

Naushir Patuck March 13, 2021, 10:02 a.m. UTC
Document struct DelayedControls::ControlParams and its associated
fields.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
---
 src/libcamera/delayed_controls.cpp | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Laurent Pinchart March 13, 2021, 7:47 p.m. UTC | #1
Hi Naush,

Thank you for the patch.

On Sat, Mar 13, 2021 at 10:02:18AM +0000, Naushir Patuck wrote:
> Document struct DelayedControls::ControlParams and its associated
> fields.
> 
> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
> ---
>  src/libcamera/delayed_controls.cpp | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/src/libcamera/delayed_controls.cpp b/src/libcamera/delayed_controls.cpp
> index a3917fd99e7a..0f70d087b22c 100644
> --- a/src/libcamera/delayed_controls.cpp
> +++ b/src/libcamera/delayed_controls.cpp
> @@ -37,6 +37,23 @@ LOG_DEFINE_CATEGORY(DelayedControls)
>   * delay.
>   */
>  
> +/**
> + * \struct DelayedControls::ControlParams
> + * \brief Parameters associated with controls handled by the \a DelayedControls
> + * helper class
> + *
> + * \var ControlParams::delay
> + * \brief Frame delay from setting the control on a sensor device to when it is
> + * consumed during framing.
> + *
> + * \var ControlParams::priorityWrite
> + * \brief Flag to indicate that this control must be applied
> + * ahead of, and separately from the other controls. Typically set for the \a
> + * V4L2_CID_VBLANK control so that the device driver does not reject \a
> + * V4L2_CID_EXPOSURE control values that may be outside of the existing vertical
> + * blanking specified bounds, but are within the new blanking bounds.

I'll add a blank line after the first sentence, otherwise the brief
isn't really a brief :-)

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

> + */
> +
>  /**
>   * \brief Construct a DelayedControls instance
>   * \param[in] device The V4L2 device the controls have to be applied to

Patch
diff mbox series

diff --git a/src/libcamera/delayed_controls.cpp b/src/libcamera/delayed_controls.cpp
index a3917fd99e7a..0f70d087b22c 100644
--- a/src/libcamera/delayed_controls.cpp
+++ b/src/libcamera/delayed_controls.cpp
@@ -37,6 +37,23 @@  LOG_DEFINE_CATEGORY(DelayedControls)
  * delay.
  */
 
+/**
+ * \struct DelayedControls::ControlParams
+ * \brief Parameters associated with controls handled by the \a DelayedControls
+ * helper class
+ *
+ * \var ControlParams::delay
+ * \brief Frame delay from setting the control on a sensor device to when it is
+ * consumed during framing.
+ *
+ * \var ControlParams::priorityWrite
+ * \brief Flag to indicate that this control must be applied
+ * ahead of, and separately from the other controls. Typically set for the \a
+ * V4L2_CID_VBLANK control so that the device driver does not reject \a
+ * V4L2_CID_EXPOSURE control values that may be outside of the existing vertical
+ * blanking specified bounds, but are within the new blanking bounds.
+ */
+
 /**
  * \brief Construct a DelayedControls instance
  * \param[in] device The V4L2 device the controls have to be applied to