[01/10] ipa: ipu3: Remove ~Awb() from source and header
diff mbox series

Message ID 20260616-ipu3-libipa-rework-v1-1-d4448b54f1d8@ideasonboard.com
State Superseded
Headers show
Series
  • libipa: Re-work IPU3 IPA to use libipa algorithms
Related show

Commit Message

Dan Scally June 16, 2026, 6:41 a.m. UTC
Remove the ~Awb() definition from the source and header files and
simply allow the compiler to provide the default implementations.

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
---
 src/ipa/ipu3/algorithms/awb.cpp | 2 --
 src/ipa/ipu3/algorithms/awb.h   | 1 -
 2 files changed, 3 deletions(-)

Comments

Pőcze Barnabás June 16, 2026, 8:29 a.m. UTC | #1
2026. 06. 16. 8:41 keltezéssel, Daniel Scally írta:
> Remove the ~Awb() definition from the source and header files and
> simply allow the compiler to provide the default implementations.
> 
> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
> ---

Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>


>   src/ipa/ipu3/algorithms/awb.cpp | 2 --
>   src/ipa/ipu3/algorithms/awb.h   | 1 -
>   2 files changed, 3 deletions(-)
> 
> diff --git a/src/ipa/ipu3/algorithms/awb.cpp b/src/ipa/ipu3/algorithms/awb.cpp
> index 55de05d9e39f5d2c863b89923964a4c7756f3846..6b4418aa6f3add0a41cae77000c1f5f67897111a 100644
> --- a/src/ipa/ipu3/algorithms/awb.cpp
> +++ b/src/ipa/ipu3/algorithms/awb.cpp
> @@ -195,8 +195,6 @@ Awb::Awb()
>   	zones_.reserve(kAwbStatsSizeX * kAwbStatsSizeY);
>   }
> 
> -Awb::~Awb() = default;
> -
>   /**
>    * \copydoc libcamera::ipa::Algorithm::configure
>    */
> diff --git a/src/ipa/ipu3/algorithms/awb.h b/src/ipa/ipu3/algorithms/awb.h
> index dbf69c9073a1627b666fe63158081e347cf3581e..7ec322318dab54ae7c8a647a67a0cf5815a36eb6 100644
> --- a/src/ipa/ipu3/algorithms/awb.h
> +++ b/src/ipa/ipu3/algorithms/awb.h
> @@ -38,7 +38,6 @@ class Awb : public Algorithm
>   {
>   public:
>   	Awb();
> -	~Awb();
> 
>   	int configure(IPAContext &context, const IPAConfigInfo &configInfo) override;
>   	void prepare(IPAContext &context, const uint32_t frame,
> 
> --
> 2.43.0
>
Kieran Bingham June 16, 2026, 6:07 p.m. UTC | #2
Quoting Daniel Scally (2026-06-16 07:41:35)
> Remove the ~Awb() definition from the source and header files and
> simply allow the compiler to provide the default implementations.
> 
> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>

Easy ones first I guess

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  src/ipa/ipu3/algorithms/awb.cpp | 2 --
>  src/ipa/ipu3/algorithms/awb.h   | 1 -
>  2 files changed, 3 deletions(-)
> 
> diff --git a/src/ipa/ipu3/algorithms/awb.cpp b/src/ipa/ipu3/algorithms/awb.cpp
> index 55de05d9e39f5d2c863b89923964a4c7756f3846..6b4418aa6f3add0a41cae77000c1f5f67897111a 100644
> --- a/src/ipa/ipu3/algorithms/awb.cpp
> +++ b/src/ipa/ipu3/algorithms/awb.cpp
> @@ -195,8 +195,6 @@ Awb::Awb()
>         zones_.reserve(kAwbStatsSizeX * kAwbStatsSizeY);
>  }
>  
> -Awb::~Awb() = default;
> -
>  /**
>   * \copydoc libcamera::ipa::Algorithm::configure
>   */
> diff --git a/src/ipa/ipu3/algorithms/awb.h b/src/ipa/ipu3/algorithms/awb.h
> index dbf69c9073a1627b666fe63158081e347cf3581e..7ec322318dab54ae7c8a647a67a0cf5815a36eb6 100644
> --- a/src/ipa/ipu3/algorithms/awb.h
> +++ b/src/ipa/ipu3/algorithms/awb.h
> @@ -38,7 +38,6 @@ class Awb : public Algorithm
>  {
>  public:
>         Awb();
> -       ~Awb();
>  
>         int configure(IPAContext &context, const IPAConfigInfo &configInfo) override;
>         void prepare(IPAContext &context, const uint32_t frame,
> 
> -- 
> 2.43.0
>

Patch
diff mbox series

diff --git a/src/ipa/ipu3/algorithms/awb.cpp b/src/ipa/ipu3/algorithms/awb.cpp
index 55de05d9e39f5d2c863b89923964a4c7756f3846..6b4418aa6f3add0a41cae77000c1f5f67897111a 100644
--- a/src/ipa/ipu3/algorithms/awb.cpp
+++ b/src/ipa/ipu3/algorithms/awb.cpp
@@ -195,8 +195,6 @@  Awb::Awb()
 	zones_.reserve(kAwbStatsSizeX * kAwbStatsSizeY);
 }
 
-Awb::~Awb() = default;
-
 /**
  * \copydoc libcamera::ipa::Algorithm::configure
  */
diff --git a/src/ipa/ipu3/algorithms/awb.h b/src/ipa/ipu3/algorithms/awb.h
index dbf69c9073a1627b666fe63158081e347cf3581e..7ec322318dab54ae7c8a647a67a0cf5815a36eb6 100644
--- a/src/ipa/ipu3/algorithms/awb.h
+++ b/src/ipa/ipu3/algorithms/awb.h
@@ -38,7 +38,6 @@  class Awb : public Algorithm
 {
 public:
 	Awb();
-	~Awb();
 
 	int configure(IPAContext &context, const IPAConfigInfo &configInfo) override;
 	void prepare(IPAContext &context, const uint32_t frame,