init(applyingFiltersTo:applier:)
Creates a video composition configured to apply Core Image filters to each video frame of the specified asset.
Declaration
nonisolated(nonsending) convenience init(applyingFiltersTo asset: AVAsset, applier: @escaping @Sendable (AVCIImageFilteringParameters) async throws -> AVCIImageFilteringResult) async throwsParameters
- asset:
The asset whose configuration matches the intended use of the video composition.
- applier:
A closure that AVFoundation calls when processing each video frame.
Return Value
A new AVVideoComposition instance configured for Core Image filtering.
See Also
Creating a video composition
init(configuration:)AVVideoComposition.ConfigurationvideoComposition(with:applyingCIFiltersWithHandler:completionHandler:)AVAsynchronousCIImageFilteringRequestAVCIImageFilteringParametersAVCIImageFilteringResultvideoComposition(withPropertiesOf:completionHandler:)init(propertiesOf:)init(asset:applyingCIFiltersWithHandler:)