Class AVMutableVideoCompositionLayerInstruction

    • Constructor Detail

      • AVMutableVideoCompositionLayerInstruction

        protected AVMutableVideoCompositionLayerInstruction​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • videoCompositionLayerInstruction

        public static AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstruction()
        videoCompositionLayerInstruction Returns a new instance of AVMutableVideoCompositionLayerInstruction with no transform or opacity ramps and a trackID initialized to kCMPersistentTrackID_Invalid.
      • videoCompositionLayerInstructionWithAssetTrack

        public static AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack​(AVAssetTrack track)
        videoCompositionLayerInstructionWithAssetTrack: Returns a new instance of AVMutableVideoCompositionLayerInstruction with no transform or opacity ramps and a trackID set to the specified track's trackID.
        Parameters:
        track - A reference to an AVAssetTrack.
      • setCropRectangleAtTime

        public void setCropRectangleAtTime​(CGRect cropRectangle,
                                           CMTime time)
        setCropRectangle:atTime: Sets a value of the crop rectangle at a time within the timeRange of the 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, i.e. 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 the specified 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 after the last time for which a crop rectangle is set, the crop rectangle is held constant at that last value.
        Parameters:
        cropRectangle - The crop rectangle to be applied at the specified time. See the discussion below of how crop rectangles are applied to video frames.
        time - A time value within the timeRange of the composition instruction.
      • setCropRectangleRampFromStartCropRectangleToEndCropRectangleTimeRange

        public void setCropRectangleRampFromStartCropRectangleToEndCropRectangleTimeRange​(CGRect startCropRectangle,
                                                                                          CGRect endCropRectangle,
                                                                                          CMTimeRange timeRange)
        setCropRectangleRampFromStartCropRectangle:toEndCropRectangle:timeRange: Sets an crop rectangle ramp to apply during the specified timerange. 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, i.e. 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 after the last time for which a crop rectangle is set, the crop rectangle is held constant at that last value.
        Parameters:
        startCropRectangle - The crop rectangle to be applied at the starting time of the timeRange. See the discussion below of how crop rectangles are applied to video frames.
        endCropRectangle - The crop rectangle to be applied at the end time of the timeRange.
        timeRange - The timeRange over which the value of the opacity will be interpolated between startCropRectangle and endCropRectangle.
      • setOpacityAtTime

        public void setOpacityAtTime​(float opacity,
                                     CMTime time)
        setOpacity:atTime: Sets a value of the opacity at a time within the timeRange of the 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.
        Parameters:
        opacity - The opacity to be applied at the specified time. The value must be between 0.0 and 1.0.
        time - A time value within the timeRange of the composition instruction.
      • setOpacityRampFromStartOpacityToEndOpacityTimeRange

        public void setOpacityRampFromStartOpacityToEndOpacityTimeRange​(float startOpacity,
                                                                        float endOpacity,
                                                                        CMTimeRange timeRange)
        setOpacityRampFromStartOpacity:toEndOpacity:timeRange: Sets an opacity ramp to apply during the specified timerange. 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.
        Parameters:
        startOpacity - The opacity to be applied at the starting time of the timeRange. The value must be between 0.0 and 1.0.
        endOpacity - The opacity to be applied at the end time of the timeRange. The value must be between 0.0 and 1.0.
        timeRange - The timeRange over which the value of the opacity will be interpolated between startOpacity and endOpacity.
      • setTrackID

        public void setTrackID​(int value)
        Indicates the trackID of the source track to which the compositor will apply the instruction.
      • setTransformAtTime

        public void setTransformAtTime​(CGAffineTransform transform,
                                       CMTime time)
        setTransform:atTime: Sets a value of the transform at a time within the timeRange of the instruction. For purposes of spatial positioning of video frames, the origin is in the top-left corner, so (a) positive translation values in an affine transform move a video frame right and down; and (b) with an identity transform a video frame is positioned with its top-left corner in the top-left corner of the composited frame. Video frames shall be interpreted at their display sizes (as described by CVImageBufferGetDisplaySize, ie, taking pixel aspect ratio attachments into account) before any affine transform is applied. 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;
        Parameters:
        transform - The transform to be applied at the specified time. See the discussion below of how transforms are applied to video frames.
        time - A time value within the timeRange of the composition instruction.
      • setTransformRampFromStartTransformToEndTransformTimeRange

        public void setTransformRampFromStartTransformToEndTransformTimeRange​(CGAffineTransform startTransform,
                                                                              CGAffineTransform endTransform,
                                                                              CMTimeRange timeRange)
        setTransformRampFromStartTransform:toEndTransform:timeRange: Sets a transform ramp to apply during the specified timerange. For purposes of spatial positioning of video frames, the origin is in the top-left corner, so (a) positive translation values in an affine transform move a video frame right and down; and (b) with an identity transform a video frame is positioned with its top-left corner in the top-left corner of the composited frame. Video frames shall be interpreted at their display sizes (as described by CVImageBufferGetDisplaySize, ie, taking pixel aspect ratio attachments into account) before any affine transform is applied. 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;
        Parameters:
        startTransform - The transform to be applied at the starting time of the timeRange. See the discussion below of how transforms are applied to video frames.
        endTransform - The transform to be applied at the end time of the timeRange.
        timeRange - The timeRange over which the value of the transform will be interpolated between startTransform and endTransform.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class AVVideoCompositionLayerInstruction