Skip to main content
API Reference SwiftyNsdk PlaybackDataset

FrameMetadata

Frame metadata structure matching the JSON format

Declaration

struct FrameMetadata

Constructors

init(from decoder: any Decoder) throws

Summary

Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or
if the data read is corrupted or otherwise invalid.
- Parameter decoder: The decoder to read data from.


Properties

NameTypeSummary
var cameraImageHeightUInt32
Camera image height from resolution.
var cameraImageWidthUInt32
Camera image width from resolution.
var cameraIntrinsicssimd_float3x3
Converts the intrinsics array (5 elements: fx, fy, cx, cy, k1) to simd_float3x3.
var cameraTimestampMsUInt64
Camera timestamp in milliseconds.
var cameraTransformsimd_float4x4
Converts the pose4x4 array (16 elements) to simd_float4x4.
var compassDataNsdkFrameData.CompassData
Creates CompassData from the frame's location metadata.
let depthString?
-
let depthConfidenceString?
-
let depthResolution [Int]?
-
let depthTimestampDouble?
-
var gpsDataNsdkFrameData.GpsData
Creates GpsData from the frame's location metadata.
let imageString
-
let intrinsics [Double]
-
let locationLocationMetadata
-
var nsdkCameraIntrinsicsNsdkFrameData.CameraIntrinsics
Creates CameraIntrinsics from the frame metadata.
var orientationUIInterfaceOrientation
Converts the screen orientation string to UIInterfaceOrientation.
Returns nil if no screen orientation is available in the metadata.
let pose [Double]
-
let pose4x4 [Double]
-
let projection [Double]?
-
let resolution [Int]
-
let saveDurationDouble?
-
let screenOrientationString?
-
let sequenceInt
-
let timestampDouble
-
let trackingInt
-
let trackingReasonInt
-
var trackingStateARCamera.TrackingState
Converts the tracking state integer to ARCamera.TrackingState.
Mapping: 0 = notAvailable, 1 = normal, 2+ = limited

Relationships

conforms to: Swift.Decodable
conforms to: Swift.Encodable