[PATCH v4 12/15] config: Allow enabling software ISP in runtime
Barnabás Pőcze
pobrn at protonmail.com
Thu Sep 26 21:44:47 CEST 2024
Hi
2024. szeptember 25., szerda 11:58 keltezéssel, Milan Zamazal <mzamazal at redhat.com> írta:
> [...]
> swIspEnabled_ = info->swIspEnabled;
> + for (GlobalConfiguration::Configuration entry :
> + GlobalConfiguration::configuration()
> + ["pipelines"]["simple"]["supported_devices"]
> + .asList()) {
> + auto name = entry["driver"].get<std::string>();
> + if (name.has_value() and !name.value().compare(info->driver)) {
I think
if (name == info->driver)
should work.
Regards,
Barnabás Pőcze
> + swIspEnabled_ = entry["software_isp"].get<bool>().value_or(swIspEnabled_);
> + LOG(SimplePipeline, Debug) << "Overriding software ISP to " << swIspEnabled_;
> + break;
> + }
> + }
>
> /* Locate the sensors. */
> std::vector<MediaEntity *> sensors = locateSensors(media);
> --
> 2.44.1
More information about the libcamera-devel
mailing list