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

@@ -35,6 +35,6 @@ namespace OpenVulkano::AR::ArKit
return capabilities;
}
ArSessionArKit::ArSessionArKit() : ArSession({ ArType::AR_KIT, ArDepthFormat::METER_FP32, { 0, 2 } })
ArSessionArKit::ArSessionArKit() : ArSession({ ArType::AR_KIT, ArDepthFormat::METER_FP32, { 0, 2 }, { 1920, 1440 }, 60 })
{}
}

View File

@@ -84,6 +84,8 @@ namespace OpenVulkano::AR::ArKit
//TODO resolution handling
}
LogFormat("Using video format", m_arConfig.videoFormat);
metadata.imageResolution = { m_arConfig.videoFormat.imageResolution.width, m_arConfig.videoFormat.imageResolution.height };
metadata.frameRate = m_arConfig.videoFormat.framesPerSecond;
}
m_arSession = [ARSession new];