Store image resolution and framerate in ar metadata
This commit is contained in:
@@ -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 })
|
||||
{}
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user