Class CNRenderingSession

  • All Implemented Interfaces:
    NSObject

    public class CNRenderingSession
    extends NSObject
    API-Since: 17.0
    • Constructor Detail

      • CNRenderingSession

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CNRenderingSession 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()
      • destinationPixelFormatTypes

        @NotNull
        public static @NotNull NSArray<? extends NSNumber> destinationPixelFormatTypes()
        The pixel format types supported for the output destination. Use with kCVPixelBufferPixelFormatTypeKey in the video compositor's requiredPixelBufferAttributesForRenderContext dictionary when implementing AVVideoCompositing.
      • encodeRenderToCommandBufferFrameAttributesSourceImageSourceDisparityDestinationImage

        public boolean encodeRenderToCommandBufferFrameAttributesSourceImageSourceDisparityDestinationImage​(@NotNull
                                                                                                            @NotNull MTLCommandBuffer commandBuffer,
                                                                                                            @NotNull
                                                                                                            @NotNull CNRenderingSessionFrameAttributes frameAttributes,
                                                                                                            @NotNull
                                                                                                            @NotNull CVBufferRef sourceImage,
                                                                                                            @NotNull
                                                                                                            @NotNull CVBufferRef sourceDisparity,
                                                                                                            @NotNull
                                                                                                            @NotNull CVBufferRef destinationImage)
        Encode a command to render a shallow depth of field (SDoF) image to a pixel buffer. - Parameters: - commandBuffer: the metal command buffer on which to encode the command - frameAttributes: controls the focus distance and aperture of the rendering - sourceImage: a pixel buffer read from the cinematicVideoTrack - sourceDisparity: a pixel buffer read from the cinematicDisparityTrack - destinationImage: the pixel buffer to which the SDoF image is rendered - Returns: whether encoding the render command was successful
      • encodeRenderToCommandBufferFrameAttributesSourceImageSourceDisparityDestinationLumaDestinationChroma

        public boolean encodeRenderToCommandBufferFrameAttributesSourceImageSourceDisparityDestinationLumaDestinationChroma​(@NotNull
                                                                                                                            @NotNull MTLCommandBuffer commandBuffer,
                                                                                                                            @NotNull
                                                                                                                            @NotNull CNRenderingSessionFrameAttributes frameAttributes,
                                                                                                                            @NotNull
                                                                                                                            @NotNull CVBufferRef sourceImage,
                                                                                                                            @NotNull
                                                                                                                            @NotNull CVBufferRef sourceDisparity,
                                                                                                                            @NotNull
                                                                                                                            @NotNull MTLTexture destinationLuma,
                                                                                                                            @NotNull
                                                                                                                            @NotNull MTLTexture destinationChroma)
        Encode a command to render a shallow depth of field (SDoF) image to two metal textures as luma and chroma. - Parameters: - commandBuffer: the metal command buffer on which to encode the command - frameAttributes: controls the focus distance and aperture of the rendering - sourceImage: a pixel buffer read from the cinematicVideoTrack - sourceDisparity: a pixel buffer read from the cinematicDisparityTrack - destinationLuma: a metal texture to which the luma of the SDoF image is rendered - destinationChroma: a metal texture to which the chroma of the SDoF image is rendered - Returns: whether encoding the render command was successful
      • encodeRenderToCommandBufferFrameAttributesSourceImageSourceDisparityDestinationRGBA

        public boolean encodeRenderToCommandBufferFrameAttributesSourceImageSourceDisparityDestinationRGBA​(@NotNull
                                                                                                           @NotNull MTLCommandBuffer commandBuffer,
                                                                                                           @NotNull
                                                                                                           @NotNull CNRenderingSessionFrameAttributes frameAttributes,
                                                                                                           @NotNull
                                                                                                           @NotNull CVBufferRef sourceImage,
                                                                                                           @NotNull
                                                                                                           @NotNull CVBufferRef sourceDisparity,
                                                                                                           @NotNull
                                                                                                           @NotNull MTLTexture destinationRGBA)
        Encode a command to render a shallow depth of field (SDoF) image to a metal texture as RGBA. - Parameters: - commandBuffer: the metal command buffer on which to encode the command - frameAttributes: controls the focus distance and aperture of the rendering - sourceImage: a pixel buffer read from the cinematicVideoTrack - sourceDisparity: a pixel buffer read from the cinematicDisparityTrack - destinationRGBA: a metal texture to which the SDoF image is rendered in RGBA format - Returns: whether encoding the render command was successful
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • quality

        public long quality()
      • 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)
      • sourcePixelFormatTypes

        @NotNull
        public static @NotNull NSArray<? extends NSNumber> sourcePixelFormatTypes()
        The pixel format types supported for the input source. Use with kCVPixelBufferPixelFormatTypeKey in the video compositor's sourcePixelBufferAttributes dictionary when implementing AVVideoCompositing.
      • superclass_static

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

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()