From 6f56f72f78833b17e43acacac24d217a868c0809 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Wed, 8 Dec 2021 17:39:32 +0100
Subject: [PATCH] cosmetics

---
 include/core/processor/processor_base.h | 11 +++++++----
 src/processor/processor_motion.cpp      | 10 ++++++++--
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/include/core/processor/processor_base.h b/include/core/processor/processor_base.h
index 5a46681d0..8e15ff0ff 100644
--- a/include/core/processor/processor_base.h
+++ b/include/core/processor/processor_base.h
@@ -602,8 +602,10 @@ inline void Buffer<T>::removeUpToLower(const TimeStamp& _time_stamp)
 }
 
 template <typename T>
-inline bool Buffer<T>::doubleCheckTimeTolerance(const TimeStamp& _time_stamp1, const double& _time_tolerance1,
-                                const TimeStamp& _time_stamp2, const double& _time_tolerance2)
+inline bool Buffer<T>::doubleCheckTimeTolerance(const TimeStamp& _time_stamp1,
+                                                const double& _time_tolerance1,
+                                                const TimeStamp& _time_stamp2,
+                                                const double& _time_tolerance2)
 {
     double time_diff = std::fabs(_time_stamp1 - _time_stamp2);
     double time_tol  = std::min(_time_tolerance1, _time_tolerance2);
@@ -612,8 +614,9 @@ inline bool Buffer<T>::doubleCheckTimeTolerance(const TimeStamp& _time_stamp1, c
 }
 
 template <typename T>
-inline bool Buffer<T>::simpleCheckTimeTolerance(const TimeStamp& _time_stamp1, const TimeStamp& _time_stamp2,
-                                const double& _time_tolerance)
+inline bool Buffer<T>::simpleCheckTimeTolerance(const TimeStamp& _time_stamp1,
+                                                const TimeStamp& _time_stamp2,
+                                                const double& _time_tolerance)
 {
     double time_diff = std::fabs(_time_stamp1 - _time_stamp2);
     bool pass = time_diff <= _time_tolerance;
diff --git a/src/processor/processor_motion.cpp b/src/processor/processor_motion.cpp
index 9445a30ba..a236a9022 100644
--- a/src/processor/processor_motion.cpp
+++ b/src/processor/processor_motion.cpp
@@ -931,7 +931,10 @@ FrameBasePtr ProcessorMotion::computeProcessingStep()
 
         if (keyframe_from_callback)
         {
-            if (buffer_frame_.doubleCheckTimeTolerance(keyframe_from_callback->getTimeStamp(), keyframe_from_callback->getTimeTolerance(), incoming_ptr_->getTimeStamp(), params_motion_->time_tolerance))
+            if (buffer_frame_.doubleCheckTimeTolerance(keyframe_from_callback->getTimeStamp(),
+                                                       keyframe_from_callback->getTimeTolerance(),
+                                                       incoming_ptr_->getTimeStamp(),
+                                                       params_motion_->time_tolerance))
             {
                 WOLF_DEBUG("First time with a KF compatible.")
                 processing_step_ = FIRST_TIME_WITH_KF_ON_INCOMING;
@@ -965,7 +968,10 @@ FrameBasePtr ProcessorMotion::computeProcessingStep()
 
         if (keyframe_from_callback)
         {
-            if (buffer_frame_.doubleCheckTimeTolerance(keyframe_from_callback->getTimeStamp(), keyframe_from_callback->getTimeTolerance(), origin_ptr_->getTimeStamp(), params_motion_->time_tolerance))
+            if (buffer_frame_.doubleCheckTimeTolerance(keyframe_from_callback->getTimeStamp(),
+                                                       keyframe_from_callback->getTimeTolerance(),
+                                                       origin_ptr_->getTimeStamp(),
+                                                       params_motion_->time_tolerance))
 
                 processing_step_ = RUNNING_WITH_KF_ON_ORIGIN;
 
-- 
GitLab