AVVideoCompositionLayerInstruction Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AVFoundation.framework |
| Availability | Available in iOS 4.0 and later. |
| Declared in | AVVideoComposition.h |
Overview
An AVVideoCompositionLayerInstruction object represents the transform and opacity ramps to apply to a given track.
Properties
trackID
The trackID of the source track to which the compositor will apply the instruction. (read-only)
Discussion
Availability
- Available in iOS 4.0 and later.
Declared In
AVVideoComposition.hInstance Methods
getOpacityRampForTime:startOpacity:endOpacity:timeRange:
Obtains the opacity ramp that includes a specified time.
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.
- startOpacity
A pointer to a float to receive the starting opacity value for the opacity ramp.
This value may be
NULL.- endOpacity
A pointer to a float to receive the ending opacity value for the opacity ramp.
This value may be
NULL.- timeRange
A pointer to a
CMTimeRangeto receive the time range of the opacity 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 opacity ramp that has been set.
Discussion
Availability
- Available in iOS 4.0 and later.
Declared In
AVVideoComposition.hgetTransformRampForTime:startTransform:endTransform:timeRange:
Obtains the transform ramp that includes a specified time.
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
CMTimeRangeto 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.
Discussion
Availability
- Available in iOS 4.0 and later.
Declared In
AVVideoComposition.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-05-16)