<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Cinematic",
  "identifier" : "/documentation/Cinematic/CNRenderingSession-1hzh8/FrameAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Cinematic"
    ],
    "preciseIdentifier" : "s:9Cinematic18CNRenderingSessionC15FrameAttributesV"
  },
  "title" : "CNRenderingSession.FrameAttributes"
}
-->

# CNRenderingSession.FrameAttributes

Controls the focus distance and aperture of the rendering for the frames.

```
struct FrameAttributes
```

## Topics

### Initializers

[`init?(sampleBuffer: CMSampleBuffer, sessionAttributes: CNRenderingSession.Attributes)`](/documentation/Cinematic/CNRenderingSession-1hzh8/FrameAttributes/init(sampleBuffer:sessionAttributes:))

Creates a structure representing a Cinematic rendering session based a sample buffer and session attributes.

[`init?(timedMetadataGroup: AVTimedMetadataGroup, sessionAttributes: CNRenderingSession.Attributes)`](/documentation/Cinematic/CNRenderingSession-1hzh8/FrameAttributes/init(timedMetadataGroup:sessionAttributes:))

Creates a structure representing a Cinematic rendering session based on meta group and session attributes.

### Instance Properties

[`var fNumber: Float`](/documentation/Cinematic/CNRenderingSession-1hzh8/FrameAttributes/fNumber)

The f-stop value that inversely affects the aperture used to render the Cinematic image.

[`var focusDisparity: Float`](/documentation/Cinematic/CNRenderingSession-1hzh8/FrameAttributes/focusDisparity)

Represents the focus plane at which the rendered image should be in focus.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)