summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:13:30 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:13:30 +0000
commitbcb2c4c5016a08172b1c89008dd5a9f3c01bdac9 (patch)
tree7193771ec8656f1616b708e11d7cc59b1a3ae330
parent1cedebbe4f783f7bc7f5bc47000fb3e8d1efd5ef (diff)
parentd6112515808f522cc3c4a10f3bdd549873054262 (diff)
downloadLegacyCamera-android14-mainline-permission-release.tar.gz
Change-Id: I3594022d4b0cc0bbbf732326513319a11c569758
-rw-r--r--jni/feature_stab/src/dbreg/dbstabsmooth.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
index dffff8ab..d2e7a283 100644
--- a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
+++ b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
@@ -136,6 +136,8 @@ bool db_StabilizationSmoother::smoothMotionAdaptive(/*VP_BIMG *bimg,*/int hsize,
smoothFactor = minSmoothFactor;
// Find the amount of motion that must be compensated so that no "border" pixels are seen in the stable video
+ // FixLater: avoid floating point loop counters
+ // NOLINTNEXTLINE(clang-analyzer-security.FloatLoopCounter,cert-flp30-c)
for (smoothFactor = smoothFactor; smoothFactor >= minSmoothFactor; smoothFactor -= 0.01) {
// Compute the smoothed motion
if(!smoothMotion(inmot, &tmpMotion, smoothFactor))