Expand description
§Bindings to the Cinematic framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- CNAsset
Info CNAssetInfo - Information associated with an AVAsset for a cinematic video.
- CNAsset
Spatial Audio Info CNSpatialAudio - A helper class to inspect recordings made when Spatial Audio setting is turned on. An instance of this class contains the default audio track with Spatial Audio, metadata read from the file that can be applied during to enhance the playback experience. This class also provides tunable parameters to change the intensity & mode of the playback experience.
- CNBounds
Prediction CNObjectTracker - Apple’s documentation
- CNCinematic
Error Code CNCinematicError - Apple’s documentation
- CNComposition
Info CNAssetInfo - Information about composition tracks added to an AVComposition for a cinematic asset.
- CNCustom
Detection Track CNDetectionTrack - A discrete detection track composed of individual detections.
- CNDecision
CNDecision - Represents a decision to focus on a specific detectionID or detectionGroupID; optionally strong.
- CNDetection
CNDetection - A cinematic detection of a subject.
- CNDetection
Track CNDetectionTrack - Abstract class representing a series of detections of the same subject over time.
- CNDetection
Type CNDetection - The type of object that was detected.
- CNFixed
Detection Track CNDetectionTrack - A continuous detection track representing focus at a fixed disparity.
- CNObject
Tracker CNObjectTracker - Converts a normalized point or rectangle into a detection track that tracks an object over time.
- CNRendering
Quality CNRenderingSession - Apple’s documentation
- CNRendering
Session CNRenderingSession - Apple’s documentation
- CNRendering
Session Attributes CNRenderingSession - Movie-wide information required by the rendering session.
- CNRendering
Session Frame Attributes CNRenderingSession - Frame-specific information required to render a frame in a rendering session.
- CNScript
CNScript - Database of focus decisions with methods to change them. Knows what has been detected in each frame and which detection is being focused on. All operations are executed in a thread-safe manner, but that also means that a long-running update can stall a lookup. Best practice is to lookup what you need up front (outside your critical code) and pass the immutable results to where it’s needed. That way, you’re not blocked when you access the information, say inside the rendering portion of your code.
- CNScript
Changes CNScript - Represents a snapshot of changes made to the cinematic script since recording.
Can be used as a snapshot to quickly revert to previously saved edits via
-[CNScript reloadWithChanges:] - CNScript
Frame CNScript - Represents focus & detection information at a particular time.
- CNSpatial
Audio Content Type CNSpatialAudio - Enum used to generate settings dictionary for export using AssetReader and AssetWriter with Spatial Audio effects burned in
- CNSpatial
Audio Rendering Style CNSpatialAudio - Standard rendering styles for Audio Mix type effects
Statics§
- CNCinematic
Error ⚠Domain CNCinematicError - Apple’s documentation
Traits§
- AVMutable
CompositionCN Composition CNAssetInfo - Category “CNComposition” on
AVMutableComposition.
Type Aliases§
- CNDetection
GroupID CNDetection - Apple’s documentation
- CNDetectionID
CNDetection - Apple’s documentation