durationTimeOfInput(toFilter:)
Provides the duration of the filter’s image input clip.
Declaration
func durationTimeOfInput(toFilter duration: UnsafeMutablePointer<CMTime>!)Parameters
- duration:
The duration of the clip, in
CMTime.
Discussion
In Motion, the value represents the duration of the object to which the user applies the effect, after retiming and trimming. In other words, this value is the duration of the visible frames.
In Final Cut Pro, the value represents the duration of the object to which the user applies the effect template, regardless of the length of the Effect Source inside the template.
See Also
Accessing Timing Values
frameDuration(_:)sampleDuration(_:)startTime(forEffect:)durationTime(forEffect:)startTimeOfInput(toFilter:)start(_:ofImageParameter:)durationTime(_:ofImageParameter:)inPointTimeOfTimeline(forEffect:)outPointTimeOfTimeline(forEffect:)timelineTime(_:fromInputTime:)timelineTime(_:fromImageTime:forParameterID:)inputTime(_:fromTimelineTime:)imageTime(_:forParameterID:fromTimelineTime:)fieldOrderForInput(toFilter:)timelineFpsNumerator(for:)