libcamera: software_isp: Remove DebayerParams::kGain10
The constant is used in a single place internally and doesn't belong to DebayerParams anymore. Let's use 256 directly. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Andrei Konovalov <andrey.konovalov.ynk@gmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
539c62ff8e
commit
f5b7921e0a
@@ -289,8 +289,7 @@ void IPASoftSimple::processStats(const ControlList &sensorControls)
|
||||
|
||||
for (unsigned int i = 0; i < DebayerParams::kRGBLookupSize; i++) {
|
||||
constexpr unsigned int div =
|
||||
DebayerParams::kRGBLookupSize * DebayerParams::kGain10 /
|
||||
kGammaLookupSize;
|
||||
DebayerParams::kRGBLookupSize * 256 / kGammaLookupSize;
|
||||
unsigned int idx;
|
||||
|
||||
/* Apply gamma after gain! */
|
||||
|
||||
Reference in New Issue
Block a user