Contents

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 throws

Parameters

  • 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