[libcamera-devel] ipa: raspberrypi: Fix typo and improve wording
diff mbox series

Message ID 20210328170302.36104-1-sebastian.fricke@posteo.net
State Accepted
Commit 6b98965877a87deffc87388c66f62bb28539aaed
Headers show
Series
  • [libcamera-devel] ipa: raspberrypi: Fix typo and improve wording
Related show

Commit Message

Sebastian Fricke March 28, 2021, 5:03 p.m. UTC
s/Return the validated limits out though metadata./
  Return the validated limits via metadata./

Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
---
It is probably debatable, if we should remove that comment completely,
as the code is quite self explanatory. But it might help.
---
 src/ipa/raspberrypi/raspberrypi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart March 28, 2021, 8:10 p.m. UTC | #1
Hi Sebastian,

Thank you for the patch.

On Sun, Mar 28, 2021 at 07:03:03PM +0200, Sebastian Fricke wrote:
> s/Return the validated limits out though metadata./
>   Return the validated limits via metadata./
> 
> Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
> ---
> It is probably debatable, if we should remove that comment completely,
> as the code is quite self explanatory. But it might help.

I'll let Naush and David decide what they like best, and they apply the
patch.

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

> ---
>  src/ipa/raspberrypi/raspberrypi.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
> index ed2d9a54..dad6395f 100644
> --- a/src/ipa/raspberrypi/raspberrypi.cpp
> +++ b/src/ipa/raspberrypi/raspberrypi.cpp
> @@ -1066,7 +1066,7 @@ void IPARPi::applyFrameDurations(double minFrameDuration, double maxFrameDuratio
>  				       minSensorFrameDuration, maxSensorFrameDuration);
>  	maxFrameDuration_ = std::max(maxFrameDuration_, minFrameDuration_);
>  
> -	/* Return the validated limits out though metadata. */
> +	/* Return the validated limits via metadata. */
>  	libcameraMetadata_.set(controls::FrameDurations,
>  			       { static_cast<int64_t>(minFrameDuration_),
>  				 static_cast<int64_t>(maxFrameDuration_) });
Naushir Patuck March 29, 2021, 6:59 a.m. UTC | #2
Hi Sebastian,

Thank you for your patch.

On Sun, 28 Mar 2021 at 18:03, Sebastian Fricke <sebastian.fricke@posteo.net>
wrote:

> s/Return the validated limits out though metadata./
>   Return the validated limits via metadata./
>
> Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
>
---
> It is probably debatable, if we should remove that comment completely,
> as the code is quite self explanatory. But it might help.
> ---
>

I see no harm in keeping the comment.
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>


>  src/ipa/raspberrypi/raspberrypi.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp
> b/src/ipa/raspberrypi/raspberrypi.cpp
> index ed2d9a54..dad6395f 100644
> --- a/src/ipa/raspberrypi/raspberrypi.cpp
> +++ b/src/ipa/raspberrypi/raspberrypi.cpp
> @@ -1066,7 +1066,7 @@ void IPARPi::applyFrameDurations(double
> minFrameDuration, double maxFrameDuratio
>                                        minSensorFrameDuration,
> maxSensorFrameDuration);
>         maxFrameDuration_ = std::max(maxFrameDuration_, minFrameDuration_);
>
> -       /* Return the validated limits out though metadata. */
> +       /* Return the validated limits via metadata. */
>         libcameraMetadata_.set(controls::FrameDurations,
>                                { static_cast<int64_t>(minFrameDuration_),
>                                  static_cast<int64_t>(maxFrameDuration_)
> });
> --
> 2.25.1
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel@lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
>

Patch
diff mbox series

diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index ed2d9a54..dad6395f 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -1066,7 +1066,7 @@  void IPARPi::applyFrameDurations(double minFrameDuration, double maxFrameDuratio
 				       minSensorFrameDuration, maxSensorFrameDuration);
 	maxFrameDuration_ = std::max(maxFrameDuration_, minFrameDuration_);
 
-	/* Return the validated limits out though metadata. */
+	/* Return the validated limits via metadata. */
 	libcameraMetadata_.set(controls::FrameDurations,
 			       { static_cast<int64_t>(minFrameDuration_),
 				 static_cast<int64_t>(maxFrameDuration_) });