ipa: camera_sensor_helper: Implement factories through class templates
The REGISTER_CAMERA_SENSOR_HELPER() macro defines a class type that inherits from the CameraSensorHelperFactory class, and implements a constructor and createInstance() function. Replace the code generation through macro with the C++ equivalent, a class template, as done by the Algorithm factory. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
9d9481188f
commit
014698cba1
4 changed files with 72 additions and 52 deletions
|
@ -142,7 +142,7 @@ int IPARkISP1::init(const IPASettings &settings, unsigned int hwRevision,
|
|||
/* Cache the value to set it in configure. */
|
||||
hwRevision_ = static_cast<rkisp1_cif_isp_version>(hwRevision);
|
||||
|
||||
camHelper_ = CameraSensorHelperFactory::create(settings.sensorModel);
|
||||
camHelper_ = CameraSensorHelperFactoryBase::create(settings.sensorModel);
|
||||
if (!camHelper_) {
|
||||
LOG(IPARkISP1, Error)
|
||||
<< "Failed to create camera sensor helper for "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue