ipa: rpi: awb_nn: Rename YamlObject to ValueNode
The global rename of YamlObject to ValueNode in commit554c5c7fa1missed awb_nn.cpp. Fix it. Fixes:554c5c7fa1("libcamera: Rename YamlObject to ValueNode") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -47,7 +47,7 @@ namespace RPiController {
|
||||
|
||||
struct AwbNNConfig {
|
||||
AwbNNConfig() = default;
|
||||
int read(const libcamera::YamlObject ¶ms, AwbConfig &config);
|
||||
int read(const libcamera::ValueNode ¶ms, AwbConfig &config);
|
||||
|
||||
/* An empty model will check default locations for model.tflite */
|
||||
std::string model;
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
~AwbNN();
|
||||
char const *name() const override;
|
||||
void initialise() override;
|
||||
int read(const libcamera::YamlObject ¶ms) override;
|
||||
int read(const libcamera::ValueNode ¶ms) override;
|
||||
|
||||
protected:
|
||||
void doAwb() override;
|
||||
@@ -86,7 +86,7 @@ private:
|
||||
std::unique_ptr<tflite::Interpreter> interpreter_;
|
||||
};
|
||||
|
||||
int AwbNNConfig::read(const libcamera::YamlObject ¶ms, AwbConfig &config)
|
||||
int AwbNNConfig::read(const libcamera::ValueNode ¶ms, AwbConfig &config)
|
||||
{
|
||||
model = params["model"].get<std::string>("");
|
||||
minTemp = params["min_temp"].get<float>(2800.0);
|
||||
@@ -146,7 +146,7 @@ char const *AwbNN::name() const
|
||||
return NAME;
|
||||
}
|
||||
|
||||
int AwbNN::read(const libcamera::YamlObject ¶ms)
|
||||
int AwbNN::read(const libcamera::ValueNode ¶ms)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user