[PATCH v4 7/9] ipa: rkisp1: params: Add companding blocks
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Tue Aug 27 03:40:41 CEST 2024
Extend the RkISP1 parameters helper with support for the new companding
blocks.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi at ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>
---
Changes since v1:
- Fix block structure for expand and compress
---
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 6bc6f89919fb..4c0b051ce65d 100644
--- a/src/ipa/rkisp1/params.cpp
+++ b/src/ipa/rkisp1/params.cpp
@@ -71,6 +71,9 @@ const std::map<BlockType, 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 28a781bc447c..40450e34497a 100644
--- a/src/ipa/rkisp1/params.h
+++ b/src/ipa/rkisp1/params.h
@@ -37,6 +37,9 @@ enum class BlockType {
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_curve)
+RKISP1_DEFINE_BLOCK_TYPE(CompandCompress, compand_curve)
} /* namespace details */
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list