Instance Method

getTransformRampForTime:startTransform:endTransform:timeRange:

Obtains the transform ramp that includes a specified time.

Declaration

- (BOOL)getTransformRampForTime:(CMTime)time startTransform:(CGAffineTransform *)startTransform endTransform:(CGAffineTransform *)endTransform timeRange:(CMTimeRange *)timeRange;

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.

startTransform

A pointer to a float to receive the starting transform value for the transform ramp.

This value may be NULL.

endTransform

A pointer to a float to receive the ending transform value for the transform ramp.

This value may be NULL.

timeRange

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

This value may be NULL.

Return Value

YES if values are returned successfully, otherwise NO. NO is returned if time is beyond the duration of the last transform ramp that has been set.

See Also

Getting Opacity, Transform, and Cropping Ramps

- getOpacityRampForTime:startOpacity:endOpacity:timeRange:

Obtains the opacity ramp that includes a specified time.

- getCropRectangleRampForTime:startCropRectangle:endCropRectangle:timeRange:

Obtains the crop rectangle ramp that includes the specified time.