pipeline: rkisp1: Query kernel for available params blocks
Query the params device for RKISP1_CID_SUPPORTED_PARAMS_BLOCKS and inject the information into the IPA hardware context for use by the algorithms. To be able to modify the hardware configuration at runtime, replace the pointer with an instance and create a copy of the static hardware specific data. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
c8f323b7ae
commit
c7cc1f7f0d
@@ -50,7 +50,7 @@ const float kDefaultGamma = 2.2f;
|
||||
*/
|
||||
int GammaOutCorrection::init(IPAContext &context, const YamlObject &tuningData)
|
||||
{
|
||||
if (context.hw->numGammaOutSamples !=
|
||||
if (context.hw.numGammaOutSamples !=
|
||||
RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V10) {
|
||||
LOG(RkISP1Gamma, Error)
|
||||
<< "Gamma is not implemented for RkISP1 V12";
|
||||
@@ -101,7 +101,7 @@ void GammaOutCorrection::prepare(IPAContext &context,
|
||||
IPAFrameContext &frameContext,
|
||||
RkISP1Params *params)
|
||||
{
|
||||
ASSERT(context.hw->numGammaOutSamples ==
|
||||
ASSERT(context.hw.numGammaOutSamples ==
|
||||
RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V10);
|
||||
|
||||
if (!frameContext.goc.update)
|
||||
|
||||
Reference in New Issue
Block a user