Add option to run ar playback without loading images

This commit is contained in:
Georg Hagen
2024-09-22 16:20:55 +02:00
committed by ohyzha
parent 953d032b59
commit 2142118771
5 changed files with 33 additions and 24 deletions

View File

@@ -57,11 +57,11 @@ namespace OpenVulkano::AR
return { nullptr, ArCreateResult::FAILED_UNKNOWN, "Unknown exception while initializing AR system." };
}
ArCreateResult ArSession::CreatePlayback(const std::string& recordingPath, bool autoAdvance)
ArCreateResult ArSession::CreatePlayback(const std::string& recordingPath, bool autoAdvance, bool loadImages, bool loadDepth)
{
try
{
const auto session = std::make_shared<Playback::ArSessionPlayback>(recordingPath, autoAdvance);
const auto session = std::make_shared<Playback::ArSessionPlayback>(recordingPath, autoAdvance, loadImages, loadDepth);
sessions.push_back(session);
return { session, ArCreateResult::SUCCESS, "" };
}