FrameMetadata
Frame metadata structure matching the JSON format
Declaration
struct FrameMetadataConstructors
init(from decoder: any Decoder) throws
Summary
Properties
| Name | Type | Summary |
|---|---|---|
| var cameraImageHeight | UInt32 | Camera image height from resolution. |
| var cameraImageWidth | UInt32 | Camera image width from resolution. |
| var cameraIntrinsics | simd_float3x3 | Converts the intrinsics array (5 elements: fx, fy, cx, cy, k1) to simd_float3x3. |
| var cameraTimestampMs | UInt64 | Camera timestamp in milliseconds. |
| var cameraTransform | simd_float4x4 | Converts the pose4x4 array (16 elements) to simd_float4x4. |
| var compassData | NsdkFrameData.CompassData | Creates CompassData from the frame's location metadata. |
| let depth | String? | - |
| let depthConfidence | String? | - |
| let depthResolution | [Int]? | - |
| let depthTimestamp | Double? | - |
| var gpsData | NsdkFrameData.GpsData | Creates GpsData from the frame's location metadata. |
| let image | String | - |
| let intrinsics | [Double] | - |
| let location | LocationMetadata | - |
| var nsdkCameraIntrinsics | NsdkFrameData.CameraIntrinsics | Creates CameraIntrinsics from the frame metadata. |
| var orientation | UIInterfaceOrientation | 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 saveDuration | Double? | - |
| let screenOrientation | String? | - |
| let sequence | Int | - |
| let timestamp | Double | - |
| let tracking | Int | - |
| let trackingReason | Int | - |
| var trackingState | ARCamera.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
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.