ipa: rkisp1: lsc: Rename res to ret
Rename res to ret as that is used in libcamera for return codes. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Rui Wang <rui.wang@ideasonboard.com>
This commit is contained in:
@@ -321,27 +321,28 @@ int LensShadingCorrection::init([[maybe_unused]] IPAContext &context,
|
||||
}
|
||||
|
||||
std::map<unsigned int, Components> lscData;
|
||||
int res = 0;
|
||||
int ret = 0;
|
||||
|
||||
std::string type = tuningData["type"].get<std::string>("table");
|
||||
if (type == "table") {
|
||||
LOG(RkISP1Lsc, Debug) << "Loading tabular LSC data.";
|
||||
auto loader = LscTableLoader();
|
||||
res = loader.parseLscData(yamlSets, lscData);
|
||||
ret = loader.parseLscData(yamlSets, lscData);
|
||||
} else if (type == "polynomial") {
|
||||
LOG(RkISP1Lsc, Debug) << "Loading polynomial LSC data.";
|
||||
auto loader = LscPolynomialLoader(context.sensorInfo.activeAreaSize,
|
||||
context.sensorInfo.analogCrop,
|
||||
xSize_,
|
||||
ySize_);
|
||||
res = loader.parseLscData(yamlSets, lscData);
|
||||
ret = loader.parseLscData(yamlSets, lscData);
|
||||
} else {
|
||||
LOG(RkISP1Lsc, Error) << "Unsupported LSC data type '"
|
||||
<< type << "'";
|
||||
res = -EINVAL;
|
||||
ret = -EINVAL;
|
||||
}
|
||||
|
||||
if (res)
|
||||
return res;
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
sets_.setData(std::move(lscData));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user