mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-17 09:25:07 +03:00
ipa: raspberrypi: AWB: Remove unused code
Some more code from pre-libcamera versions is removed. There is no functional change. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
f8a70a8a74
commit
b8bd37c6af
2 changed files with 2 additions and 9 deletions
|
@ -90,21 +90,16 @@ public:
|
|||
void Prepare(Metadata *image_metadata) override;
|
||||
void Process(StatisticsPtr &stats, Metadata *image_metadata) override;
|
||||
struct RGB {
|
||||
RGB(double _R = INVALID, double _G = INVALID,
|
||||
double _B = INVALID)
|
||||
RGB(double _R = -1.0, double _G = -1.0, double _B = -1.0)
|
||||
: R(_R), G(_G), B(_B)
|
||||
{
|
||||
}
|
||||
double R, G, B;
|
||||
static const double INVALID;
|
||||
bool Valid() const { return G != INVALID; }
|
||||
bool Invalid() const { return G == INVALID; }
|
||||
RGB &operator+=(RGB const &other)
|
||||
{
|
||||
R += other.R, G += other.G, B += other.B;
|
||||
return *this;
|
||||
}
|
||||
RGB Square() const { return RGB(R * R, G * G, B * B); }
|
||||
};
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue