[v1,09/11] ipa: rkisp1: params: Add companding blocks
diff mbox series

Message ID 20240703225230.3530-10-laurent.pinchart@ideasonboard.com
State Superseded
Headers show
Series
  • rkisp1: Support BLS on i.MX8MP
Related show

Commit Message

Laurent Pinchart July 3, 2024, 10:52 p.m. UTC
Extend the RkISP1 parameters helper with support for the new companding
blocks.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/ipa/rkisp1/params.cpp | 3 +++
 src/ipa/rkisp1/params.h   | 6 ++++++
 2 files changed, 9 insertions(+)

Comments

Jacopo Mondi July 4, 2024, 1:25 p.m. UTC | #1
Hi Laurent

On Thu, Jul 04, 2024 at 01:52:28AM GMT, Laurent Pinchart wrote:
> Extend the RkISP1 parameters helper with support for the new companding
> blocks.

if the kernel side gets merged in one go, this can be squashed with
the introduction of RkISP1Params

Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  src/ipa/rkisp1/params.cpp | 3 +++
>  src/ipa/rkisp1/params.h   | 6 ++++++
>  2 files changed, 9 insertions(+)
>
> diff --git a/src/ipa/rkisp1/params.cpp b/src/ipa/rkisp1/params.cpp
> index ac25ade1c8c4..5fb8fbf943a7 100644
> --- a/src/ipa/rkisp1/params.cpp
> +++ b/src/ipa/rkisp1/params.cpp
> @@ -66,6 +66,9 @@ const std::map<Block, BlockTypeInfo> kBlockTypeInfo = {
>  	RKISP1_BLOCK_TYPE_ENTRY_MEAS(Hst, HST, hst),
>  	RKISP1_BLOCK_TYPE_ENTRY_MEAS(Aec, AEC, aec),
>  	RKISP1_BLOCK_TYPE_ENTRY_MEAS(Afc, AFC, afc),
> +	RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandBls, COMPAND_BLS, compand_bls),
> +	RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandExpand, COMPAND_EXPAND, compand_curve),
> +	RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandCompress, COMPAND_COMPRESS, compand_curve),
>  };
>
>  } /* namespace */
> diff --git a/src/ipa/rkisp1/params.h b/src/ipa/rkisp1/params.h
> index ddd081de7894..13b2bbbb8182 100644
> --- a/src/ipa/rkisp1/params.h
> +++ b/src/ipa/rkisp1/params.h
> @@ -37,6 +37,9 @@ enum class Block {
>  	Hst,
>  	Aec,
>  	Afc,
> +	CompandBls,
> +	CompandExpand,
> +	CompandCompress,
>  };
>
>  namespace details {
> @@ -68,6 +71,9 @@ RKISP1_DEFINE_BLOCK_TYPE(Awb, awb_meas)
>  RKISP1_DEFINE_BLOCK_TYPE(Hst, hst)
>  RKISP1_DEFINE_BLOCK_TYPE(Aec, aec)
>  RKISP1_DEFINE_BLOCK_TYPE(Afc, afc)
> +RKISP1_DEFINE_BLOCK_TYPE(CompandBls, compand_bls)
> +RKISP1_DEFINE_BLOCK_TYPE(CompandExpand, compand_expand)
> +RKISP1_DEFINE_BLOCK_TYPE(CompandCompress, compand_compress)
>
>  } /* namespace details */
>
> --
> Regards,
>
> Laurent Pinchart
>

Patch
diff mbox series

diff --git a/src/ipa/rkisp1/params.cpp b/src/ipa/rkisp1/params.cpp
index ac25ade1c8c4..5fb8fbf943a7 100644
--- a/src/ipa/rkisp1/params.cpp
+++ b/src/ipa/rkisp1/params.cpp
@@ -66,6 +66,9 @@  const std::map<Block, BlockTypeInfo> kBlockTypeInfo = {
 	RKISP1_BLOCK_TYPE_ENTRY_MEAS(Hst, HST, hst),
 	RKISP1_BLOCK_TYPE_ENTRY_MEAS(Aec, AEC, aec),
 	RKISP1_BLOCK_TYPE_ENTRY_MEAS(Afc, AFC, afc),
+	RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandBls, COMPAND_BLS, compand_bls),
+	RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandExpand, COMPAND_EXPAND, compand_curve),
+	RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandCompress, COMPAND_COMPRESS, compand_curve),
 };
 
 } /* namespace */
diff --git a/src/ipa/rkisp1/params.h b/src/ipa/rkisp1/params.h
index ddd081de7894..13b2bbbb8182 100644
--- a/src/ipa/rkisp1/params.h
+++ b/src/ipa/rkisp1/params.h
@@ -37,6 +37,9 @@  enum class Block {
 	Hst,
 	Aec,
 	Afc,
+	CompandBls,
+	CompandExpand,
+	CompandCompress,
 };
 
 namespace details {
@@ -68,6 +71,9 @@  RKISP1_DEFINE_BLOCK_TYPE(Awb, awb_meas)
 RKISP1_DEFINE_BLOCK_TYPE(Hst, hst)
 RKISP1_DEFINE_BLOCK_TYPE(Aec, aec)
 RKISP1_DEFINE_BLOCK_TYPE(Afc, afc)
+RKISP1_DEFINE_BLOCK_TYPE(CompandBls, compand_bls)
+RKISP1_DEFINE_BLOCK_TYPE(CompandExpand, compand_expand)
+RKISP1_DEFINE_BLOCK_TYPE(CompandCompress, compand_compress)
 
 } /* namespace details */