554c5c7fa1
The YamlObject class is now a generic data container to model trees of values. Rename it to ValueNode and expand the class documentation. While at it, drop the unneeded libcamera:: namespace prefix when using the ValueNode class. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
40 lines
794 B
C++
40 lines
794 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2024, Ideas On Board
|
|
*
|
|
* RkISP1 Lux control
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "libipa/lux.h"
|
|
|
|
#include "algorithm.h"
|
|
|
|
namespace libcamera {
|
|
|
|
namespace ipa::rkisp1::algorithms {
|
|
|
|
class Lux : public Algorithm
|
|
{
|
|
public:
|
|
Lux();
|
|
|
|
int init(IPAContext &context, const ValueNode &tuningData) override;
|
|
void prepare(IPAContext &context, const uint32_t frame,
|
|
IPAFrameContext &frameContext,
|
|
RkISP1Params *params) override;
|
|
void process(IPAContext &context, const uint32_t frame,
|
|
IPAFrameContext &frameContext,
|
|
const rkisp1_stat_buffer *stats,
|
|
ControlList &metadata) override;
|
|
|
|
private:
|
|
ipa::Lux lux_;
|
|
};
|
|
|
|
} /* namespace ipa::rkisp1::algorithms */
|
|
} /* namespace libcamera */
|