Make AR playback frame loading async

This commit is contained in:
2023-09-10 13:59:11 +02:00
parent 2b90b5d84e
commit 4572cfbf53
5 changed files with 40 additions and 33 deletions

View File

@@ -34,9 +34,7 @@ namespace openVulkanoCpp::AR::ArKit
if (ss.gcount() > 1) ss << ", ";
ss << format.imageResolution.width << 'x' << format.imageResolution.height;
ss << '@' << format.framesPerSecond;
if (@available
(iOS
16.0, *))
if (@available(iOS 16.0, *))
{
if (format.videoHDRSupported) ss << "_HDR";
if (format.isRecommendedForHighResolutionFrameCapturing) ss << "_HdCaptureRecommended";
@@ -49,9 +47,7 @@ namespace openVulkanoCpp::AR::ArKit
void LogFormat(std::string_view formatUsage, ARVideoFormat* format)
{
bool hdr = false, hdCapture = false;
if (@available
(iOS
16.0, *))
if (@available(iOS 16.0, *))
{
hdr = format.videoHDRSupported;
hdCapture = format.isRecommendedForHighResolutionFrameCapturing;