Write duration and frame count to metadata file

This commit is contained in:
Georg Hagen
2024-12-06 21:15:02 +01:00
parent fb5785fe3c
commit 367b8b58eb
6 changed files with 46 additions and 14 deletions

View File

@@ -125,7 +125,7 @@ namespace OpenVulkano::AR
std::string ArSessionMetadata::FinishedRecordingInfoToYaml() const
{
if (recFrameCount < 1 || recDuration < 1 || recSkippedFrames < 1) return "";
if (recFrameCount < 1 && recDuration < 1 && recSkippedFrames < 1) return "";
return fmt::format(R"(Recording:
Duration: {}
FrameCount: {}