passthru FB_face_tracking2

This commit is contained in:
galister
2024-08-19 16:35:26 +02:00
committed by xytovl
parent 7f1289bbb0
commit e6f3ae0113
18 changed files with 478 additions and 10 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ public:
if (data.front().at_timestamp_ns > at_timestamp_ns)
{
if (extrapolate)
if constexpr (extrapolate)
{
auto second = data.begin();
auto first = second++;
@@ -116,7 +116,7 @@ public:
}
ex = std::chrono::nanoseconds(at_timestamp_ns - data.back().produced_timestamp);
if (extrapolate)
if constexpr (extrapolate)
{
auto prev = data.rbegin();
auto last = prev++;