mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
This allows the IPA to discover the correct black level values even before any frames have been processed. This is important on the PiSP platform where the front end black level blocks must be programmed in advance. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
23 lines
561 B
C++
23 lines
561 B
C++
/* SPDX-License-Identifier: BSD-2-Clause */
|
|
/*
|
|
* Copyright (C) 2023, Raspberry Pi Ltd
|
|
*
|
|
* black_level_algorithm.h - black level control algorithm interface
|
|
*/
|
|
#pragma once
|
|
|
|
#include "algorithm.h"
|
|
|
|
namespace RPiController {
|
|
|
|
class BlackLevelAlgorithm : public Algorithm
|
|
{
|
|
public:
|
|
BlackLevelAlgorithm(Controller *controller)
|
|
: Algorithm(controller) {}
|
|
/* A black level algorithm must provide the following: */
|
|
virtual void initialValues(uint16_t &blackLevelR, uint16_t &blackLevelG,
|
|
uint16_t &blackLevelB) = 0;
|
|
};
|
|
|
|
} /* namespace RPiController */
|