Instance Method

getCropRectangleRamp(for:startCropRectangle:endCropRectangle:timeRange:)

Obtains the crop rectangle ramp that includes the specified time.

Declaration

func getCropRectangleRamp(for time: CMTime, startCropRectangle: UnsafeMutablePointer<CGRect>?, endCropRectangle: UnsafeMutablePointer<CGRect>?, timeRange: UnsafeMutablePointer<CMTimeRange>?) -> Bool

Parameters

time

If a ramp with a time range that contains the specified time has been set, information about the effective ramp for that time is supplied. Otherwise, information about the first ramp that starts after the specified time is supplied.

startCropRectangle

A pointer to a CGRect to receive the starting crop rectangle value for the crop rectangle ramp.

May be NULL.

endCropRectangle

A pointer to a CGRect to receive the ending crop rectangle value for the crop rectangle ramp.

This value may be NULL.

timeRange

A pointer to a CMTimeRange to receive the time range of the crop rectangle ramp.

This value may be NULL.

Return Value

false will be returned if the specified time is beyond the duration of the last crop rectangle ramp that has been set.