Type Method

videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:

Composes the composited video frame with a Core Animation layer.

Declaration

+ (instancetype)videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:(CALayer *)videoLayer inLayer:(CALayer *)animationLayer;

Parameters

videoLayer

A video layer.

animationLayer

An animation layer.

Return Value

A new animation tool for the composition.

Discussion

Place composited video frames in videoLayer and render animationLayer to produce the final frame.

The videoLayer should be in the animationLayer sublayer tree. The animationLayer should not come from, or be added to, another layer tree.

See Also

Creating a Composition Tool

+ videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:

Adds a Core Animation layer to the video composition.

+ videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayers:inLayer:

Composes the composited video frames with the Core Animation layer.