Package apple.avfoundation
Class AVMutableVideoComposition
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVVideoComposition
-
- apple.avfoundation.AVMutableVideoComposition
-
- All Implemented Interfaces:
NSCopying,NSMutableCopying,NSObject
public class AVMutableVideoComposition extends AVVideoComposition
API-Since: 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandlerstatic interfaceAVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler_1static interfaceAVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler_2static interfaceAVMutableVideoComposition.Block_videoCompositionWithPropertiesOfAssetCompletionHandlerstatic interfaceAVMutableVideoComposition.Block_videoCompositionWithPropertiesOfAssetPrototypeInstructionCompletionHandler-
Nested classes/interfaces inherited from class apple.avfoundation.AVVideoComposition
AVVideoComposition.Block_determineValidityForAssetTimeRangeValidationDelegateCompletionHandler
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVMutableVideoComposition(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVMutableVideoCompositionalloc()static AVMutableVideoCompositionallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@Nullable AVVideoCompositionCoreAnimationToolanimationTool()indicates a special video composition tool for use of Core Animation; may be nilstatic booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable java.lang.StringcolorPrimaries()[@property] colorPrimaries Rendering will use these primaries and frames will be tagged as such.@Nullable java.lang.StringcolorTransferFunction()[@property] colorTransferFunction Rendering will use this transfer function and frames will be tagged as such.@Nullable java.lang.StringcolorYCbCrMatrix()[@property] colorYCbCrMatrix Rendering will use this matrix and frames will be tagged as such.@Nullable AVVideoCompositingcustomVideoCompositorClass()indicates the custom compositor class to use.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()CMTimeframeDuration()indicates the interval which the video composition, when enabled, should render composed video framesstatic longhash_static()AVMutableVideoCompositioninit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)@NotNull NSArray<?>instructions()Indicates instructions for video composition via an NSArray of instances of classes implementing the AVVideoCompositionInstruction protocol.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static AVMutableVideoCompositionnew_objc()@NotNull java.lang.StringperFrameHDRDisplayMetadataPolicy()[@property] perFrameHDRDisplayMetadataPolicy Configures policy for per frame HDR display metadata on the rendered frame Allows the system to identify situations where HDR metadata can be generated and attached to the rendered video frame.floatrenderScale()indicates the scale at which the video composition should render.CGSizerenderSize()indicates the size at which the video composition, when enabled, should renderstatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAnimationTool(@Nullable AVVideoCompositionCoreAnimationTool value)indicates a special video composition tool for use of Core Animation; may be nilvoidsetColorPrimaries(@Nullable java.lang.String value)[@property] colorPrimaries Rendering will use these primaries and frames will be tagged as such.voidsetColorTransferFunction(@Nullable java.lang.String value)[@property] colorTransferFunction Rendering will use this transfer function and frames will be tagged as such.voidsetColorYCbCrMatrix(@Nullable java.lang.String value)[@property] colorYCbCrMatrix Rendering will use this matrix and frames will be tagged as such.voidsetCustomVideoCompositorClass(@Nullable AVVideoCompositing value)indicates the custom compositor class to use.voidsetFrameDuration(CMTime value)indicates the interval which the video composition, when enabled, should render composed video framesvoidsetInstructions(@NotNull NSArray<?> value)Indicates instructions for video composition via an NSArray of instances of classes implementing the AVVideoCompositionInstruction protocol.voidsetPerFrameHDRDisplayMetadataPolicy(@NotNull java.lang.String value)[@property] perFrameHDRDisplayMetadataPolicy Configures policy for per frame HDR display metadata on the rendered frame Allows the system to identify situations where HDR metadata can be generated and attached to the rendered video frame.voidsetRenderScale(float value)indicates the scale at which the video composition should render.voidsetRenderSize(CGSize value)indicates the size at which the video composition, when enabled, should rendervoidsetSourceSampleDataTrackIDs(@NotNull NSArray<? extends NSNumber> value)List of all track IDs for tracks from which sample data should be presented to the compositor at any point in the overall composition.voidsetSourceTrackIDForFrameTiming(int value)If sourceTrackIDForFrameTiming is not kCMPersistentTrackID_Invalid, frame timing for the video composition is derived from the source asset's track with the corresponding ID.static voidsetVersion_static(long aVersion)@NotNull NSArray<? extends NSNumber>sourceSampleDataTrackIDs()List of all track IDs for tracks from which sample data should be presented to the compositor at any point in the overall composition.intsourceTrackIDForFrameTiming()If sourceTrackIDForFrameTiming is not kCMPersistentTrackID_Invalid, frame timing for the video composition is derived from the source asset's track with the corresponding ID.static org.moe.natj.objc.Classsuperclass_static()static booleanuseStoredAccessor()Deprecated.static longversion_static()static @NotNull AVMutableVideoCompositionvideoComposition()videoComposition Returns a new instance of AVMutableVideoComposition.static @NotNull AVMutableVideoCompositionvideoCompositionWithAssetApplyingCIFiltersWithHandler(@NotNull AVAsset asset, @NotNull AVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandler applier)Deprecated.static voidvideoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler(@NotNull AVAsset asset, @NotNull AVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler_1 applier, @NotNull AVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler_2 completionHandler)videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler: Vends a new instance of AVMutableVideoComposition with values and instructions that will apply the specified handler block to video frames represented as instances of CIImage.static @NotNull AVMutableVideoCompositionvideoCompositionWithPropertiesOfAsset(@NotNull AVAsset asset)Deprecated.static voidvideoCompositionWithPropertiesOfAssetCompletionHandler(@NotNull AVAsset asset, @NotNull AVMutableVideoComposition.Block_videoCompositionWithPropertiesOfAssetCompletionHandler completionHandler)videoCompositionWithPropertiesOfAsset:completionHandler: Vends a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks.static @NotNull AVMutableVideoCompositionvideoCompositionWithPropertiesOfAssetPrototypeInstruction(@NotNull AVAsset asset, @NotNull AVVideoCompositionInstruction prototypeInstruction)Deprecated.static voidvideoCompositionWithPropertiesOfAssetPrototypeInstructionCompletionHandler(@NotNull AVAsset asset, @NotNull AVVideoCompositionInstruction prototypeInstruction, @NotNull AVMutableVideoComposition.Block_videoCompositionWithPropertiesOfAssetPrototypeInstructionCompletionHandler completionHandler)videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler: Vends a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks, and also overrides default properties with those from a prototypeInstruction.-
Methods inherited from class apple.avfoundation.AVVideoComposition
copyWithZone, determineValidityForAssetTimeRangeValidationDelegateCompletionHandler, isValidForAssetTimeRangeValidationDelegate, mutableCopyWithZone, videoCompositionWithAssetApplyingCIFiltersWithHandler, videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler, videoCompositionWithPropertiesOfAssetCompletionHandler
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVMutableVideoComposition alloc()
-
allocWithZone
public static AVMutableVideoComposition allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull 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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static AVMutableVideoComposition 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()
-
version_static
public static long version_static()
-
videoComposition
@NotNull public static @NotNull AVMutableVideoComposition videoComposition()
videoComposition Returns a new instance of AVMutableVideoComposition. The returned AVMutableVideoComposition will have a frameDuration of kCMTimeZero, a renderSize of {0.0, 0.0}, a nil array of instructions, and a nil animationTool.
-
videoCompositionWithAssetApplyingCIFiltersWithHandler
@NotNull @Deprecated public static @NotNull AVMutableVideoComposition videoCompositionWithAssetApplyingCIFiltersWithHandler(@NotNull @NotNull AVAsset asset, @NotNull @NotNull AVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandler applier)
Deprecated.videoCompositionWithAsset:applyingCIFiltersWithHandler: Returns a new instance of AVMutableVideoComposition with values and instructions that will apply the specified handler block to video frames represented as instances of CIImage. The returned AVMutableVideoComposition will cause the specified handler block to be called to filter each frame of the asset's first enabled video track. The handler block should use the properties of the provided AVAsynchronousCIImageFilteringRequest and respond using finishWithImage:context: with a "filtered" new CIImage (or the provided source image for no affect). In the event of an error, respond to the request using finishWithError:. The error can be observed via AVPlayerItemFailedToPlayToEndTimeNotification, see AVPlayerItemFailedToPlayToEndTimeErrorKey in notification payload. The client can set sourceTrackIDForFrameTiming to kCMPersistentTrackID_Invalid and frameDuration to an appropriate value in order to specify the maximum output frame rate independent of the source track timing. The video composition will also have the following values for its properties: - The original timing of the asset's first enabled video track will be used. - A renderSize that encompasses the asset's first enabled video track respecting the track's preferredTransform. - A renderScale of 1.0. The default CIContext has the following properties: - iOS: Device RGB color space - macOS: sRGB color space Example usage: playerItem.videoComposition = [AVMutableVideoComposition videoCompositionWithAsset:srcAsset applyingCIFiltersWithHandler: ^(AVAsynchronousCIImageFilteringRequest *request) { NSError *err = nil; CIImage *filtered = myRenderer(request, &err); if (filtered) [request finishWithImage:filtered context:nil]; else [request finishWithError:err]; }]; API-Since: 9.0 Deprecated-Since: 100000.0- Parameters:
asset- An instance of AVAsset. For best performance, ensure that the duration and tracks properties of the asset are already loaded before invoking this method.- Returns:
- An instance of AVMutableVideoComposition.
-
videoCompositionWithPropertiesOfAsset
@NotNull @Deprecated public static @NotNull AVMutableVideoComposition videoCompositionWithPropertiesOfAsset(@NotNull @NotNull AVAsset asset)
Deprecated.videoCompositionWithPropertiesOfAsset: Returns a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks. The returned AVMutableVideoComposition will have instructions that respect the spatial properties and timeRanges of the specified asset's video tracks. The client can set sourceTrackIDForFrameTiming to kCMPersistentTrackID_Invalid and frameDuration to an appropriate value in order to specify the maximum output frame rate independent of the source track timing. It will also have the following values for its properties: - If the asset has exactly one video track, the original timing of the source video track will be used. If the asset has more than one video track, and the nominal frame rate of any of video tracks is known, the reciprocal of the greatest known nominalFrameRate will be used as the value of frameDuration. Otherwise, a default framerate of 30fps is used. - If the specified asset is an instance of AVComposition, the renderSize will be set to the naturalSize of the AVComposition; otherwise the renderSize will be set to a value that encompasses all of the asset's video tracks. - A renderScale of 1.0. - A nil animationTool. If the specified asset has no video tracks, this method will return an AVMutableVideoComposition instance with an empty collection of instructions. API-Since: 6.0 Deprecated-Since: 100000.0- Parameters:
asset- An instance of AVAsset. For best performance, ensure that the duration and tracks properties of the asset are already loaded before invoking this method.- Returns:
- An instance of AVMutableVideoComposition.
-
animationTool
@Nullable public @Nullable AVVideoCompositionCoreAnimationTool animationTool()
indicates a special video composition tool for use of Core Animation; may be nil- Overrides:
animationToolin classAVVideoComposition
-
colorPrimaries
@Nullable public @Nullable java.lang.String colorPrimaries()
[@property] colorPrimaries Rendering will use these primaries and frames will be tagged as such. If the value of this property is nil then the source's primaries will be propagated and used. Default is nil. Valid values are those suitable for AVVideoColorPrimariesKey. Generally set as a triple along with colorYCbCrMatrix and colorTransferFunction. API-Since: 10.0- Overrides:
colorPrimariesin classAVVideoComposition
-
colorTransferFunction
@Nullable public @Nullable java.lang.String colorTransferFunction()
[@property] colorTransferFunction Rendering will use this transfer function and frames will be tagged as such. If the value of this property is nil then the source's transfer function will be propagated and used. Default is nil. Valid values are those suitable for AVVideoTransferFunctionKey. Generally set as a triple along with colorYCbCrMatrix and colorYCbCrMatrix. API-Since: 10.0- Overrides:
colorTransferFunctionin classAVVideoComposition
-
colorYCbCrMatrix
@Nullable public @Nullable java.lang.String colorYCbCrMatrix()
[@property] colorYCbCrMatrix Rendering will use this matrix and frames will be tagged as such. If the value of this property is nil then the source's matrix will be propagated and used. Default is nil. Valid values are those suitable for AVVideoYCbCrMatrixKey. Generally set as a triple along with colorPrimaries and colorTransferFunction. API-Since: 10.0- Overrides:
colorYCbCrMatrixin classAVVideoComposition
-
customVideoCompositorClass
@Nullable public @Nullable AVVideoCompositing customVideoCompositorClass()
indicates the custom compositor class to use. If nil, the default, internal video compositor is used API-Since: 7.0- Overrides:
customVideoCompositorClassin classAVVideoComposition
-
frameDuration
public CMTime frameDuration()
indicates the interval which the video composition, when enabled, should render composed video frames- Overrides:
frameDurationin classAVVideoComposition
-
init
public AVMutableVideoComposition init()
- Overrides:
initin classAVVideoComposition
-
instructions
@NotNull public @NotNull NSArray<?> instructions()
Indicates instructions for video composition via an NSArray of instances of classes implementing the AVVideoCompositionInstruction protocol. For the first instruction in the array, timeRange.start must be less than or equal to the earliest time for which playback or other processing will be attempted (note that this will typically be kCMTimeZero). For subsequent instructions, timeRange.start must be equal to the prior instruction's end time. The end time of the last instruction must be greater than or equal to the latest time for which playback or other processing will be attempted (note that this will often be the duration of the asset with which the instance of AVVideoComposition is associated).- Overrides:
instructionsin classAVVideoComposition
-
renderScale
public float renderScale()
indicates the scale at which the video composition should render. May only be other than 1.0 for a video composition set on an AVPlayerItem API-Since: 4.0- Overrides:
renderScalein classAVVideoComposition
-
renderSize
public CGSize renderSize()
indicates the size at which the video composition, when enabled, should render- Overrides:
renderSizein classAVVideoComposition
-
setAnimationTool
public void setAnimationTool(@Nullable @Nullable AVVideoCompositionCoreAnimationTool value)indicates a special video composition tool for use of Core Animation; may be nil
-
setColorPrimaries
public void setColorPrimaries(@Nullable @Nullable java.lang.String value)[@property] colorPrimaries Rendering will use these primaries and frames will be tagged as such. If the value of this property is nil then the source's primaries will be propagated and used. Default is nil. Valid values are those suitable for AVVideoColorPrimariesKey. Generally set as a triple along with colorYCbCrMatrix and colorTransferFunction. API-Since: 10.0
-
setColorTransferFunction
public void setColorTransferFunction(@Nullable @Nullable java.lang.String value)[@property] colorTransferFunction Rendering will use this transfer function and frames will be tagged as such. If the value of this property is nil then the source's transfer function will be propagated and used. Default is nil. Valid values are those suitable for AVVideoTransferFunctionKey. Generally set as a triple along with colorYCbCrMatrix and colorYCbCrMatrix. API-Since: 10.0
-
setColorYCbCrMatrix
public void setColorYCbCrMatrix(@Nullable @Nullable java.lang.String value)[@property] colorYCbCrMatrix Rendering will use this matrix and frames will be tagged as such. If the value of this property is nil then the source's matrix will be propagated and used. Default is nil. Valid values are those suitable for AVVideoYCbCrMatrixKey. Generally set as a triple along with colorPrimaries and colorTransferFunction. API-Since: 10.0
-
setCustomVideoCompositorClass
public void setCustomVideoCompositorClass(@Nullable @Nullable AVVideoCompositing value)indicates the custom compositor class to use. If nil, the default, internal video compositor is used API-Since: 7.0
-
setFrameDuration
public void setFrameDuration(CMTime value)
indicates the interval which the video composition, when enabled, should render composed video frames
-
setInstructions
public void setInstructions(@NotNull @NotNull NSArray<?> value)Indicates instructions for video composition via an NSArray of instances of classes implementing the AVVideoCompositionInstruction protocol. For the first instruction in the array, timeRange.start must be less than or equal to the earliest time for which playback or other processing will be attempted (note that this will typically be kCMTimeZero). For subsequent instructions, timeRange.start must be equal to the prior instruction's end time. The end time of the last instruction must be greater than or equal to the latest time for which playback or other processing will be attempted (note that this will often be the duration of the asset with which the instance of AVVideoComposition is associated).
-
setRenderScale
public void setRenderScale(float value)
indicates the scale at which the video composition should render. May only be other than 1.0 for a video composition set on an AVPlayerItem API-Since: 4.0
-
setRenderSize
public void setRenderSize(CGSize value)
indicates the size at which the video composition, when enabled, should render
-
setSourceTrackIDForFrameTiming
public void setSourceTrackIDForFrameTiming(int value)
If sourceTrackIDForFrameTiming is not kCMPersistentTrackID_Invalid, frame timing for the video composition is derived from the source asset's track with the corresponding ID. This may be used to preserve a source asset's variable frame timing. If an empty edit is encountered in the source asset’s track, the compositor composes frames as needed up to the frequency specified in frameDuration property. API-Since: 11.0
-
sourceTrackIDForFrameTiming
public int sourceTrackIDForFrameTiming()
If sourceTrackIDForFrameTiming is not kCMPersistentTrackID_Invalid, frame timing for the video composition is derived from the source asset's track with the corresponding ID. This may be used to preserve a source asset's variable frame timing. If an empty edit is encountered in the source asset’s track, the compositor composes frames as needed up to the frequency specified in frameDuration property. API-Since: 11.0- Overrides:
sourceTrackIDForFrameTimingin classAVVideoComposition
-
videoCompositionWithPropertiesOfAssetPrototypeInstruction
@NotNull @Deprecated public static @NotNull AVMutableVideoComposition videoCompositionWithPropertiesOfAssetPrototypeInstruction(@NotNull @NotNull AVAsset asset, @NotNull @NotNull AVVideoCompositionInstruction prototypeInstruction)
Deprecated.videoCompositionWithPropertiesOfAsset:prototypeInstruction: Returns a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks, and also overrides default properties with those from a prototypeInstruction. Also see videoCompositionWithPropertiesOfAsset:. The returned AVVideoComposition will have instructions that respect the spatial properties and timeRanges of the specified asset's video tracks. Anything not pertaining to spatial layout and timing, such as background color for their composition or post-processing behaviors, is eligible to be specified via a prototype instruction. Example: To add a background color, myPrototypeInstruction = [[AVMutableVideoCompositionInstruction alloc] init]; myPrototypeInstruction.backgroundColor = myCGColorRef; // Do not use constant CGColorRef colors here. myVideoComposition = [AVVideoComposition videoCompositionWithPropertiesOfAsset:myAsset prototypeInstruction:myPrototypeInstruction]; API-Since: 13.0 Deprecated-Since: 100000.0- Parameters:
asset- An instance of AVAsset. For best performance, ensure that the duration and tracks properties of the asset are already loaded before invoking this method.prototypeInstruction- Custom instructions that the client can choose to override.- Returns:
- An instance of AVMutableVideoComposition.
-
setSourceSampleDataTrackIDs
public void setSourceSampleDataTrackIDs(@NotNull @NotNull NSArray<? extends NSNumber> value)List of all track IDs for tracks from which sample data should be presented to the compositor at any point in the overall composition. Currently only tracks of type kCMMediaType_Metadata are allowed to be specified. API-Since: 15.0
-
sourceSampleDataTrackIDs
@NotNull public @NotNull NSArray<? extends NSNumber> sourceSampleDataTrackIDs()
List of all track IDs for tracks from which sample data should be presented to the compositor at any point in the overall composition. Currently only tracks of type kCMMediaType_Metadata are allowed to be specified. API-Since: 15.0- Overrides:
sourceSampleDataTrackIDsin classAVVideoComposition
-
videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler
public static void videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler(@NotNull @NotNull AVAsset asset, @NotNull @NotNull AVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler_1 applier, @NotNull @NotNull AVMutableVideoComposition.Block_videoCompositionWithAssetApplyingCIFiltersWithHandlerCompletionHandler_2 completionHandler)videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler: Vends a new instance of AVMutableVideoComposition with values and instructions that will apply the specified handler block to video frames represented as instances of CIImage. The new AVMutableVideoComposition will cause the specified handler block to be called to filter each frame of the asset's first enabled video track. The handler block should use the properties of the provided AVAsynchronousCIImageFilteringRequest and respond using finishWithImage:context: with a "filtered" new CIImage (or the provided source image for no affect). In the event of an error, respond to the request using finishWithError:. The error can be observed via AVPlayerItemFailedToPlayToEndTimeNotification, see AVPlayerItemFailedToPlayToEndTimeErrorKey in notification payload. The client can set sourceTrackIDForFrameTiming to kCMPersistentTrackID_Invalid and frameDuration to an appropriate value in order to specify the maximum output frame rate independent of the source track timing. The video composition will also have the following values for its properties: - The original timing of the asset's first enabled video track will be used. - A renderSize that encompasses the asset's first enabled video track respecting the track's preferredTransform. - A renderScale of 1.0. The default CIContext has the following properties: - iOS: Device RGB color space - macOS: sRGB color space Example usage: [AVMutableVideoComposition videoCompositionWithAsset:srcAsset applyingCIFiltersWithHandler: ^(AVAsynchronousCIImageFilteringRequest *request) { NSError *err = nil; CIImage *filtered = myRenderer(request, &err); if (filtered) [request finishWithImage:filtered context:nil]; else [request finishWithError:err]; } completionHandler: ^(AVMutableVideoComposition * _Nullable videoComposition, NSError * _Nullable error) { if (videoComposition != nil) { playerItem.videoComposition = videoComposition else { // handle error }]; API-Since: 16.0- Parameters:
asset- An instance of AVAsset.completionHandler- A block that is invoked when the new video composition has finished being created. If the `videoComposition` parameter is nil, the `error` parameter describes the failure that occurred.
-
videoCompositionWithPropertiesOfAssetCompletionHandler
public static void videoCompositionWithPropertiesOfAssetCompletionHandler(@NotNull @NotNull AVAsset asset, @NotNull @NotNull AVMutableVideoComposition.Block_videoCompositionWithPropertiesOfAssetCompletionHandler completionHandler)videoCompositionWithPropertiesOfAsset:completionHandler: Vends a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks. The new AVMutableVideoComposition will have instructions that respect the spatial properties and timeRanges of the specified asset's video tracks. The client can set sourceTrackIDForFrameTiming to kCMPersistentTrackID_Invalid and frameDuration to an appropriate value in order to specify the maximum output frame rate independent of the source track timing. It will also have the following values for its properties: - If the asset has exactly one video track, the original timing of the source video track will be used. If the asset has more than one video track, and the nominal frame rate of any of video tracks is known, the reciprocal of the greatest known nominalFrameRate will be used as the value of frameDuration. Otherwise, a default framerate of 30fps is used. - If the specified asset is an instance of AVComposition, the renderSize will be set to the naturalSize of the AVComposition; otherwise the renderSize will be set to a value that encompasses all of the asset's video tracks. - A renderScale of 1.0. - A nil animationTool. If the specified asset has no video tracks, this method will return an AVMutableVideoComposition instance with an empty collection of instructions. API-Since: 16.0- Parameters:
asset- An instance of AVAsset.completionHandler- A block that is invoked when the new video composition has finished being created. If the `videoComposition` parameter is nil, the `error` parameter describes the failure that occurred.
-
videoCompositionWithPropertiesOfAssetPrototypeInstructionCompletionHandler
public static void videoCompositionWithPropertiesOfAssetPrototypeInstructionCompletionHandler(@NotNull @NotNull AVAsset asset, @NotNull @NotNull AVVideoCompositionInstruction prototypeInstruction, @NotNull @NotNull AVMutableVideoComposition.Block_videoCompositionWithPropertiesOfAssetPrototypeInstructionCompletionHandler completionHandler)videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler: Vends a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks, and also overrides default properties with those from a prototypeInstruction. Also see videoCompositionWithPropertiesOfAsset:completionHandler:. The new AVMutableVideoComposition will have instructions that respect the spatial properties and timeRanges of the specified asset's video tracks. Anything not pertaining to spatial layout and timing, such as background color for their composition or post-processing behaviors, is eligible to be specified via a prototype instruction. Example: To add a background color, myPrototypeInstruction = [[AVMutableVideoCompositionInstruction alloc] init]; myPrototypeInstruction.backgroundColor = myCGColorRef; // Do not use constant CGColorRef colors here. myVideoComposition = [AVVideoComposition videoCompositionWithPropertiesOfAsset:myAsset prototypeInstruction:myPrototypeInstruction completionHandler:^(AVMutableVideoComposition * _Nullable myVideoComposition, NSError * _Nullable error) { if (myVideoComposition != nil) { // use myVideoComposition } else { // handle error } }]; API-Since: 16.0- Parameters:
asset- An instance of AVAsset.prototypeInstruction- Custom instructions that the client can choose to override.completionHandler- A block that is invoked when the new video composition has finished being created. If the `videoComposition` parameter is nil, the `error` parameter describes the failure that occurred.
-
perFrameHDRDisplayMetadataPolicy
@NotNull public @NotNull java.lang.String perFrameHDRDisplayMetadataPolicy()
[@property] perFrameHDRDisplayMetadataPolicy Configures policy for per frame HDR display metadata on the rendered frame Allows the system to identify situations where HDR metadata can be generated and attached to the rendered video frame. Default is AVVideoCompositionPerFrameHDRDisplayMetadataPolicyPropagate. Any HDR metadata attached to the composed frame will be propagated to the rendered video frames. API-Since: 17.0- Overrides:
perFrameHDRDisplayMetadataPolicyin classAVVideoComposition
-
setPerFrameHDRDisplayMetadataPolicy
public void setPerFrameHDRDisplayMetadataPolicy(@NotNull @NotNull java.lang.String value)[@property] perFrameHDRDisplayMetadataPolicy Configures policy for per frame HDR display metadata on the rendered frame Allows the system to identify situations where HDR metadata can be generated and attached to the rendered video frame. Default is AVVideoCompositionPerFrameHDRDisplayMetadataPolicyPropagate. Any HDR metadata attached to the composed frame will be propagated to the rendered video frames. API-Since: 17.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-