Store image resolution and framerate in ar metadata

This commit is contained in:
Georg Hagen
2024-07-04 10:28:43 +02:00
parent d5e0331525
commit b4619be858
4 changed files with 29 additions and 7 deletions

View File

@@ -9,6 +9,7 @@
#include "AR/ArType.hpp"
#include "AR/ArDepthFormat.hpp"
#include "Math/Range.hpp"
#include "Math/Math.hpp"
namespace OpenVulkano::AR
{
@@ -17,14 +18,16 @@ namespace OpenVulkano::AR
ArType type;
ArDepthFormat depthFormat;
Math::Range<uint8_t> confidenceRange;
Math::Vector2ui imageResolution;
float frameRate;
bool playback = false;
ArSessionMetadata() noexcept
: ArSessionMetadata(ArType::UNKNOWN, ArDepthFormat::UNAVAILABLE, {0,0})
: ArSessionMetadata(ArType::UNKNOWN, ArDepthFormat::UNAVAILABLE, {0,0}, { 1920, 1440 }, 60)
{}
ArSessionMetadata(ArType type, ArDepthFormat format, Math::Range<uint8_t> confRange) noexcept
: type(type), depthFormat(format), confidenceRange(confRange)
ArSessionMetadata(ArType type, ArDepthFormat format, Math::Range<uint8_t> confRange, Math::Vector2ui resolution, float frameRate) noexcept
: type(type), depthFormat(format), confidenceRange(confRange), imageResolution(resolution), frameRate(frameRate)
{}
ArSessionMetadata(const std::string& dirPath);