ipa: ipu3: Register algorithms
To prepare for dynamic instantiation of algorithms from the tuning file, register the algorithms with the Module class. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -450,6 +450,8 @@ void Af::process(IPAContext &context, [[maybe_unused]] IPAFrameContext *frameCon
|
||||
}
|
||||
}
|
||||
|
||||
REGISTER_IPA_ALGORITHM(Af, "Af")
|
||||
|
||||
} /* namespace ipa::ipu3::algorithms */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
@@ -363,6 +363,8 @@ void Agc::process(IPAContext &context, [[maybe_unused]] IPAFrameContext *frameCo
|
||||
frameCount_++;
|
||||
}
|
||||
|
||||
REGISTER_IPA_ALGORITHM(Agc, "Agc")
|
||||
|
||||
} /* namespace ipa::ipu3::algorithms */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
@@ -483,6 +483,8 @@ void Awb::prepare(IPAContext &context, ipu3_uapi_params *params)
|
||||
params->use.acc_ccm = 1;
|
||||
}
|
||||
|
||||
REGISTER_IPA_ALGORITHM(Awb, "Awb")
|
||||
|
||||
} /* namespace ipa::ipu3::algorithms */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
@@ -62,6 +62,8 @@ void BlackLevelCorrection::prepare([[maybe_unused]] IPAContext &context,
|
||||
params->use.obgrid_param = 1;
|
||||
}
|
||||
|
||||
REGISTER_IPA_ALGORITHM(BlackLevelCorrection, "BlackLevelCorrection")
|
||||
|
||||
} /* namespace ipa::ipu3::algorithms */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
@@ -105,6 +105,8 @@ void ToneMapping::process(IPAContext &context, [[maybe_unused]] IPAFrameContext
|
||||
context.activeState.toneMapping.gamma = gamma_;
|
||||
}
|
||||
|
||||
REGISTER_IPA_ALGORITHM(ToneMapping, "ToneMapping")
|
||||
|
||||
} /* namespace ipa::ipu3::algorithms */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
Reference in New Issue
Block a user