@@ -56,20 +56,6 @@ static constexpr utils::Duration kMaxShutterSpeed = 60ms;
/* Histogram constants */
static constexpr uint32_t knumHistogramBins = 256;
-/* Target value to reach for the top 2% of the histogram */
-static constexpr double kEvGainTarget = 0.5;
-
-/* Number of frames to wait before calculating stats on minimum exposure */
-static constexpr uint32_t kNumStartupFrames = 10;
-
-/*
- * Relative luminance target.
- *
- * It's a number that's chosen so that, when the camera points at a grey
- * target, the resulting image brightness is considered right.
- */
-static constexpr double kRelativeLuminanceTarget = 0.16;
-
Agc::Agc()
: minShutterSpeed_(0s), maxShutterSpeed_(0s)
{
I will apply the series with the following fixup. Fixes: FAILED: src/ipa/ipu3/ipa_ipu3.so.p/algorithms_agc.cpp.o clang++ -Isrc/ipa/ipu3/ipa_ipu3.so.p -Isrc/ipa/ipu3 -I../src/ipa/ipu3 -Iinclude -I../include -Isrc/ipa -I../src/ipa -Iinclude/libcamera/ipa -Iinclude/libcamera -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c++17 -O0 -g -stdlib=libc++ -Wextra-semi -Wthread-safety -Wshadow -include /builds/camera/libcamera/build/config.h -Wno-c99-designator -fPIC -DLIBCAMERA_BASE_PRIVATE -MD -MQ src/ipa/ipu3/ipa_ipu3.so.p/algorithms_agc.cpp.o -MF src/ipa/ipu3/ipa_ipu3.so.p/algorithms_agc.cpp.o.d -o src/ipa/ipu3/ipa_ipu3.so.p/algorithms_agc.cpp.o -c ../src/ipa/ipu3/algorithms/agc.cpp ../src/ipa/ipu3/algorithms/agc.cpp:60:25: error: unused variable 'kEvGainTarget' [-Werror,-Wunused-const-variable] static constexpr double kEvGainTarget = 0.5; ^ ../src/ipa/ipu3/algorithms/agc.cpp:63:27: error: unused variable 'kNumStartupFrames' [-Werror,-Wunused-const-variable] static constexpr uint32_t kNumStartupFrames = 10; ^ ../src/ipa/ipu3/algorithms/agc.cpp:71:25: error: unused variable 'kRelativeLuminanceTarget' [-Werror,-Wunused-const-variable] static constexpr double kRelativeLuminanceTarget = 0.16; ^ 3 errors generated. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> --- src/ipa/ipu3/algorithms/agc.cpp | 14 -------------- 1 file changed, 14 deletions(-)