Message ID | 20240704162035.15074-10-laurent.pinchart@ideasonboard.com |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
On Thu, Jul 04, 2024 at 07:20:33PM +0300, Laurent Pinchart wrote: > Extend the RkISP1 parameters helper with support for the new companding > blocks. > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@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 7155038deb18..9a619ef82894 100644 > --- a/src/ipa/rkisp1/params.cpp > +++ b/src/ipa/rkisp1/params.cpp > @@ -71,6 +71,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 7a7bf07299b2..3d15102da20c 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_curve) > +RKISP1_DEFINE_BLOCK_TYPE(CompandCompress, compand_curve) > > } /* namespace details */
diff --git a/src/ipa/rkisp1/params.cpp b/src/ipa/rkisp1/params.cpp index 7155038deb18..9a619ef82894 100644 --- a/src/ipa/rkisp1/params.cpp +++ b/src/ipa/rkisp1/params.cpp @@ -71,6 +71,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 7a7bf07299b2..3d15102da20c 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_curve) +RKISP1_DEFINE_BLOCK_TYPE(CompandCompress, compand_curve) } /* namespace details */