---
title: "init(sourceFrame:nextFrames:previousFrames:destinationFrame:filterStrength:hasDiscontinuity:)"
framework: videotoolbox
role: symbol
role_heading: Initializer
path: "videotoolbox/vttemporalnoisefilterparameters/init(sourceframe:nextframes:previousframes:destinationframe:filterstrength:hasdiscontinuity:)"
---

# init(sourceFrame:nextFrames:previousFrames:destinationFrame:filterStrength:hasDiscontinuity:)

Creates a new VTTemporalNoiseFilterParameters object.

## Declaration

```swift
init?(sourceFrame: VTFrameProcessorFrame, nextFrames: [VTFrameProcessorFrame], previousFrames: [VTFrameProcessorFrame], destinationFrame: VTFrameProcessorFrame, filterStrength: Float, hasDiscontinuity: Bool)
```

## Parameters

- `sourceFrame`: Current source frame; must be non nil.
- `nextFrames`: Future reference frames in presentation time order to use for processing the source frame. The number of frames can vary from 0 to the number specified by doc://com.apple.videotoolbox/documentation/VideoToolbox/VTTemporalNoiseFilterConfiguration/nextFrameCount property.
- `previousFrames`: Past reference frames in presentation time order to use for processing the source frame. The number of frames can vary from 0 to the number specified by doc://com.apple.videotoolbox/documentation/VideoToolbox/VTTemporalNoiseFilterConfiguration/previousFrameCount property.
- `destinationFrame`: User-allocated pixel buffer that receives the output frame. The pixel format of destinationFrame must match with that of the sourceFrame.
- `filterStrength`: Strength of the noise-filtering to use. The value can range from the minimum strength of 0.0 to the maximum strength of 1.0. Change in filter strength causes the processor to flush all frames in the queue prior to processing the source frame.
- `hasDiscontinuity`: Marks sequence discontinuity, forcing the processor to reset prior to processing the source frame.
