Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

AVMutableVideoCompositionLayerInstructionMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: The constructor.

See also:

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.Constructor(other as AVMutableVideoCompositionLayerInstructionMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 15.1 Yes No No Yes, macOS only No
Function: The copy constructor to initialize with a mutable copy of the given object.

See also:

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.setCropRectangle(cropRectangle as CGRectMBS, time as CMTimeMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 14.0 Yes No No Yes, macOS only No
Function: Sets a value of the crop rectangle at a time within the time range of the instruction.
Notes:
cropRectangle: The crop rectangle to be applied at the specified time.
time: A time value within the timeRange of the composition instruction.

The origin of the crop rectangle is the top-left corner of the buffer clean aperture rectangle. The crop rectangle is defined in square pixel space, that is, without taking the pixel aspect ratio into account. Crop rectangles extending outside of the clean aperture, are cropped to the clean aperture.

Sets a fixed crop rectangle to apply from time until the next time at which a crop rectangle is set; this is the same as setting a flat ramp for that time range.

Before the first specified time for which a crop rectangle is set, the crop rectangle is held constant to CGRectInfinite and after the last time for which a crop rectangle is set, the crop rectangle is held constant at that last value.
Available in OS X v10.9 and later.

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.setCropRectangleRampFromStartCropRectangle(startCropRectangle as CGRectMBS, endCropRectangle as CGRectMBS, timeRange as CMTimeRangeMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 14.0 Yes No No Yes, macOS only No
Function: Sets a crop rectangle ramp to apply during the specified time range.
Notes:
startCropRectangle: The crop rectangle to be applied at the starting time of the timeRange.
endCropRectangle: The crop rectangle to be applied at the end time of the timeRange.
timeRange: The time range over which the value of the opacity is interpolated between startCropRectangle and endCropRectangle.

The origin of the crop rectangle is the top-left corner of the buffer clean aperture rectangle. The crop rectangle is defined in square pixel space, that is, without taking the pixel aspect ratio into account. Crop rectangles extending outside of the clean aperture, are cropped to the clean aperture.

During a crop rectangle ramp, the rectangle is interpolated between the values set at the ramp's start time and end time. When the starting or ending rectangle is empty, interpolations take into account the origin and size of the empty rectangle.

Before the first specified time for which a crop rectangle is set, the crop rectangle is held constant to CGRectInfinite and after the last time for which a crop rectangle is set, the crop rectangle is held constant at that last value.
Available in OS X v10.9 and later.

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.setOpacity(opacity as Double, time as CMTimeMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Sets a value of the opacity at a time within the time range of the instruction.
Notes:
opacity: The opacity to be applied at time. The value must be between 0.0 and 1.0.
time: A time value within the time range of the composition instruction.

Sets a fixed opacity to apply from the specified time until the next time at which an opacity is set; this is the same as setting a flat ramp for that time range. Before the first time for which an opacity is set, the opacity is held constant at 1.0; after the last specified time, the opacity is held constant at the last value.

See also:

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.setOpacity(startOpacity as Double, endOpacity as Double, timeRange as CMTimeRangeMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Sets an opacity ramp to apply during a specified time range.
Notes:
startOpacity: The opacity to be applied at the start time of timeRange. The value must be between 0.0 and 1.0.
endOpacity: The opacity to be applied at the end time of timeRange. The value must be between 0.0 and 1.0.
timeRange: The time range over which the value of the opacity will be interpolated between startOpacity and endOpacity.

During an opacity ramp, opacity is computed using a linear interpolation. Before the first time for which an opacity is set, the opacity is held constant at 1.0; after the last specified time, the opacity is held constant at the last value.

See also:

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.setTransform(transform as CGAffineTransformMBS, time as CMTimeMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Sets a value of the transform at a time within the time range of the instruction.
Notes:
transform: The transform to be applied at time.
time: A time value within the time range of the composition instruction.

Sets a fixed transform to apply from the specified time until the next time at which a transform is set. This is the same as setting a flat ramp for that time range. Before the first specified time for which a transform is set, the affine transform is held constant at the value of CGAffineTransformIdentity; after the last time for which a transform is set, the affine transform is held constant at that last value.

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.setTransformRamp(startTransform as CGAffineTransformMBS, endTransform as CGAffineTransformMBS, timeRange as CMTimeRangeMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 14.0 Yes No No Yes, macOS only No
Function: Sets a transform ramp to apply during a given time range.
Notes:
startTransform: The transform to be applied at the starting time of timeRange.
endTransform: The transform to be applied at the end time of timeRange.
timeRange: The time range over which the value of the transform is interpolated between startTransform and endTransform.

During a transform ramp, the affine transform is interpolated between the values set at the ramp's start time and end time. Before the first specified time for which a transform is set, the affine transform is held constant at the value of CGAffineTransformIdentity; after the last time for which a transform is set, the affine transform is held constant at that last value.

Available in OS X v10.7 and later.

Feedback, Comments & Corrections

AVMutableVideoCompositionLayerInstructionMBS.trackID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: The trackID of the source track to which the compositor will apply the instruction.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS AVFoundation Plugin.




Links
MBS Xojo Plugins