18 uint64_t prevTimestamp;
19 std::chrono::steady_clock::time_point startTime;
20 uint64_t firstFrameTimestamp;
22 size_t framesProcessed;
23 size_t loopsCompleted;
24 std::string lastErrorMsg;
28 static constexpr size_t BUFFER_SIZE = 4 * 1024 * 1024;
38 VoyantPlayback(
double rate = 1.0,
bool loop =
false,
bool filter_points =
false);
95 void applyTiming(uint64_t currentTimestamp);
102 bool parseCurrentFrame();
105 void setError(
const std::string &message);
Wrapper for VoyantFrame messages.
Definition voyant_frame_wrapper.hpp:19
C++ wrapper for the Voyant playback system with timing capabilities.
Definition voyant_playback.hpp:13
VoyantPlayback(double rate=1.0, bool loop=false, bool filter_points=false)
std::string getLastError() const
VoyantPlayback(const VoyantPlayback &)=delete
Non-copyable.
const VoyantFrameWrapper & currentFrame() const
size_t getLoopsCompleted() const
VoyantPlayback & operator=(const VoyantPlayback &)=delete
~VoyantPlayback()
Destructor.
VoyantFrameWrapper & currentFrame()
size_t getFramesProcessed() const
size_t currentFrameIndex()
bool openFile(const std::string &filePath)
uint64_t currentFrameTimestamp()