diff options
author | Chih-hung Hsieh <chh@google.com> | 2023-01-12 00:13:05 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-01-12 00:13:05 +0000 |
commit | ac65bd4336ab228397cde8f67d8cd53e9f63351d (patch) | |
tree | 7193771ec8656f1616b708e11d7cc59b1a3ae330 | |
parent | d64959e2f2b4c46e035af862166d1836d8d717a1 (diff) | |
parent | 286f46824a6736398ded0b4d4f5c4f531bab03cf (diff) | |
download | LegacyCamera-ac65bd4336ab228397cde8f67d8cd53e9f63351d.tar.gz |
Merge "Suppress clang-analyzer-security.FloatLoopCounter warnings" am: 286f46824aandroid-u-beta-1-gpl
Original change: https://android-review.googlesource.com/c/platform/packages/apps/LegacyCamera/+/2384983
Change-Id: I4d9ff379a963934b6263c83b2f7b1bc622f3fa92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | jni/feature_stab/src/dbreg/dbstabsmooth.cpp | 2 |
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)) |