Skip to content
Snippets Groups Projects
Commit 0024df03 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

new Buffer API

parent 02cfb878
No related branches found
No related tags found
1 merge request!49Draft: Resolve "Adapt to new sensor constructors in core"
...@@ -49,7 +49,7 @@ void ProcessorCompass::processCapture(CaptureBasePtr _capture) ...@@ -49,7 +49,7 @@ void ProcessorCompass::processCapture(CaptureBasePtr _capture)
// Note that more than one processor can be emplacing frames, so an older // Note that more than one processor can be emplacing frames, so an older
// frame can arrive later than this one. // frame can arrive later than this one.
else else
buffer_capture_.emplace(_capture->getTimeStamp(), _capture); buffer_capture_.emplace(_capture);
} }
void ProcessorCompass::processKeyFrame(FrameBasePtr _frame) void ProcessorCompass::processKeyFrame(FrameBasePtr _frame)
...@@ -68,7 +68,7 @@ void ProcessorCompass::processKeyFrame(FrameBasePtr _frame) ...@@ -68,7 +68,7 @@ void ProcessorCompass::processKeyFrame(FrameBasePtr _frame)
else if (buffer_capture_.selectLastAfter(_frame->getTimeStamp(), getTimeTolerance()) == nullptr) else if (buffer_capture_.selectLastAfter(_frame->getTimeStamp(), getTimeTolerance()) == nullptr)
{ {
// store frame // store frame
buffer_frame_.emplace(_frame->getTimeStamp(), _frame); buffer_frame_.emplace(_frame);
} }
// Otherwise: There are captures more recent than the frame but none that // Otherwise: There are captures more recent than the frame but none that
// match with it -> discard frame // match with it -> discard frame
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment