Class AVSampleBufferGenerator

  • All Implemented Interfaces:
    NSObject

    public class AVSampleBufferGenerator
    extends NSObject
    API-Since: 16.0
    • Constructor Detail

      • AVSampleBufferGenerator

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • createSampleBufferForRequestAddingToBatchError

        @Nullable
        public @Nullable CMSampleBufferRef createSampleBufferForRequestAddingToBatchError​(@NotNull
                                                                                          @NotNull AVSampleBufferRequest request,
                                                                                          @NotNull
                                                                                          @NotNull AVSampleBufferGeneratorBatch batch,
                                                                                          @Nullable
                                                                                          @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        createSampleBufferForRequest: addingToBatch: error: Creates a sample buffer and attempts to defer I/O for its data. Attempt may fail based on generator configuration or file format. The [AVSampleBufferGeneratorBatch makeDataReadyWithCompletionHandler:] should be called once to commence I/O and load sample data for all CMSampleBuffers within a batch. Any subsequent calls to createSampleBufferForRequest:addingToBatch:error: will throw an exception.
        Parameters:
        request - An instance of AVSampleBufferRequest representing the CMSampleBuffer creation request
        batch - An instance of AVSampleBufferGeneratorBatch to contain the output sample buffer. If nil, an exception is thrown. Must be created by calling makeBatch on the same instance of AVSampleBufferGenerator. An exception will be thrown otherwise.
        outError - A pointer to an NSError object that will be populated with failure information, if sample buffer creation fails.
        Returns:
        A CMSampleBuffer object referencing the output sample buffer. The generator may defer I/O to fetch sample data depending on the source of the sample data and the generator's timebase. API-Since: 16.0
      • createSampleBufferForRequestError

        @Nullable
        public @Nullable CMSampleBufferRef createSampleBufferForRequestError​(@NotNull
                                                                             @NotNull AVSampleBufferRequest request,
                                                                             @Nullable
                                                                             @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        createSampleBufferForRequest: error: Creates a sample buffer and if requested, attempts to load its data asynchronously. Attempt may fail based on generator configuration or file format. See [AVSampleBufferGenerator notifyOfDataReadyForSampleBuffer: completionHandler:] to get notified when the sample buffer data is available. If the AVSampleBufferGenerator was created with a NULL timebase, any associated AVSampleBufferRequest will default to using AVSampleBufferRequestModeImmediate. API-Since: 16.0
        Parameters:
        request - An instance of AVSampleBufferRequest representing the CMSampleBuffer creation request.
        outError - A pointer to an NSError object that will be populated with failure information, if sample buffer creation fails.
        Returns:
        A CMSampleBuffer object referencing the output sample buffer.
      • 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()
      • initWithAssetTimebase

        public AVSampleBufferGenerator initWithAssetTimebase​(@NotNull
                                                             @NotNull AVAsset asset,
                                                             @Nullable
                                                             @Nullable CMTimebaseRef timebase)
        initWithAsset: timebase: Creates an instance of AVSampleBufferGenerator to generate sample buffers from the specified asset. If the specified asset is an HTTP Live Streaming asset, the generator cannot create sample buffers.
        Parameters:
        asset - The asset from which sample buffers will be created.
        timebase - The generator timebase, which governs when sample data for sample buffers is loaded. If NULL, sample data is loaded synchronously.
        Returns:
        An instance of AVSampleBufferGenerator.
      • 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)
      • makeBatch

        @NotNull
        public @NotNull AVSampleBufferGeneratorBatch makeBatch()
        makeBatch Creates a batch to handle multiple sample buffers, allowing to asynchronously load sample data and optimize I/O when possible.
        Returns:
        An instance of an AVSampleBufferGeneratorBatch that can be used in calls to createSampleBufferForRequest:addingToBatch:error: of the same AVSampleBufferGenerator instance. API-Since: 16.0
      • notifyOfDataReadyForSampleBufferCompletionHandler

        public static void notifyOfDataReadyForSampleBufferCompletionHandler​(@NotNull
                                                                             @NotNull CMSampleBufferRef sbuf,
                                                                             @NotNull
                                                                             @NotNull AVSampleBufferGenerator.Block_notifyOfDataReadyForSampleBufferCompletionHandler completionHandler)
        notifyOfDataReadyForSampleBuffer: completionHandler: Allows the client to get notified when the sample buffer data is ready, or as soon as an error has occured.
        Parameters:
        completionHandler - The completionHandler will be called, when the sample buffer data is ready, or as soon as an error has occurred.
      • 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.