renderSize
TypeScriptget renderSize(): { width: number; height: number }Swift declarationvar renderSize: CGSize { get set }The size at which the video composition should render.
struct · iOS 26.0+ · SDK 27.1
struct ConfigurationConfigurable properties for initializing a new AVVideoComposition instance.
get renderSize(): { width: number; height: number }Swift declarationvar renderSize: CGSize { get set }The size at which the video composition should render.
set renderSize(value: { width: number; height: number })Swift declarationvar renderSize: CGSize { get set }The size at which the video composition should render.
get renderScale(): numberSwift declarationvar renderScale: Float { get set }The scale at which the video composition should render.
set renderScale(value: number)Swift declarationvar renderScale: Float { get set }The scale at which the video composition should render.
get instructions(): Array<SDKHandle>Swift declarationvar instructions: [any AVVideoCompositionInstructionProtocol] { get set }The video composition instructions.
set instructions(value: Array<SDKHandle>)Swift declarationvar instructions: [any AVVideoCompositionInstructionProtocol] { get set }The video composition instructions.
static initAnimationToolColorPrimariesColorTransferFunctionColorYCbCrMatrixCustomVideoCompositorClassFrameDurationInstructionsOutputBufferDescriptionPerFrameHDRDisplayMetadataPolicyRenderScaleRenderSizeSourceSampleDataTrackIDsSourceTrackIDForFrameTimingSpatialVideoConfigurations(animationTool?: (AVVideoCompositionCoreAnimationTool) | null, colorPrimaries?: (string) | null, colorTransferFunction?: (string) | null, colorYCbCrMatrix?: (string) | null, customVideoCompositorClass?: (string) | null, frameDuration?: _CoreMedia_CMTime, instructions?: Array<SDKHandle>, outputBufferDescription?: (Array<Array<_CoreMedia_CMTag>>) | null, perFrameHDRDisplayMetadataPolicy?: AVVideoComposition_PerFrameHDRDisplayMetadataPolicy, renderScale?: number, renderSize?: { width: number; height: number }, sourceSampleDataTrackIDs?: Array<number>, sourceTrackIDForFrameTiming?: number, spatialVideoConfigurations?: Array<AVSpatialVideoConfiguration>): AVVideoComposition_ConfigurationSwift declarationinit(animationTool: AVVideoCompositionCoreAnimationTool? = nil, colorPrimaries: String? = nil, colorTransferFunction: String? = nil, colorYCbCrMatrix: String? = nil, customVideoCompositorClass: (any AVVideoCompositing.Type)? = nil, frameDuration: CMTime = CMTime.zero, instructions: [any AVVideoCompositionInstructionProtocol] = [any AVVideoCompositionInstructionProtocol](), outputBufferDescription: [[CMTag]]? = nil, perFrameHDRDisplayMetadataPolicy: AVVideoComposition.PerFrameHDRDisplayMetadataPolicy = .propagate, renderScale: Float = 1.0, renderSize: CGSize = .zero, sourceSampleDataTrackIDs: [CMPersistentTrackID] = [CMPersistentTrackID](), sourceTrackIDForFrameTiming: Int32 = CMPersistentTrackID.zero, spatialVideoConfigurations: [AVSpatialVideoConfiguration] = [])get animationTool(): (AVVideoCompositionCoreAnimationTool) | nullSwift declarationvar animationTool: AVVideoCompositionCoreAnimationTool? { get set }A video composition tool to use with Core Animation in offline rendering.
set animationTool(value: (AVVideoCompositionCoreAnimationTool) | null)Swift declarationvar animationTool: AVVideoCompositionCoreAnimationTool? { get set }A video composition tool to use with Core Animation in offline rendering.
get frameDuration(): _CoreMedia_CMTimeSwift declarationvar frameDuration: CMTime { get set }A time interval for which the video composition should render composed video frames.
set frameDuration(value: _CoreMedia_CMTime)Swift declarationvar frameDuration: CMTime { get set }A time interval for which the video composition should render composed video frames.
get colorPrimaries(): (string) | nullSwift declarationvar colorPrimaries: String? { get set }The color primaries used for video composition.
set colorPrimaries(value: (string) | null)Swift declarationvar colorPrimaries: String? { get set }The color primaries used for video composition.
get colorYCbCrMatrix(): (string) | nullSwift declarationvar colorYCbCrMatrix: String? { get set }The YCbCr matrix used for video composition.
set colorYCbCrMatrix(value: (string) | null)Swift declarationvar colorYCbCrMatrix: String? { get set }The YCbCr matrix used for video composition.
get colorTransferFunction(): (string) | nullSwift declarationvar colorTransferFunction: String? { get set }The transfer function used for video composition.
set colorTransferFunction(value: (string) | null)Swift declarationvar colorTransferFunction: String? { get set }The transfer function used for video composition.
get outputBufferDescription(): (Array<Array<_CoreMedia_CMTag>>) | nullSwift declarationvar outputBufferDescription: [[CMTag]]? { get set }The output buffers of the video composition can be specified with the outputBufferDescription. The value is an array of an array of CMTag objects that describes the output buffers. If the video composition will output tagged buffers, the details of those buffers should be specified with CMTags. Specifically, the StereoView (eyes) and ProjectionKind must be specified. The behavior is undefined if the output buffers do not match the outputBufferDescription. The default is nil, which means monoscopic output. Note that an empty array is not valid. Note that tagged buffers are only supported for custom compositors.
set outputBufferDescription(value: (Array<Array<_CoreMedia_CMTag>>) | null)Swift declarationvar outputBufferDescription: [[CMTag]]? { get set }The output buffers of the video composition can be specified with the outputBufferDescription. The value is an array of an array of CMTag objects that describes the output buffers. If the video composition will output tagged buffers, the details of those buffers should be specified with CMTags. Specifically, the StereoView (eyes) and ProjectionKind must be specified. The behavior is undefined if the output buffers do not match the outputBufferDescription. The default is nil, which means monoscopic output. Note that an empty array is not valid. Note that tagged buffers are only supported for custom compositors.
get sourceSampleDataTrackIDs(): Array<number>Swift declarationvar sourceSampleDataTrackIDs: [CMPersistentTrackID] { get set }The identifiers of source sample data tracks in the composition that the object requires to compose frames.
set sourceSampleDataTrackIDs(value: Array<number>)Swift declarationvar sourceSampleDataTrackIDs: [CMPersistentTrackID] { get set }The identifiers of source sample data tracks in the composition that the object requires to compose frames.
get customVideoCompositorClass(): (string) | nullSwift declarationvar customVideoCompositorClass: (any AVVideoCompositing.Type)? { get set }A custom compositor class to use.
set customVideoCompositorClass(value: (string) | null)Swift declarationvar customVideoCompositorClass: (any AVVideoCompositing.Type)? { get set }A custom compositor class to use.
get spatialVideoConfigurations(): Array<AVSpatialVideoConfiguration>Swift declarationvar spatialVideoConfigurations: [AVSpatialVideoConfiguration] { get set }Indicates the spatial configurations that are available to associate with the output of the video composition. A custom compositor can output spatial video by specifying one of these spatial configurations. A spatial configuration with all nil values indicates the video is not spatial. A nil spatial configuration also indicates the video is not spatial. The value can be nil, which indicates the output will not be spatial. NOTE: If this property is not empty, then the client must attach one of the spatial configurations in this array to all of the pixel buffers, otherwise an exception will be thrown.
set spatialVideoConfigurations(value: Array<AVSpatialVideoConfiguration>)Swift declarationvar spatialVideoConfigurations: [AVSpatialVideoConfiguration] { get set }Indicates the spatial configurations that are available to associate with the output of the video composition. A custom compositor can output spatial video by specifying one of these spatial configurations. A spatial configuration with all nil values indicates the video is not spatial. A nil spatial configuration also indicates the video is not spatial. The value can be nil, which indicates the output will not be spatial. NOTE: If this property is not empty, then the client must attach one of the spatial configurations in this array to all of the pixel buffers, otherwise an exception will be thrown.
get sourceTrackIDForFrameTiming(): numberSwift declarationvar sourceTrackIDForFrameTiming: CMPersistentTrackID { get set }An identifier of the source track from which the video composition derives frame timing.
set sourceTrackIDForFrameTiming(value: number)Swift declarationvar sourceTrackIDForFrameTiming: CMPersistentTrackID { get set }An identifier of the source track from which the video composition derives frame timing.
get perFrameHDRDisplayMetadataPolicy(): AVVideoComposition_PerFrameHDRDisplayMetadataPolicySwift declarationvar perFrameHDRDisplayMetadataPolicy: AVVideoComposition.PerFrameHDRDisplayMetadataPolicy { get set }The policy for display of HDR display metadata on the rendered frame.
set perFrameHDRDisplayMetadataPolicy(value: AVVideoComposition_PerFrameHDRDisplayMetadataPolicy)Swift declarationvar perFrameHDRDisplayMetadataPolicy: AVVideoComposition.PerFrameHDRDisplayMetadataPolicy { get set }The policy for display of HDR display metadata on the rendered frame.
static initForPrototypeInstruction(asset: AVAsset, prototypeInstruction?: (AVVideoCompositionInstruction) | null): Promise<AVVideoComposition_Configuration>Swift declarationnonisolated(nonsending) init(for asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction? = nil) async throwsInitializes a video composition configuration with the specified asset properties and optional prototype video composition instruction. - Parameter asset: asset to use with the video composition - Parameter prototypeInstruction: a video composition instruction to use as a prototype.
No declarations were skipped in this snapshot.