init(sourceFrame:nextFrames:previousFrames:destinationFrame:filterStrength:hasDiscontinuity:)
Creates a new VTTemporalNoiseFilterParameters object.
Declaration
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 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 Previousframecount property.
- destinationFrame:
User-allocated pixel buffer that receives the output frame. The pixel format of
destinationFramemust match with that of thesourceFrame. - 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.