Class CoreVideo


  • public final class CoreVideo
    extends java.lang.Object
    • Field Detail

      • __COREVIDEO_CVRETURN_H__

        public static final double __COREVIDEO_CVRETURN_H__
        See Also:
        Constant Field Values
      • __COREVIDEO_CVBASE_H__

        public static final double __COREVIDEO_CVBASE_H__
        See Also:
        Constant Field Values
      • __COREVIDEO_CVBUFFER_H__

        public static final double __COREVIDEO_CVBUFFER_H__
        See Also:
        Constant Field Values
      • __COREVIDEO_CVPIXELBUFFER_H__

        public static final double __COREVIDEO_CVPIXELBUFFER_H__
        See Also:
        Constant Field Values
      • __COREVIDEO_CVIMAGEBUFFER_H__

        public static final double __COREVIDEO_CVIMAGEBUFFER_H__
        See Also:
        Constant Field Values
      • __COREVIDEO_CVPIXELBUFFERIOSURFACE_H__

        public static final double __COREVIDEO_CVPIXELBUFFERIOSURFACE_H__
        See Also:
        Constant Field Values
      • COREVIDEO_INCLUDED_IOSURFACE_HEADER_FILE

        public static final double COREVIDEO_INCLUDED_IOSURFACE_HEADER_FILE
        See Also:
        Constant Field Values
      • __COREVIDEO__CVPIXELBUFFERPOOL_H__

        public static final double __COREVIDEO__CVPIXELBUFFERPOOL_H__
        See Also:
        Constant Field Values
      • __COREVIDEO_CVOPENGLESTEXTURE_H__

        public static final double __COREVIDEO_CVOPENGLESTEXTURE_H__
        See Also:
        Constant Field Values
      • __COREVIDEO__CVOPENGLESTEXTURECACHE_H__

        public static final double __COREVIDEO__CVOPENGLESTEXTURECACHE_H__
        See Also:
        Constant Field Values
      • COREVIDEO_USE_EAGLCONTEXT_CLASS_IN_API

        public static final double COREVIDEO_USE_EAGLCONTEXT_CLASS_IN_API
        See Also:
        Constant Field Values
      • __COREVIDEO_CVMETALTEXTURE_H__

        public static final double __COREVIDEO_CVMETALTEXTURE_H__
        See Also:
        Constant Field Values
      • __COREVIDEO__CVMETALTEXTURECACHE_H__

        public static final double __COREVIDEO__CVMETALTEXTURECACHE_H__
        See Also:
        Constant Field Values
    • Method Detail

      • CVBufferRetain

        @Nullable
        public static @Nullable CVBufferRef CVBufferRetain​(@Nullable
                                                           @Nullable CVBufferRef buffer)
        [@function] CVBufferRetain Retains a CVBuffer object Like CFRetain CVBufferRetain increments the retain count of a CVBuffer object. In contrast to the CF call it is NULL safe.
        Parameters:
        buffer - A CVBuffer object that you want to retain.
        Returns:
        A CVBuffer object that is the same as the passed in buffer. API-Since: 4.0
      • CVBufferRelease

        public static void CVBufferRelease​(@Nullable
                                           @Nullable CVBufferRef buffer)
        [@function] CVBufferRelease Release a CVBuffer object Like CFRetain CVBufferRetain decrements the retain count of a CVBuffer object. If that count consequently becomes zero the memory allocated to the object is deallocated and the object is destroyed. In contrast to the CF call it is NULL safe.
        Parameters:
        buffer - A CVBuffer object that you want to release. API-Since: 4.0
      • CVBufferSetAttachment

        public static void CVBufferSetAttachment​(@NotNull
                                                 @NotNull CVBufferRef buffer,
                                                 @NotNull
                                                 @NotNull CFStringRef key,
                                                 @NotNull
                                                 @NotNull org.moe.natj.general.ptr.ConstVoidPtr value,
                                                 int attachmentMode)
        [@function] CVBufferSetAttachment Sets or adds a attachment of a CVBuffer object You can attach any CF object to a CVBuffer object to store additional information. CVBufferGetAttachment stores an attachement identified by a key. If the key doesn't exist, the attachment will be added. If the key does exist, the existing attachment will be replaced. In bouth cases the retain count of the attachment will be incremented. The value can be any CFType but nil has no defined behavior.
        Parameters:
        buffer - Target CVBuffer object.
        key - Key in form of a CFString identifying the desired attachment.
        value - Attachment in form af a CF object.
        attachmentMode - Specifies which attachment mode is desired for this attachment. A particular attachment key may only exist in a single mode at a time. API-Since: 4.0
      • CVBufferGetAttachment

        @Nullable
        @Deprecated
        public static @Nullable org.moe.natj.general.ptr.ConstVoidPtr CVBufferGetAttachment​(@NotNull
                                                                                            @NotNull CVBufferRef buffer,
                                                                                            @NotNull
                                                                                            @NotNull CFStringRef key,
                                                                                            @Nullable
                                                                                            @Nullable org.moe.natj.general.ptr.IntPtr attachmentMode)
        Deprecated.
        [@function] CVBufferGetAttachment Returns a specific attachment of a CVBuffer object You can attach any CF object to a CVBuffer object to store additional information. CVBufferGetAttachment retrieves an attachement identified by a key.
        Parameters:
        buffer - Target CVBuffer object.
        key - Key in form of a CFString identifying the desired attachment.
        attachmentMode - . Returns the mode of the attachment, if desired. May be NULL.
        Returns:
        If found the attachment object API-Since: 4.0 Deprecated-Since: 15.0
      • CVBufferRemoveAttachment

        public static void CVBufferRemoveAttachment​(@NotNull
                                                    @NotNull CVBufferRef buffer,
                                                    @NotNull
                                                    @NotNull CFStringRef key)
        [@function] CVBufferRemoveAttachment Removes a specific attachment of a CVBuffer object CVBufferRemoveAttachment removes an attachement identified by a key. If found the attachement is removed and the retain count decremented.
        Parameters:
        buffer - Target CVBuffer object.
        key - Key in form of a CFString identifying the desired attachment. API-Since: 4.0
      • CVBufferRemoveAllAttachments

        public static void CVBufferRemoveAllAttachments​(@NotNull
                                                        @NotNull CVBufferRef buffer)
        [@function] CVBufferRemoveAllAttachments Removes all attachments of a CVBuffer object While CVBufferRemoveAttachment removes a specific attachement identified by a key CVBufferRemoveAllAttachments removes all attachments of a buffer and decrements their retain counts.
        Parameters:
        buffer - Target CVBuffer object. API-Since: 4.0
      • CVBufferGetAttachments

        @Nullable
        @Deprecated
        public static @Nullable CFDictionaryRef CVBufferGetAttachments​(@NotNull
                                                                       @NotNull CVBufferRef buffer,
                                                                       int attachmentMode)
        Deprecated.
        [@function] CVBufferGetAttachments Returns all attachments of a CVBuffer object CVBufferGetAttachments is a convenience call that returns all attachments with their corresponding keys in a CFDictionary.
        Parameters:
        buffer - Target CVBuffer object.
        Returns:
        A CFDictionary with all buffer attachments identified by there keys. If no attachment is present, the dictionary is empty. Returns NULL for invalid attachment mode. API-Since: 4.0 Deprecated-Since: 15.0
      • CVBufferSetAttachments

        public static void CVBufferSetAttachments​(@NotNull
                                                  @NotNull CVBufferRef buffer,
                                                  @NotNull
                                                  @NotNull CFDictionaryRef theAttachments,
                                                  int attachmentMode)
        [@function] CVBufferSetAttachments Sets a set of attachments for a CVBuffer CVBufferSetAttachments is a convenience call that in turn calls CVBufferSetAttachment for each key and value in the given dictionary. All key value pairs must be in the root level of the dictionary.
        Parameters:
        buffer - Target CVBuffer object. API-Since: 4.0
      • CVBufferPropagateAttachments

        public static void CVBufferPropagateAttachments​(@NotNull
                                                        @NotNull CVBufferRef sourceBuffer,
                                                        @NotNull
                                                        @NotNull CVBufferRef destinationBuffer)
        [@function] CVBufferPropagateAttachments Copy all propagatable attachments from one buffer to another. CVBufferPropagateAttachments is a convenience call that copies all attachments with a mode of kCVAttachmentMode_ShouldPropagate from one buffer to another.
        Parameters:
        sourceBuffer - CVBuffer to copy attachments from.
        destinationBuffer - CVBuffer to copy attachments to. API-Since: 4.0
      • CVImageBufferGetEncodedSize

        public static CGSize CVImageBufferGetEncodedSize​(@NotNull
                                                         @NotNull CVBufferRef imageBuffer)
        [@function] CVImageBufferGetEncodedSize Returns the full encoded dimensions of a CVImageBuffer. For example, for an NTSC DV frame this would be 720x480
        Parameters:
        imageBuffer - A CVImageBuffer that you wish to retrieve the encoded size from.
        Returns:
        A CGSize returning the full encoded size of the buffer Returns zero size if called with a non-CVImageBufferRef type or NULL. API-Since: 4.0
      • CVImageBufferGetDisplaySize

        public static CGSize CVImageBufferGetDisplaySize​(@NotNull
                                                         @NotNull CVBufferRef imageBuffer)
        [@function] CVImageBufferGetDisplaySize Returns the nominal output display size (in square pixels) of a CVImageBuffer. For example, for an NTSC DV frame this would be 640x480
        Parameters:
        imageBuffer - A CVImageBuffer that you wish to retrieve the display size from.
        Returns:
        A CGSize returning the nominal display size of the buffer Returns zero size if called with a non-CVImageBufferRef type or NULL. API-Since: 4.0
      • CVImageBufferGetCleanRect

        public static CGRect CVImageBufferGetCleanRect​(@NotNull
                                                       @NotNull CVBufferRef imageBuffer)
        [@function] CVImageBufferGetCleanRect Returns the source rectangle of a CVImageBuffer that represents the clean aperture of the buffer in encoded pixels. For example, an NTSC DV frame would return a CGRect with an origin of 8,0 and a size of 704,480. Note that the origin of this rect always the lower left corner. This is the same coordinate system as used by CoreImage.
        Parameters:
        imageBuffer - A CVImageBuffer that you wish to retrieve the display size from.
        Returns:
        A CGSize returning the nominal display size of the buffer Returns zero rect if called with a non-CVImageBufferRef type or NULL. API-Since: 4.0
      • CVImageBufferIsFlipped

        public static byte CVImageBufferIsFlipped​(@NotNull
                                                  @NotNull CVBufferRef imageBuffer)
        [@function] CVImageBufferIsFlipped Returns whether the image is flipped vertically or not.
        Parameters:
        CVImageBuffer - target
        Returns:
        True if 0,0 in the texture is upper left, false if 0,0 is lower left. API-Since: 4.0
      • CVPixelBufferGetTypeID

        public static long CVPixelBufferGetTypeID()
        API-Since: 4.0
      • CVPixelBufferRetain

        @Nullable
        public static @Nullable CVBufferRef CVPixelBufferRetain​(@Nullable
                                                                @Nullable CVBufferRef texture)
        [@function] CVPixelBufferRetain Retains a CVPixelBuffer object Equivalent to CFRetain, but NULL safe
        Parameters:
        buffer - A CVPixelBuffer object that you want to retain.
        Returns:
        A CVPixelBuffer object that is the same as the passed in buffer. API-Since: 4.0
      • CVPixelBufferRelease

        public static void CVPixelBufferRelease​(@Nullable
                                                @Nullable CVBufferRef texture)
        [@function] CVPixelBufferRelease Releases a CVPixelBuffer object Equivalent to CFRelease, but NULL safe
        Parameters:
        buffer - A CVPixelBuffer object that you want to release. API-Since: 4.0
      • CVPixelBufferCreateResolvedAttributesDictionary

        public static int CVPixelBufferCreateResolvedAttributesDictionary​(@Nullable
                                                                          @Nullable CFAllocatorRef allocator,
                                                                          @Nullable
                                                                          @Nullable CFArrayRef attributes,
                                                                          @NotNull
                                                                          @NotNull org.moe.natj.general.ptr.Ptr<CFDictionaryRef> resolvedDictionaryOut)
        [@function] CVPixelBufferCreateResolvedAttributesDictionary Takes a CFArray of CFDictionary objects describing various pixel buffer attributes and tries to resolve them into a single dictionary. This is useful when you need to resolve multiple requirements between different potential clients of a buffer.
        Parameters:
        attributes - CFArray of CFDictionaries containing kCVPixelBuffer key/value pairs.
        resolvedDictionaryOut - The resulting dictionary will be placed here.
        Returns:
        Return value that may be useful in discovering why resolution failed. API-Since: 4.0
      • CVPixelBufferCreate

        public static int CVPixelBufferCreate​(@Nullable
                                              @Nullable CFAllocatorRef allocator,
                                              long width,
                                              long height,
                                              int pixelFormatType,
                                              @Nullable
                                              @Nullable CFDictionaryRef pixelBufferAttributes,
                                              @NotNull
                                              @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> pixelBufferOut)
        [@function] CVPixelBufferCreate Call to create a single PixelBuffer for a given size and pixelFormatType. Creates a single PixelBuffer for a given size and pixelFormatType. It allocates the necessary memory based on the pixel dimensions, pixelFormatType and extended pixels described in the pixelBufferAttributes. Not all parameters of the pixelBufferAttributes will be used here.
        Parameters:
        width - Width of the PixelBuffer in pixels.
        height - Height of the PixelBuffer in pixels.
        pixelFormatType - Pixel format indentified by its respective OSType.
        pixelBufferAttributes - A dictionary with additional attributes for a pixel buffer. This parameter is optional. See BufferAttributeKeys for more details.
        pixelBufferOut - The new pixel buffer will be returned here
        Returns:
        returns kCVReturnSuccess on success. API-Since: 4.0
      • CVPixelBufferCreateWithBytes

        public static int CVPixelBufferCreateWithBytes​(@Nullable
                                                       @Nullable CFAllocatorRef allocator,
                                                       long width,
                                                       long height,
                                                       int pixelFormatType,
                                                       @NotNull
                                                       @NotNull org.moe.natj.general.ptr.VoidPtr baseAddress,
                                                       long bytesPerRow,
                                                       @Nullable
                                                       @Nullable CoreVideo.Function_CVPixelBufferCreateWithBytes releaseCallback,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.VoidPtr releaseRefCon,
                                                       @Nullable
                                                       @Nullable CFDictionaryRef pixelBufferAttributes,
                                                       @NotNull
                                                       @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> pixelBufferOut)
        [@function] CVPixelBufferCreateWithBytes Call to create a single PixelBuffer for a given size and pixelFormatType based on a passed in piece of memory. Creates a single PixelBuffer for a given size and pixelFormatType. Not all parameters of the pixelBufferAttributes will be used here. It requires a release callback function that will be called, when the PixelBuffer gets destroyed so that the owner of the pixels can free the memory.
        Parameters:
        width - Width of the PixelBuffer in pixels
        height - Height of the PixelBuffer in pixels
        pixelFormatType - Pixel format indentified by its respective OSType.
        baseAddress - Address of the memory storing the pixels.
        bytesPerRow - Row bytes of the pixel storage memory.
        releaseCallback - CVPixelBufferReleaseBytePointerCallback function that gets called when the PixelBuffer gets destroyed.
        releaseRefCon - User data identifying the PixelBuffer for the release callback.
        pixelBufferAttributes - A dictionary with additional attributes for a a pixel buffer. This parameter is optional. See PixelBufferAttributes for more details.
        pixelBufferOut - The new pixel buffer will be returned here
        Returns:
        returns kCVReturnSuccess on success. API-Since: 4.0
      • CVPixelBufferCreateWithPlanarBytes

        public static int CVPixelBufferCreateWithPlanarBytes​(@Nullable
                                                             @Nullable CFAllocatorRef allocator,
                                                             long width,
                                                             long height,
                                                             int pixelFormatType,
                                                             @Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr dataPtr,
                                                             long dataSize,
                                                             long numberOfPlanes,
                                                             @NotNull
                                                             @NotNull org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> planeBaseAddress,
                                                             @NotNull
                                                             @NotNull org.moe.natj.general.ptr.NUIntPtr planeWidth,
                                                             @NotNull
                                                             @NotNull org.moe.natj.general.ptr.NUIntPtr planeHeight,
                                                             @NotNull
                                                             @NotNull org.moe.natj.general.ptr.NUIntPtr planeBytesPerRow,
                                                             @Nullable
                                                             @Nullable CoreVideo.Function_CVPixelBufferCreateWithPlanarBytes releaseCallback,
                                                             @Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr releaseRefCon,
                                                             @Nullable
                                                             @Nullable CFDictionaryRef pixelBufferAttributes,
                                                             @NotNull
                                                             @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> pixelBufferOut)
        [@function] CVPixelBufferCreateWithPlanarBytes Call to create a single PixelBuffer in planar format for a given size and pixelFormatType based on a passed in piece of memory. Creates a single PixelBuffer for a given size and pixelFormatType. Not all parameters of the pixelBufferAttributes will be used here. It requires a release callback function that will be called, when the PixelBuffer gets destroyed so that the owner of the pixels can free the memory.
        Parameters:
        width - Width of the PixelBuffer in pixels
        height - Height of the PixelBuffer in pixels
        pixelFormatType - Pixel format indentified by its respective OSType.
        dataPtr - Pass a pointer to a plane descriptor block, or NULL.
        dataSize - pass size if planes are contiguous, NULL if not.
        numberOfPlanes - Number of planes.
        planeBaseAddress - Array of base addresses for the planes.
        planeWidth - Array of plane widths.
        planeHeight - Array of plane heights.
        planeBytesPerRow - Array of plane bytesPerRow values.
        releaseCallback - CVPixelBufferReleaseBytePointerCallback function that gets called when the PixelBuffer gets destroyed.
        releaseRefCon - User data identifying the PixelBuffer for the release callback.
        pixelBufferAttributes - A dictionary with additional attributes for a a pixel buffer. This parameter is optional. See PixelBufferAttributes for more details.
        pixelBufferOut - The new pixel buffer will be returned here
        Returns:
        returns kCVReturnSuccess on success. API-Since: 4.0
      • CVPixelBufferLockBaseAddress

        public static int CVPixelBufferLockBaseAddress​(@NotNull
                                                       @NotNull CVBufferRef pixelBuffer,
                                                       long lockFlags)
        [@function] CVPixelBufferLockBaseAddress Description Locks the BaseAddress of the PixelBuffer to ensure that the memory is accessible. This API ensures that the CVPixelBuffer is accessible in system memory. This should only be called if the base address is going to be used and the pixel data will be accessed by the CPU.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        lockFlags - See CVPixelBufferLockFlags.
        Returns:
        kCVReturnSuccess if the lock succeeded, or error code on failure API-Since: 4.0
      • CVPixelBufferUnlockBaseAddress

        public static int CVPixelBufferUnlockBaseAddress​(@NotNull
                                                         @NotNull CVBufferRef pixelBuffer,
                                                         long unlockFlags)
        [@function] CVPixelBufferUnlockBaseAddress Description Unlocks the BaseAddress of the PixelBuffer.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        unlockFlags - See CVPixelBufferLockFlags.
        Returns:
        kCVReturnSuccess if the unlock succeeded, or error code on failure API-Since: 4.0
      • CVPixelBufferGetWidth

        public static long CVPixelBufferGetWidth​(@NotNull
                                                 @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetWidth Returns the width of the PixelBuffer.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        Width in pixels. API-Since: 4.0
      • CVPixelBufferGetHeight

        public static long CVPixelBufferGetHeight​(@NotNull
                                                  @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetHeight Returns the height of the PixelBuffer.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        Height in pixels. API-Since: 4.0
      • CVPixelBufferGetPixelFormatType

        public static int CVPixelBufferGetPixelFormatType​(@NotNull
                                                          @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetPixelFormatType Returns the PixelFormatType of the PixelBuffer.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        OSType identifying the pixel format by its type. API-Since: 4.0
      • CVPixelBufferGetBaseAddress

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.VoidPtr CVPixelBufferGetBaseAddress​(@NotNull
                                                                                             @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetBaseAddress Returns the base address of the PixelBuffer. Retrieving the base address for a PixelBuffer requires that the buffer base address be locked via a successful call to CVPixelBufferLockBaseAddress.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        Base address of the pixels. For chunky buffers, this will return a pointer to the pixel at 0,0 in the buffer For planar buffers this will return a pointer to a PlanarComponentInfo struct (defined in QuickTime). API-Since: 4.0
      • CVPixelBufferGetBytesPerRow

        public static long CVPixelBufferGetBytesPerRow​(@NotNull
                                                       @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetBytesPerRow Returns the rowBytes of the PixelBuffer.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        Bytes per row of the image data. For planar buffers this will return a rowBytes value such that bytesPerRow * height will cover the entire image including all planes. API-Since: 4.0
      • CVPixelBufferGetDataSize

        public static long CVPixelBufferGetDataSize​(@NotNull
                                                    @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetDataSize Returns the data size for contigous planes of the PixelBuffer.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        Data size used in CVPixelBufferCreateWithPlanarBytes. API-Since: 4.0
      • CVPixelBufferIsPlanar

        public static byte CVPixelBufferIsPlanar​(@NotNull
                                                 @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferIsPlanar Returns if the PixelBuffer is planar.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        True if the PixelBuffer was created using CVPixelBufferCreateWithPlanarBytes. API-Since: 4.0
      • CVPixelBufferGetPlaneCount

        public static long CVPixelBufferGetPlaneCount​(@NotNull
                                                      @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetPlaneCount Returns number of planes of the PixelBuffer.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        Returns:
        Number of planes. Returns 0 for non-planar CVPixelBufferRefs. API-Since: 4.0
      • CVPixelBufferGetWidthOfPlane

        public static long CVPixelBufferGetWidthOfPlane​(@NotNull
                                                        @NotNull CVBufferRef pixelBuffer,
                                                        long planeIndex)
        [@function] CVPixelBufferGetWidthOfPlane Returns the width of the plane at planeIndex in the PixelBuffer. On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        planeIndex - Identifying the plane.
        Returns:
        Width in pixels, or 0 for non-planar CVPixelBufferRefs. API-Since: 4.0
      • CVPixelBufferGetHeightOfPlane

        public static long CVPixelBufferGetHeightOfPlane​(@NotNull
                                                         @NotNull CVBufferRef pixelBuffer,
                                                         long planeIndex)
        [@function] CVPixelBufferGetHeightOfPlane Returns the height of the plane at planeIndex in the PixelBuffer. On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        planeIndex - Identifying the plane.
        Returns:
        Height in pixels, or 0 for non-planar CVPixelBufferRefs. API-Since: 4.0
      • CVPixelBufferGetBaseAddressOfPlane

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.VoidPtr CVPixelBufferGetBaseAddressOfPlane​(@NotNull
                                                                                                    @NotNull CVBufferRef pixelBuffer,
                                                                                                    long planeIndex)
        [@function] CVPixelBufferGetBaseAddressOfPlane Returns the base address of the plane at planeIndex in the PixelBuffer. Retrieving the base address for a PixelBuffer requires that the buffer base address be locked via a successful call to CVPixelBufferLockBaseAddress. On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        planeIndex - Identifying the plane.
        Returns:
        Base address of the plane, or NULL for non-planar CVPixelBufferRefs. API-Since: 4.0
      • CVPixelBufferGetBytesPerRowOfPlane

        public static long CVPixelBufferGetBytesPerRowOfPlane​(@NotNull
                                                              @NotNull CVBufferRef pixelBuffer,
                                                              long planeIndex)
        [@function] CVPixelBufferGetBytesPerRowOfPlane Returns the row bytes of the plane at planeIndex in the PixelBuffer. On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        planeIndex - Identifying the plane.
        Returns:
        Row bytes of the plane, or NULL for non-planar CVPixelBufferRefs. API-Since: 4.0
      • CVPixelBufferGetExtendedPixels

        public static void CVPixelBufferGetExtendedPixels​(@NotNull
                                                          @NotNull CVBufferRef pixelBuffer,
                                                          @Nullable
                                                          @Nullable org.moe.natj.general.ptr.NUIntPtr extraColumnsOnLeft,
                                                          @Nullable
                                                          @Nullable org.moe.natj.general.ptr.NUIntPtr extraColumnsOnRight,
                                                          @Nullable
                                                          @Nullable org.moe.natj.general.ptr.NUIntPtr extraRowsOnTop,
                                                          @Nullable
                                                          @Nullable org.moe.natj.general.ptr.NUIntPtr extraRowsOnBottom)
        [@function] CVPixelBufferGetExtendedPixels Returns the size of extended pixels of the PixelBuffer. On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior.
        Parameters:
        pixelBuffer - Target PixelBuffer.
        extraColumnsOnLeft - Returns the pixel row padding to the left. May be NULL.
        extraRowsOnTop - Returns the pixel row padding to the top. May be NULL.
        extraColumnsOnRight - Returns the pixel row padding to the right. May be NULL.
        extraRowsOnBottom - Returns the pixel row padding to the bottom. May be NULL. API-Since: 4.0
      • CVPixelBufferFillExtendedPixels

        public static int CVPixelBufferFillExtendedPixels​(@NotNull
                                                          @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferFillExtendedPixels Fills the extended pixels of the PixelBuffer. This function replicates edge pixels to fill the entire extended region of the image.
        Parameters:
        pixelBuffer - Target PixelBuffer. API-Since: 4.0
      • CVPixelBufferPoolGetTypeID

        public static long CVPixelBufferPoolGetTypeID()
        API-Since: 4.0
      • CVPixelBufferPoolRetain

        @Nullable
        public static @Nullable CVPixelBufferPoolRef CVPixelBufferPoolRetain​(@Nullable
                                                                             @Nullable CVPixelBufferPoolRef pixelBufferPool)
        [@function] CVPixelBufferPoolRetain Retains a CVPixelBufferPoolRef object Equivalent to CFRetain, but NULL safe
        Parameters:
        buffer - A CVPixelBufferPoolRef object that you want to retain.
        Returns:
        A CVPixelBufferPoolRef object that is the same as the passed in buffer. API-Since: 4.0
      • CVPixelBufferPoolRelease

        public static void CVPixelBufferPoolRelease​(@Nullable
                                                    @Nullable CVPixelBufferPoolRef pixelBufferPool)
        [@function] CVPixelBufferPoolRelease Releases a CVPixelBufferPoolRef object Equivalent to CFRelease, but NULL safe
        Parameters:
        buffer - A CVPixelBufferPoolRef object that you want to release. API-Since: 4.0
      • CVPixelBufferPoolCreate

        public static int CVPixelBufferPoolCreate​(@Nullable
                                                  @Nullable CFAllocatorRef allocator,
                                                  @Nullable
                                                  @Nullable CFDictionaryRef poolAttributes,
                                                  @Nullable
                                                  @Nullable CFDictionaryRef pixelBufferAttributes,
                                                  @NotNull
                                                  @NotNull org.moe.natj.general.ptr.Ptr<CVPixelBufferPoolRef> poolOut)
        [@function] CVPixelBufferPoolCreate Creates a new Pixel Buffer pool.
        Parameters:
        allocator - The CFAllocatorRef to use for allocating this buffer pool. May be NULL.
        attributes - A CFDictionaryRef containing the attributes to be used for creating new PixelBuffers within the pool.
        poolOut - The newly created pool will be placed here
        Returns:
        Returns kCVReturnSuccess on success API-Since: 4.0
      • CVPixelBufferPoolGetAttributes

        @Nullable
        public static @Nullable CFDictionaryRef CVPixelBufferPoolGetAttributes​(@NotNull
                                                                               @NotNull CVPixelBufferPoolRef pool)
        [@function] CVPixelBufferPoolGetAttributes Returns the pool attributes dictionary for a CVPixelBufferPool
        Parameters:
        pool - The CVPixelBufferPoolRef to retrieve the attributes from
        Returns:
        Returns the pool attributes dictionary, or NULL on failure. API-Since: 4.0
      • CVPixelBufferPoolGetPixelBufferAttributes

        @Nullable
        public static @Nullable CFDictionaryRef CVPixelBufferPoolGetPixelBufferAttributes​(@NotNull
                                                                                          @NotNull CVPixelBufferPoolRef pool)
        [@function] CVPixelBufferPoolGetPixelBufferAttributes Returns the attributes of pixel buffers that will be created from this pool. This function is provided for those cases where you may need to know some information about the buffers that will be created up front.
        Parameters:
        pool - The CVPixelBufferPoolRef to retrieve the attributes from
        Returns:
        Returns the pixel buffer attributes dictionary, or NULL on failure. API-Since: 4.0
      • CVPixelBufferPoolCreatePixelBuffer

        public static int CVPixelBufferPoolCreatePixelBuffer​(@Nullable
                                                             @Nullable CFAllocatorRef allocator,
                                                             @NotNull
                                                             @NotNull CVPixelBufferPoolRef pixelBufferPool,
                                                             @NotNull
                                                             @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> pixelBufferOut)
        [@function] CVPixelBufferPoolCreatePixelBuffer Creates a new PixelBuffer object from the pool. The function creates a new (attachment-free) CVPixelBuffer using the pixel buffer attributes specifed during pool creation.
        Parameters:
        allocator - The CFAllocatorRef to use for creating the pixel buffer. May be NULL.
        pool - The CVPixelBufferPool that should create the new CVPixelBuffer.
        pixelBufferOut - The newly created pixel buffer will be placed here
        Returns:
        Returns kCVReturnSuccess on success API-Since: 4.0
      • CVPixelBufferPoolCreatePixelBufferWithAuxAttributes

        public static int CVPixelBufferPoolCreatePixelBufferWithAuxAttributes​(@Nullable
                                                                              @Nullable CFAllocatorRef allocator,
                                                                              @NotNull
                                                                              @NotNull CVPixelBufferPoolRef pixelBufferPool,
                                                                              @Nullable
                                                                              @Nullable CFDictionaryRef auxAttributes,
                                                                              @NotNull
                                                                              @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> pixelBufferOut)
        [@function] CVPixelBufferPoolCreatePixelBufferWithAuxAttributes Creates a new PixelBuffer object from the pool. This function creates a new CVPixelBuffer using the pixel buffer attributes specified during pool creation and the attributes specified in the auxAttributes parameter.
        Parameters:
        allocator - The CFAllocatorRef to use for creating the pixel buffer. May be NULL.
        pixelBufferPool - The CVPixelBufferPool that should create the new CVPixelBuffer.
        auxAttributes - Attributes describing this specific allocation request. May be NULL.
        pixelBufferOut - The newly created pixel buffer will be placed here
        Returns:
        Returns kCVReturnSuccess on success API-Since: 4.0
      • CVPixelBufferPoolFlush

        public static void CVPixelBufferPoolFlush​(@NotNull
                                                  @NotNull CVPixelBufferPoolRef pool,
                                                  long options)
        [@function] CVPixelBufferPoolFlush Frees as many buffers from the pool as possible. By default, this function will free all aged out buffers. Setting the kCVPixelBufferPoolFlushExcessBuffers flag will cause this call to free all unused buffers regardless of age.
        Parameters:
        pool - The CVPixelBufferPool to be flushed.
        options - Set to kCVPixelBufferPoolFlushExcessBuffers to free all unused buffers regardless of their age.
      • CVOpenGLESTextureGetTypeID

        @Deprecated
        public static long CVOpenGLESTextureGetTypeID()
        Deprecated.
        API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • CVOpenGLESTextureGetTarget

        @Deprecated
        public static int CVOpenGLESTextureGetTarget​(@NotNull
                                                     @NotNull CVBufferRef image)
        Deprecated.
        [@function] CVOpenGLESTextureGetTarget Returns the texture target (eg. 2D vs. rect texture extension) of the CVOpenGLESTexture
        Parameters:
        image - Target CVOpenGLESTexture
        Returns:
        OpenGLES texture target API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • CVOpenGLESTextureGetName

        @Deprecated
        public static int CVOpenGLESTextureGetName​(@NotNull
                                                   @NotNull CVBufferRef image)
        Deprecated.
        [@function] CVOpenGLESTextureGetName Returns the texture target name of the CVOpenGLESTexture
        Parameters:
        image - Target CVOpenGLESTexture
        Returns:
        OpenGLES texture target name API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • CVOpenGLESTextureIsFlipped

        @Deprecated
        public static byte CVOpenGLESTextureIsFlipped​(@NotNull
                                                      @NotNull CVBufferRef image)
        Deprecated.
        [@function] CVOpenGLESTextureIsFlipped Returns whether the image is flipped vertically or not.
        Parameters:
        image - Target CVOpenGLESTexture
        Returns:
        True if 0,0 in the texture is upper left, false if 0,0 is lower left API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • CVOpenGLESTextureCacheGetTypeID

        @Deprecated
        public static long CVOpenGLESTextureCacheGetTypeID()
        Deprecated.
        textureAttributes - reserved for future use API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • CVOpenGLESTextureCacheCreate

        @Deprecated
        public static int CVOpenGLESTextureCacheCreate​(@Nullable
                                                       @Nullable CFAllocatorRef allocator,
                                                       @Nullable
                                                       @Nullable CFDictionaryRef cacheAttributes,
                                                       @NotNull
                                                       @NotNull EAGLContext eaglContext,
                                                       @Nullable
                                                       @Nullable CFDictionaryRef textureAttributes,
                                                       @NotNull
                                                       @NotNull org.moe.natj.general.ptr.Ptr<CVOpenGLESTextureCacheRef> cacheOut)
        Deprecated.
        [@function] CVOpenGLESTextureCacheCreate Creates a new Texture Cache.
        Parameters:
        allocator - The CFAllocatorRef to use for allocating the cache. May be NULL.
        cacheAttributes - A CFDictionaryRef containing the attributes of the cache itself. May be NULL.
        eaglContext - The OpenGLES 2.0 context into which the texture objects will be created. OpenGLES 1.x contexts are not supported.
        textureAttributes - A CFDictionaryRef containing the attributes to be used for creating the CVOpenGLESTexture objects. May be NULL.
        cacheOut - The newly created texture cache will be placed here
        Returns:
        Returns kCVReturnSuccess on success API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • CVOpenGLESTextureCacheCreateTextureFromImage

        @Deprecated
        public static int CVOpenGLESTextureCacheCreateTextureFromImage​(@Nullable
                                                                       @Nullable CFAllocatorRef allocator,
                                                                       @NotNull
                                                                       @NotNull CVOpenGLESTextureCacheRef textureCache,
                                                                       @NotNull
                                                                       @NotNull CVBufferRef sourceImage,
                                                                       @Nullable
                                                                       @Nullable CFDictionaryRef textureAttributes,
                                                                       int target,
                                                                       int internalFormat,
                                                                       int width,
                                                                       int height,
                                                                       int format,
                                                                       int type,
                                                                       long planeIndex,
                                                                       @NotNull
                                                                       @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> textureOut)
        Deprecated.
        [@function] CVOpenGLESTextureCacheCreateTextureFromImage Creates a CVOpenGLESTexture object from an existing CVImageBuffer Creates or returns a cached CVOpenGLESTexture texture object mapped to the CVImageBuffer and associated params. This creates a live binding between the CVImageBuffer and underlying CVOpenGLESTexture texture object. The EAGLContext associated with the cache may be modified, to create, delete, or bind textures. When used as a source texture or GL_COLOR_ATTACHMENT, the CVImageBuffer must be unlocked before rendering. The source or render buffer texture should not be re-used until the rendering has completed. This can be guaranteed by calling glFlush(). Here are some example mappings: Mapping a BGRA buffer as a source texture: CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, GL_TEXTURE_2D, GL_RGBA, width, height, GL_RGBA, GL_UNSIGNED_BYTE, 0, &outTexture); Mapping a BGRA buffer as a renderbuffer: CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, GL_RENDERBUFFER, GL_RGBA8_OES, width, height, GL_RGBA, GL_UNSIGNED_BYTE, 0, &outTexture); Mapping the luma plane of a 420v buffer as a source texture: CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, GL_TEXTURE_2D, GL_LUMINANCE, width, height, GL_LUMINANCE, GL_UNSIGNED_BYTE, 0, &outTexture); Mapping the chroma plane of a 420v buffer as a source texture: CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, GL_TEXTURE_2D, GL_LUMINANCE_ALPHA, width/2, height/2, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 1, &outTexture); Mapping a yuvs buffer as a source texture (note: yuvs/f and 2vuy are unpacked and resampled -- not colorspace converted) CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, GL_TEXTURE_2D, GL_RGB_422_APPLE, width, height, GL_RGB_422_APPLE, GL_UNSIGNED_SHORT_8_8_APPLE, 1, &outTexture); API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
        Parameters:
        allocator - The CFAllocatorRef to use for allocating the CVOpenGLESTexture object. May be NULL.
        textureCache - The texture cache object that will manage the texture.
        sourceImage - The CVImageBuffer that you want to create a CVOpenGLESTexture from.
        textureAttributes - A CFDictionaryRef containing attributes to be used for creating the CVOpenGLESTexture objects. May be NULL.
        target - Specifies the target texture. GL_TEXTURE_2D and GL_RENDERBUFFER are the only targets currently supported.
        internalFormat - Specifies the number of color components in the texture. Examples are GL_RGBA, GL_LUMINANCE, GL_RGBA8_OES, GL_RG, and GL_RED (NOTE: On GLES3 use GL_R8 instead of GL_RED).
        width - Specifies the width of the texture image.
        height - Specifies the height of the texture image.
        format - Specifies the format of the pixel data. Examples are GL_RGBA and GL_LUMINANCE.
        type - Specifies the data type of the pixel data. Examples are GL_UNSIGNED_BYTE.
        planeIndex - Specifies the plane of the CVImageBuffer to map bind. Ignored for non-planar CVImageBuffers.
        textureOut - The newly created texture object will be placed here.
        Returns:
        Returns kCVReturnSuccess on success
      • CVOpenGLESTextureCacheFlush

        @Deprecated
        public static void CVOpenGLESTextureCacheFlush​(@NotNull
                                                       @NotNull CVOpenGLESTextureCacheRef textureCache,
                                                       long options)
        Deprecated.
        [@function] CVOpenGLESTextureCacheFlush Performs internal housekeeping/recycling operations This call must be made periodically to give the texture cache a chance to make OpenGLES calls on the OpenGLES context used to create it in order to do housekeeping operations. The EAGLContext associated with the cache may be used to delete or unbind textures.
        Parameters:
        textureCache - The texture cache object to flush
        options - Currently unused, set to 0. API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • CVPixelFormatDescriptionCreateWithPixelFormatType

        @Nullable
        public static @Nullable CFDictionaryRef CVPixelFormatDescriptionCreateWithPixelFormatType​(@Nullable
                                                                                                  @Nullable CFAllocatorRef allocator,
                                                                                                  int pixelFormat)
        Create a description of a pixel format from a provided OSType API-Since: 4.0
      • CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes

        @Nullable
        public static @Nullable CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes​(@Nullable
                                                                                                      @Nullable CFAllocatorRef allocator)
        Get a CFArray of CFNumbers containing all known pixel formats as OSTypes API-Since: 4.0
      • CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType

        public static void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType​(@NotNull
                                                                                          @NotNull CFDictionaryRef description,
                                                                                          int pixelFormat)
        Register a new pixel format with CoreVideo API-Since: 4.0
      • CVMetalTextureGetTypeID

        public static long CVMetalTextureGetTypeID()
        API-Since: 8.0
      • CVMetalTextureGetTexture

        @Nullable
        public static @Nullable java.lang.Object CVMetalTextureGetTexture​(@NotNull
                                                                          @NotNull CVBufferRef image)
        [@function] CVMetalTextureGetTexture Returns the Metal MTLTexture object of the CVMetalTextureRef
        Parameters:
        image - Target CVMetalTexture
        Returns:
        Metal texture API-Since: 8.0
      • CVMetalTextureIsFlipped

        public static byte CVMetalTextureIsFlipped​(@NotNull
                                                   @NotNull CVBufferRef image)
        [@function] CVMetalTextureIsFlipped Returns whether the image is flipped vertically or not.
        Parameters:
        image - Target CVMetalTexture
        Returns:
        True if 0,0 in the texture is upper left, false if 0,0 is lower left API-Since: 8.0
      • CVMetalTextureCacheGetTypeID

        public static long CVMetalTextureCacheGetTypeID()
        API-Since: 8.0
      • CVMetalTextureCacheCreate

        public static int CVMetalTextureCacheCreate​(@Nullable
                                                    @Nullable CFAllocatorRef allocator,
                                                    @Nullable
                                                    @Nullable CFDictionaryRef cacheAttributes,
                                                    @NotNull
                                                    @NotNull java.lang.Object metalDevice,
                                                    @Nullable
                                                    @Nullable CFDictionaryRef textureAttributes,
                                                    @NotNull
                                                    @NotNull org.moe.natj.general.ptr.Ptr<CVMetalTextureCacheRef> cacheOut)
        [@function] CVMetalTextureCacheCreate Creates a new Texture Cache.
        Parameters:
        allocator - The CFAllocatorRef to use for allocating the cache. May be NULL.
        cacheAttributes - A CFDictionaryRef containing the attributes of the cache itself. May be NULL.
        metalDevice - The Metal device for which the texture objects will be created.
        textureAttributes - A CFDictionaryRef containing the attributes to be used for creating the CVMetalTexture objects. May be NULL.
        cacheOut - The newly created texture cache will be placed here
        Returns:
        Returns kCVReturnSuccess on success API-Since: 8.0
      • CVMetalTextureCacheCreateTextureFromImage

        public static int CVMetalTextureCacheCreateTextureFromImage​(@Nullable
                                                                    @Nullable CFAllocatorRef allocator,
                                                                    @NotNull
                                                                    @NotNull CVMetalTextureCacheRef textureCache,
                                                                    @NotNull
                                                                    @NotNull CVBufferRef sourceImage,
                                                                    @Nullable
                                                                    @Nullable CFDictionaryRef textureAttributes,
                                                                    long pixelFormat,
                                                                    long width,
                                                                    long height,
                                                                    long planeIndex,
                                                                    @NotNull
                                                                    @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> textureOut)
        [@function] CVMetalTextureCacheCreateTextureFromImage Creates a CVMetalTexture object from an existing CVImageBuffer Creates or returns a cached CVMetalTexture texture object mapped to the CVImageBuffer and associated params. This creates a live binding between the CVImageBuffer and underlying CVMetalTexture texture object. IMPORTANT NOTE: Clients should retain CVMetalTexture objects until they are done using the images in them. Retaining a CVMetalTexture is your way to indicate that you're still using the image in the buffer, and that it should not be recycled yet. Note that CoreVideo does not explicitly declare any pixel format types to be Metal compatible. The assumption is that if the CVPixelBufferMetalCompatibilityKey has been specified, all buffers will be Metal compatible (IOSurface backed), and thus it is the developer's responsibility to choose an appropriate Metal pixel format for the CVPixelBuffers. Here are some example mappings: Mapping a BGRA buffer: CVMetalTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, MTLPixelFormatBGRA8Unorm, width, height, 0, &outTexture); Mapping the luma plane of a 420v buffer: CVMetalTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, MTLPixelFormatR8Unorm, width, height, 0, &outTexture); Mapping the chroma plane of a 420v buffer as a source texture: CVMetalTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, MTLPixelFormatRG8Unorm width/2, height/2, 1, &outTexture); Mapping a yuvs buffer as a source texture (note: yuvs/f and 2vuy are unpacked and resampled -- not colorspace converted) CVMetalTextureCacheCreateTextureFromImage(kCFAllocatorDefault, textureCache, pixelBuffer, NULL, MTLPixelFormatGBGR422, width, height, 1, &outTexture); API-Since: 8.0
        Parameters:
        allocator - The CFAllocatorRef to use for allocating the CVMetalTexture object. May be NULL.
        textureCache - The texture cache object that will manage the texture.
        sourceImage - The CVImageBuffer that you want to create a CVMetalTexture from.
        textureAttributes - A CFDictionaryRef containing attributes to be used for creating the CVMetalTexture objects. May be NULL.
        pixelFormat - Specifies the Metal pixel format.
        width - Specifies the width of the texture image.
        height - Specifies the height of the texture image.
        planeIndex - Specifies the plane of the CVImageBuffer to map bind. Ignored for non-planar CVImageBuffers.
        textureOut - The newly created texture object will be placed here.
        Returns:
        Returns kCVReturnSuccess on success
      • CVMetalTextureCacheFlush

        public static void CVMetalTextureCacheFlush​(@NotNull
                                                    @NotNull CVMetalTextureCacheRef textureCache,
                                                    long options)
        [@function] CVMetalTextureCacheFlush Performs internal housekeeping/recycling operations This call must be made periodically to give the texture cache a chance to do internal housekeeping operations.
        Parameters:
        textureCache - The texture cache object to flush
        options - Currently unused, set to 0. API-Since: 8.0
      • kCVZeroTime

        public static CVTime kCVZeroTime()
      • kCVIndefiniteTime

        public static CVTime kCVIndefiniteTime()
      • kCVBufferPropagatedAttachmentsKey

        @NotNull
        public static @NotNull CFStringRef kCVBufferPropagatedAttachmentsKey()
        The following two keys are useful with the CoreVideo pool and texture cache APIs so that you can specify an initial set of default buffer attachments to automatically be attached to the buffer when it is created. API-Since: 4.0
      • kCVBufferNonPropagatedAttachmentsKey

        @NotNull
        public static @NotNull CFStringRef kCVBufferNonPropagatedAttachmentsKey()
        API-Since: 4.0
      • kCVBufferMovieTimeKey

        @NotNull
        public static @NotNull CFStringRef kCVBufferMovieTimeKey()
        Generally only available for frames emitted by QuickTime; CFDictionary containing these two keys: API-Since: 4.0
      • kCVBufferTimeValueKey

        @NotNull
        public static @NotNull CFStringRef kCVBufferTimeValueKey()
        API-Since: 4.0
      • kCVBufferTimeScaleKey

        @NotNull
        public static @NotNull CFStringRef kCVBufferTimeScaleKey()
        API-Since: 4.0
      • kCVImageBufferCGColorSpaceKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferCGColorSpaceKey()
        CGColorSpaceRef API-Since: 4.0
      • kCVImageBufferCleanApertureKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferCleanApertureKey()
        CFDictionary containing the following four keys API-Since: 4.0
      • kCVImageBufferCleanApertureWidthKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferCleanApertureWidthKey()
        CFNumber API-Since: 4.0
      • kCVImageBufferCleanApertureHeightKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferCleanApertureHeightKey()
        CFNumber API-Since: 4.0
      • kCVImageBufferCleanApertureHorizontalOffsetKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferCleanApertureHorizontalOffsetKey()
        CFNumber, horizontal offset from center of image buffer API-Since: 4.0
      • kCVImageBufferCleanApertureVerticalOffsetKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferCleanApertureVerticalOffsetKey()
        CFNumber, vertical offset from center of image buffer API-Since: 4.0
      • kCVImageBufferPreferredCleanApertureKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferPreferredCleanApertureKey()
        CFDictionary containing same keys as kCVImageBufferCleanApertureKey API-Since: 4.0
      • kCVImageBufferFieldCountKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferFieldCountKey()
        CFNumber API-Since: 4.0
      • kCVImageBufferFieldDetailKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferFieldDetailKey()
        CFString with one of the following four values API-Since: 4.0
      • kCVImageBufferFieldDetailTemporalTopFirst

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferFieldDetailTemporalTopFirst()
        CFString API-Since: 4.0
      • kCVImageBufferFieldDetailTemporalBottomFirst

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferFieldDetailTemporalBottomFirst()
        CFString API-Since: 4.0
      • kCVImageBufferFieldDetailSpatialFirstLineEarly

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferFieldDetailSpatialFirstLineEarly()
        CFString API-Since: 4.0
      • kCVImageBufferFieldDetailSpatialFirstLineLate

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferFieldDetailSpatialFirstLineLate()
        CFString API-Since: 4.0
      • kCVImageBufferPixelAspectRatioKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferPixelAspectRatioKey()
        CFDictionary with the following two keys API-Since: 4.0
      • kCVImageBufferPixelAspectRatioHorizontalSpacingKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferPixelAspectRatioHorizontalSpacingKey()
        CFNumber API-Since: 4.0
      • kCVImageBufferPixelAspectRatioVerticalSpacingKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferPixelAspectRatioVerticalSpacingKey()
        CFNumber API-Since: 4.0
      • kCVImageBufferDisplayDimensionsKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferDisplayDimensionsKey()
        CFDictionary with the following two keys API-Since: 4.0
      • kCVImageBufferDisplayWidthKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferDisplayWidthKey()
        CFNumber API-Since: 4.0
      • kCVImageBufferDisplayHeightKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferDisplayHeightKey()
        CFNumber API-Since: 4.0
      • kCVImageBufferGammaLevelKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferGammaLevelKey()
        CFNumber describing the gamma level, used in absence of (or ignorance of) kCVImageBufferTransferFunctionKey API-Since: 4.0
      • kCVImageBufferICCProfileKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferICCProfileKey()
        CFData representation of the ICC profile API-Since: 4.0
      • kCVImageBufferYCbCrMatrixKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferYCbCrMatrixKey()
        CFString describing the color matrix for YCbCr->RGB. This key can be one of the following values: API-Since: 4.0
      • kCVImageBufferYCbCrMatrix_ITU_R_709_2

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_709_2()
        CFString API-Since: 4.0
      • kCVImageBufferYCbCrMatrix_ITU_R_601_4

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_601_4()
        CFString API-Since: 4.0
      • kCVImageBufferYCbCrMatrix_SMPTE_240M_1995

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferYCbCrMatrix_SMPTE_240M_1995()
        CFString API-Since: 4.0
      • kCVImageBufferYCbCrMatrix_DCI_P3

        @NotNull
        @Deprecated
        public static @NotNull CFStringRef kCVImageBufferYCbCrMatrix_DCI_P3()
        Deprecated.
        CFString API-Since: 9.0 Deprecated-Since: 14.0 Deprecated-Message: kCVImageBufferYCbCrMatrix_DCI_P3 no longer supported.
      • kCVImageBufferYCbCrMatrix_P3_D65

        @NotNull
        @Deprecated
        public static @NotNull CFStringRef kCVImageBufferYCbCrMatrix_P3_D65()
        Deprecated.
        CFString API-Since: 9.0 Deprecated-Since: 14.0 Deprecated-Message: kCVImageBufferYCbCrMatrix_P3_D65 no longer supported.
      • kCVImageBufferYCbCrMatrix_ITU_R_2020

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_2020()
        CFString API-Since: 9.0
      • kCVImageBufferColorPrimariesKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimariesKey()
        CFString describing the color primaries. This key can be one of the following values API-Since: 4.0
      • kCVImageBufferColorPrimaries_ITU_R_709_2

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimaries_ITU_R_709_2()
        API-Since: 4.0
      • kCVImageBufferColorPrimaries_EBU_3213

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimaries_EBU_3213()
        API-Since: 4.0
      • kCVImageBufferColorPrimaries_SMPTE_C

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimaries_SMPTE_C()
        API-Since: 4.0
      • kCVImageBufferColorPrimaries_P22

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimaries_P22()
        API-Since: 6.0
      • kCVImageBufferColorPrimaries_DCI_P3

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimaries_DCI_P3()
        API-Since: 9.0
      • kCVImageBufferColorPrimaries_P3_D65

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimaries_P3_D65()
        API-Since: 9.0
      • kCVImageBufferColorPrimaries_ITU_R_2020

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020()
        API-Since: 9.0
      • kCVImageBufferTransferFunctionKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunctionKey()
        CFString describing the transfer function. This key can be one of the following values API-Since: 4.0
      • kCVImageBufferTransferFunction_ITU_R_709_2

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_ITU_R_709_2()
        API-Since: 4.0
      • kCVImageBufferTransferFunction_SMPTE_240M_1995

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_SMPTE_240M_1995()
        API-Since: 4.0
      • kCVImageBufferTransferFunction_UseGamma

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_UseGamma()
        API-Since: 4.0
      • kCVImageBufferTransferFunction_ITU_R_2020

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_ITU_R_2020()
        note: kCVImageBufferTransferFunction_ITU_R_709_2 is equivalent, and preferred API-Since: 9.0
      • kCVImageBufferTransferFunction_SMPTE_ST_428_1

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_428_1()
        API-Since: 10.0
      • kCVImageBufferChromaLocationTopFieldKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocationTopFieldKey()
        CFString with one of the following CFString values API-Since: 4.0
      • kCVImageBufferChromaLocationBottomFieldKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocationBottomFieldKey()
        CFString with one of the following CFString values API-Since: 4.0
      • kCVImageBufferChromaLocation_Left

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocation_Left()
        Chroma sample is horizontally co-sited with the left column of luma samples, but centered vertically. API-Since: 4.0
      • kCVImageBufferChromaLocation_Center

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocation_Center()
        Chroma sample is fully centered API-Since: 4.0
      • kCVImageBufferChromaLocation_TopLeft

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocation_TopLeft()
        Chroma sample is co-sited with the top-left luma sample. API-Since: 4.0
      • kCVImageBufferChromaLocation_Top

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocation_Top()
        Chroma sample is horizontally centered, but co-sited with the top row of luma samples. API-Since: 4.0
      • kCVImageBufferChromaLocation_BottomLeft

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocation_BottomLeft()
        Chroma sample is co-sited with the bottom-left luma sample. API-Since: 4.0
      • kCVImageBufferChromaLocation_Bottom

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocation_Bottom()
        Chroma sample is horizontally centered, but co-sited with the bottom row of luma samples. API-Since: 4.0
      • kCVImageBufferChromaLocation_DV420

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaLocation_DV420()
        Cr and Cb samples are alternately co-sited with the left luma samples of the same field. API-Since: 4.0
      • kCVImageBufferChromaSubsamplingKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaSubsamplingKey()
        CFString/CFNumber with one of the following values API-Since: 4.0
      • kCVImageBufferChromaSubsampling_420

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaSubsampling_420()
        API-Since: 4.0
      • kCVImageBufferChromaSubsampling_422

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaSubsampling_422()
        API-Since: 4.0
      • kCVImageBufferChromaSubsampling_411

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferChromaSubsampling_411()
        API-Since: 4.0
      • kCVImageBufferAlphaChannelIsOpaque

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferAlphaChannelIsOpaque()
        Can be set to kCFBooleanTrue as a hint that the alpha channel is fully opaque. Not used if the pixel format type has no alpha channel. API-Since: 8.0
      • kCVPixelBufferPixelFormatTypeKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferPixelFormatTypeKey()
        A single CFNumber or a CFArray of CFNumbers (OSTypes) API-Since: 4.0
      • kCVPixelBufferMemoryAllocatorKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferMemoryAllocatorKey()
        CFAllocatorRef API-Since: 4.0
      • kCVPixelBufferWidthKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferWidthKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferHeightKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferHeightKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferExtendedPixelsLeftKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferExtendedPixelsLeftKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferExtendedPixelsTopKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferExtendedPixelsTopKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferExtendedPixelsRightKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferExtendedPixelsRightKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferExtendedPixelsBottomKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferExtendedPixelsBottomKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferBytesPerRowAlignmentKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferBytesPerRowAlignmentKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferCGBitmapContextCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferCGBitmapContextCompatibilityKey()
        CFBoolean API-Since: 4.0
      • kCVPixelBufferCGImageCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferCGImageCompatibilityKey()
        CFBoolean API-Since: 4.0
      • kCVPixelBufferOpenGLCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferOpenGLCompatibilityKey()
        CFBoolean API-Since: 4.0
      • kCVPixelBufferPlaneAlignmentKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferPlaneAlignmentKey()
        CFNumber API-Since: 4.0
      • kCVPixelBufferIOSurfacePropertiesKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferIOSurfacePropertiesKey()
        CFDictionary; presence requests buffer allocation via IOSurface API-Since: 4.0
      • kCVPixelBufferOpenGLESCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferOpenGLESCompatibilityKey()
        CFBoolean API-Since: 6.0
      • kCVPixelBufferMetalCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferMetalCompatibilityKey()
        CFBoolean API-Since: 8.0
      • kCVPixelBufferOpenGLESTextureCacheCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferOpenGLESTextureCacheCompatibilityKey()
        API-Since: 9.0
      • kCVPixelBufferPoolMinimumBufferCountKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferPoolMinimumBufferCountKey()
        By default, buffers will age out after one second. If required, setting an age of zero will disable the age-out mechanism completely. API-Since: 4.0
      • kCVPixelBufferPoolMaximumBufferAgeKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferPoolMaximumBufferAgeKey()
        API-Since: 4.0
      • kCVPixelBufferPoolAllocationThresholdKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferPoolAllocationThresholdKey()
        CFNumberRef -- for use only in auxAttributes API-Since: 4.0
      • kCVPixelBufferPoolFreeBufferNotification

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferPoolFreeBufferNotification()
        kCVPixelBufferPoolFreeBufferNotification is posted if a buffer becomes available after CVPixelBufferPoolCreatePixelBufferWithAuxAttributes has failed due to kCVPixelBufferPoolAllocationThresholdKey. This notification will not be posted by the pool if kCVPixelBufferPoolAllocationThresholdKey has never been passed to CVPixelBufferPoolCreatePixelBufferWithAuxAttributes. API-Since: 4.0
      • kCVOpenGLESTextureCacheMaximumTextureAgeKey

        @NotNull
        @Deprecated
        public static @NotNull CFStringRef kCVOpenGLESTextureCacheMaximumTextureAgeKey()
        Deprecated.
        cacheAttributes By default, textures will age out after one second. Setting a maximum texture age of zero will disable the age-out mechanism completely. CVOpenGLESTextureCacheFlush() can be used to force eviction in either case. API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
      • kCVPixelFormatName

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatName()
        The canonical name for the format. This should be the same as the codec name you'd use in QT API-Since: 4.0
      • kCVPixelFormatConstant

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatConstant()
        QuickTime/QuickDraw Pixel Format Type constant (OSType) API-Since: 4.0
      • kCVPixelFormatCodecType

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatCodecType()
        This is the codec type constant, i.e. '2vuy' or k422YpCbCr8CodecType API-Since: 4.0
      • kCVPixelFormatFourCC

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatFourCC()
        This is the equivalent Microsoft FourCC code for this pixel format API-Since: 4.0
      • kCVPixelFormatContainsAlpha

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatContainsAlpha()
        kCFBooleanTrue indicates that the format contains alpha and some images may be considered transparent; kCFBooleanFalse indicates that there is no alpha and images are always opaque. API-Since: 4.3
      • kCVPixelFormatContainsYCbCr

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatContainsYCbCr()
        kCFBooleanTrue indicates that the format contains YCbCr data; API-Since: 8.0
      • kCVPixelFormatContainsRGB

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatContainsRGB()
        kCFBooleanTrue indicates that the format contains RGB data; API-Since: 8.0
      • kCVPixelFormatComponentRange

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatComponentRange()
        API-Since: 9.0
      • kCVPixelFormatComponentRange_VideoRange

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatComponentRange_VideoRange()
        API-Since: 9.0
      • kCVPixelFormatComponentRange_FullRange

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatComponentRange_FullRange()
        API-Since: 9.0
      • kCVPixelFormatComponentRange_WideRange

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatComponentRange_WideRange()
        API-Since: 9.0
      • kCVPixelFormatPlanes

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatPlanes()
        All buffers have one or more image planes. Each plane may contain a single or an interleaved set of components For simplicity sake, pixel formats that are not planar may place the required format keys at the top level dictionary. API-Since: 4.0
      • kCVPixelFormatBlockWidth

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatBlockWidth()
        Used to assist with allocating memory for pixel formats that don't have an integer value for bytes per pixel Block width is essentially the width in pixels of the smallest "byte addressable" group of pixels This works in close conjunction with BitsPerBlock Examples: 8-bit luminance only, BlockWidth would be 1, BitsPerBlock would be 8 16-bit 1555 RGB, BlockWidth would be 1, BitsPerBlock would be 16 32-bit 8888 ARGB, BlockWidth would be 1, BitsPerBlock would be 32 2vuy (CbYCrY), BlockWidth would be 2, BitsPerBlock would be 32 1-bit bitmap, BlockWidth would be 8, BitsPerBlock would be 8 v210, BlockWidth would be 6, BitsPerBlock would be 128 Values assumed to 1 be one if not present API-Since: 4.0
      • kCVPixelFormatBlockHeight

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatBlockHeight()
        API-Since: 4.0
      • kCVPixelFormatBitsPerBlock

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatBitsPerBlock()
        This value must be present. For simple pixel formats this will be equivalent to the traditional bitsPerPixel value. API-Since: 4.0
      • kCVPixelFormatBlockHorizontalAlignment

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatBlockHorizontalAlignment()
        Used to state requirements on block multiples. v210 would be '8' here for the horizontal case, to match the standard v210 row alignment value of 48. These may be assumed as 1 if not present. API-Since: 4.0
      • kCVPixelFormatBlockVerticalAlignment

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatBlockVerticalAlignment()
        API-Since: 4.0
      • kCVPixelFormatBlackBlock

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatBlackBlock()
        CFData containing the bit pattern for a block of black pixels. If absent, black is assumed to be all zeros. If present, this should be bitsPerPixel bits long -- if bitsPerPixel is less than a byte, repeat the bit pattern for the full byte. API-Since: 4.0
      • kCVPixelFormatHorizontalSubsampling

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatHorizontalSubsampling()
        Subsampling information for this plane. Assumed to be '1' if not present. API-Since: 4.0
      • kCVPixelFormatVerticalSubsampling

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatVerticalSubsampling()
        API-Since: 4.0
      • kCVPixelFormatOpenGLFormat

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatOpenGLFormat()
        If present, these two keys describe the OpenGL format and type enums you would use to describe this image plane to OpenGL API-Since: 4.0
      • kCVPixelFormatOpenGLType

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatOpenGLType()
        API-Since: 4.0
      • kCVPixelFormatOpenGLInternalFormat

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatOpenGLInternalFormat()
        API-Since: 4.0
      • kCVPixelFormatCGBitmapInfo

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatCGBitmapInfo()
        CGBitmapInfo value, if required API-Since: 4.0
      • kCVPixelFormatQDCompatibility

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatQDCompatibility()
        Pixel format compatibility flags API-Since: 4.0
      • kCVPixelFormatCGBitmapContextCompatibility

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatCGBitmapContextCompatibility()
        API-Since: 4.0
      • kCVPixelFormatCGImageCompatibility

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatCGImageCompatibility()
        API-Since: 4.0
      • kCVPixelFormatOpenGLCompatibility

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatOpenGLCompatibility()
        API-Since: 4.0
      • kCVPixelFormatOpenGLESCompatibility

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatOpenGLESCompatibility()
        API-Since: 5.0
      • kCVPixelFormatFillExtendedPixelsCallback

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatFillExtendedPixelsCallback()
        The value for this key is a CFData containing a CVFillExtendedPixelsCallBackData struct API-Since: 4.0
      • kCVMetalTextureCacheMaximumTextureAgeKey

        @NotNull
        public static @NotNull CFStringRef kCVMetalTextureCacheMaximumTextureAgeKey()
        cacheAttributes By default, textures will age out after one second. Setting a maximum texture age of zero will disable the age-out mechanism completely. CVMetalTextureCacheFlush() can be used to force eviction in either case. API-Since: 8.0
      • CVYCbCrMatrixGetIntegerCodePointForString

        public static int CVYCbCrMatrixGetIntegerCodePointForString​(@Nullable
                                                                    @Nullable CFStringRef yCbCrMatrixString)
        Returns the standard integer code point corresponding to a given CoreVideo YCbCrMatrix constant string (in the kCVImageBufferYCbCrMatrix_... family). Returns 2 (the code point for "unknown") if the string is NULL or not recognized. API-Since: 11.0
      • CVColorPrimariesGetIntegerCodePointForString

        public static int CVColorPrimariesGetIntegerCodePointForString​(@Nullable
                                                                       @Nullable CFStringRef colorPrimariesString)
        Returns the standard integer code point corresponding to a given CoreVideo ColorPrimaries constant string (in the kCVImageBufferColorPrimaries_... family). Returns 2 (the code point for "unknown") if the string is NULL or not recognized. API-Since: 11.0
      • CVTransferFunctionGetIntegerCodePointForString

        public static int CVTransferFunctionGetIntegerCodePointForString​(@Nullable
                                                                         @Nullable CFStringRef transferFunctionString)
        Returns the standard integer code point corresponding to a given CoreVideo TransferFunction constant string (in the kCVImageBufferTransferFunction_... family). Returns 2 (the code point for "unknown") if the string is NULL or not recognized. API-Since: 11.0
      • CVYCbCrMatrixGetStringForIntegerCodePoint

        @Nullable
        public static @Nullable CFStringRef CVYCbCrMatrixGetStringForIntegerCodePoint​(int yCbCrMatrixCodePoint)
        Returns the CoreVideo YCbCrMatrix constant string (in the kCVImageBufferYCbCrMatrix_... family) corresponding to a given standard integer code point. Returns NULL if the code point is not recognized, or if it is 2 (the code point for "unknown"). API-Since: 11.0
      • CVColorPrimariesGetStringForIntegerCodePoint

        @Nullable
        public static @Nullable CFStringRef CVColorPrimariesGetStringForIntegerCodePoint​(int colorPrimariesCodePoint)
        Returns the CoreVideo ColorPrimaries constant string (in the kCVImageBufferColorPrimaries_... family) corresponding to a given standard integer code point. Returns NULL if the code point is not recognized, or if it is 2 (the code point for "unknown"). API-Since: 11.0
      • CVTransferFunctionGetStringForIntegerCodePoint

        @Nullable
        public static @Nullable CFStringRef CVTransferFunctionGetStringForIntegerCodePoint​(int transferFunctionCodePoint)
        Returns the CoreVideo TransferFunction constant string (in the kCVImageBufferTransferFunction_... family) corresponding to a given standard integer code point. Returns NULL if the code point is not recognized, or if it is 2 (the code point for "unknown"). API-Since: 11.0
      • CVImageBufferCreateColorSpaceFromAttachments

        @Nullable
        public static @Nullable CGColorSpaceRef CVImageBufferCreateColorSpaceFromAttachments​(@NotNull
                                                                                             @NotNull CFDictionaryRef attachments)
        [@function] CVImageBufferCreateColorSpaceFromAttachments Attempts to synthesize a CGColorSpace from an image buffer's attachments. To generate a CGColorSpace, the attachments dictionary should include values for either: 1. kCVImageBufferICCProfile 2. kCVImageBufferColorPrimariesKey, kCVImageBufferTransferFunctionKey, and kCVImageBufferYCbCrMatrixKey (and possibly kCVImageBufferGammaLevelKey) The client is responsible for releasing the CGColorSpaceRef when it is done with it (CGColorSpaceRelease() or CFRelease()) API-Since: 10.0
        Parameters:
        attachments - A CFDictionary of attachments for an image buffer, obtained using CVBufferCopyAttachments().
        Returns:
        A CGColorSpaceRef representing the color space of the buffer. Returns NULL if the attachments dictionary does not contain the information required to synthesize a CGColorSpace.
      • CVPixelBufferGetIOSurface

        @Nullable
        public static @Nullable IOSurfaceRef CVPixelBufferGetIOSurface​(@Nullable
                                                                       @Nullable CVBufferRef pixelBuffer)
        [@function] CVPixelBufferGetIOSurface Returns the IOSurface backing the pixel buffer, or NULL if it is not backed by an IOSurface.
        Parameters:
        pixelBuffer - Target PixelBuffer. API-Since: 4.0
      • CVPixelBufferCreateWithIOSurface

        public static int CVPixelBufferCreateWithIOSurface​(@Nullable
                                                           @Nullable CFAllocatorRef allocator,
                                                           @NotNull
                                                           @NotNull IOSurfaceRef surface,
                                                           @Nullable
                                                           @Nullable CFDictionaryRef pixelBufferAttributes,
                                                           @NotNull
                                                           @NotNull org.moe.natj.general.ptr.Ptr<CVBufferRef> pixelBufferOut)
        [@function] CVPixelBufferCreateWithIOSurface Call to create a single CVPixelBuffer for a passed-in IOSurface. The CVPixelBuffer will retain the IOSurface. IMPORTANT NOTE: If you are using IOSurface to share CVPixelBuffers between processes and those CVPixelBuffers are allocated via a CVPixelBufferPool, it is important that the CVPixelBufferPool does not reuse CVPixelBuffers whose IOSurfaces are still in use in other processes. CoreVideo and IOSurface will take care of this for if you use IOSurfaceCreateMachPort and IOSurfaceLookupFromMachPort, but NOT if you pass IOSurfaceIDs.
        Parameters:
        surface - The IOSurface to wrap.
        pixelBufferAttributes - A dictionary with additional attributes for a a pixel buffer. This parameter is optional. See PixelBufferAttributes for more details.
        pixelBufferOut - The new pixel buffer will be returned here
        Returns:
        returns kCVReturnSuccess on success. API-Since: 4.0
      • kCVImageBufferTransferFunction_sRGB

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_sRGB()
        IEC 61966-2-1 sRGB or sYCC API-Since: 11.0
      • kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ()
        API-Since: 11.0
      • kCVImageBufferTransferFunction_ITU_R_2100_HLG

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_ITU_R_2100_HLG()
        API-Since: 11.0
      • kCVImageBufferMasteringDisplayColorVolumeKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferMasteringDisplayColorVolumeKey()
        CFData (24 bytes) containing big-endian data matching payload of ISO/IEC 23008-2:2015(E), D.2.28 Mastering display colour volume SEI message API-Since: 11.0
      • kCVImageBufferContentLightLevelInfoKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferContentLightLevelInfoKey()
        CFData (4 bytes) containing big-endian data matching payload of Content Light Level Information SEI message API-Since: 11.0
      • kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey()
        CFBoolean API-Since: 4.0
      • kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey()
        CFBoolean API-Since: 5.0
      • kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey()
        CFBoolean API-Since: 5.0
      • kCVMetalTextureUsage

        @NotNull
        public static @NotNull CFStringRef kCVMetalTextureUsage()
        kCVMetalTextureUsage is a property that can be placed on a CVMetalTextureCache to instruct the MTLTextureUsage of the created MTLTexture. Values for this can can be read from MTLTexture.h API-Since: 11.0
      • kCVImageBufferTransferFunction_Linear

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferTransferFunction_Linear()
        API-Since: 12.0
      • kCVImageBufferAlphaChannelModeKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferAlphaChannelModeKey()
        API-Since: 13.0
      • kCVImageBufferAlphaChannelMode_StraightAlpha

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferAlphaChannelMode_StraightAlpha()
        API-Since: 13.0
      • kCVImageBufferAlphaChannelMode_PremultipliedAlpha

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferAlphaChannelMode_PremultipliedAlpha()
        API-Since: 13.0
      • kCVPixelFormatContainsGrayscale

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatContainsGrayscale()
        kCFBooleanTrue indicates that the format contains Grayscale data; API-Since: 12.0
      • kCVMetalTextureStorageMode

        @NotNull
        public static @NotNull CFStringRef kCVMetalTextureStorageMode()
        kCVMetalTextureStorageMode is a property that can be placed on a CVMetalTextureCache to instruct the MTLTextureStorageMode of the created MTLTexture. Values for this can can be read from MTLTexture.h API-Since: 13.0
      • kCVPixelBufferVersatileBayerKey_BayerPattern

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferVersatileBayerKey_BayerPattern()
        [@const] kCVPixelBufferVersatileBayerKey_BayerPattern Buffer attachment key for code indicating Bayer pattern (sensel arrangement). Associated attachment is a CFNumber of type kCFNumberSInt32Type. The value follows the semantics of the ProRes RAW bayer_pattern bitstream syntax element, namely 0, 1, 2, or 3, where 0 means the top-left sensel of the frame is red-filtered ("RGGB"); 1 means the top-left sensel of the frame is green-filtered, with the top row alternating between green- and red-filtered sensels ("GRBG"); 2 means the top-left sensel of the frame is green- filtered, with the top row alternating between green- and blue-filtered sensels ("GBRG"); and 3 means the top-left sensel of the frame is blue-filtered ("BGGR"). This attachment applies only to buffers with VersatileBayer formats. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_SenselSitingOffsets

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_SenselSitingOffsets()
        [@const] kCVPixelBufferProResRAWKey_SenselSitingOffsets Buffer attachment key for siting offsets, relative to pixel center, of individual sensels/components constituting each pixel. Associated attachment is CFData containing an array of 8 32-bit floats. The eight CFData array elements specify, in order, the following sensel/component offsets from pixel center: red horizontal offset, red vertical offset, green horizontal offset, green vertical offset, blue horizontal offset, blue vertical offset, alpha horizontal offset, and alpha vertical offset. A positive offset value indicates that the sensel/component lies to the right of or below the center of its pixel, while a negative value indicates that the sensel/component lies to the left of or above the center of its pixel. Horizontal and vertical offset magnitudes are respectively in terms of the spacing between horizontally- and vertically-adjacent pixel centers. This attachment applies only to buffers with the bp64 format, and is optional for those buffers; if not present, all offsets are considered to be 0. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_BlackLevel

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_BlackLevel()
        [@const] kCVPixelBufferProResRAWKey_BlackLevel Buffer attachment key for sensel black level. Associated attachment is a CFNumber of type kCFNumberSInt32Type. The value is the sensel level corresponding to no light exposure. This attachment is required for buffers with either the bp16 or bp64 format. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_WhiteLevel

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_WhiteLevel()
        [@const] kCVPixelBufferProResRAWKey_WhiteLevel Buffer attachment key for sensel white level. Associated attachment is a CFNumber of type kCFNumberSInt32Type. The value is the sensel level corresponding to sensor (or camera A-to-D converter) saturation. This attachment is required for buffers with either the bp16 or bp64 format. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_WhiteBalanceCCT

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceCCT()
        [@const] kCVPixelBufferProResRAWKey_WhiteBalanceCCT Buffer attachment key for illuminant correlated color temperature. Associated attachment is a CFNumber of type kCFNumberSInt32Type. The value is the illuminant correlated color temperature (CCT), in kelvins, selected at the time of capture. May be 0, indicating that the CCT is unknown or unspecified. This attachment is optional for buffers with either the bp16 or bp64 format; if not present, the CCT is considered unknown or unspecified. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor()
        [@const] kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor Buffer attachment key for white balance red factor. Associated attachment is a CFNumber of type kCFNumberFloat32Type. The value is the white balance multiplication factor for red-filtered sensels. This attachment is required for buffers with either the bp16 or bp64 format. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor()
        [@const] kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor Buffer attachment key for white balance blue factor. Associated attachment is a CFNumber of type kCFNumberFloat32Type. The value is the white balance multiplication factor for blue-filtered sensels. This attachment is required for buffers with either the bp16 or bp64 format. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_ColorMatrix

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_ColorMatrix()
        [@const] kCVPixelBufferProResRAWKey_ColorMatrix Buffer attachment key for color translation matrix. Associated attachment is CFData containing an array of 9 32-bit floats. The value is a 3x3 matrix which transforms linear RGB pixel values in the camera native color space to CIE 1931 XYZ values relative to the D65 illuminant, where the matrix entries are stored in the CFData in row-major order. This attachment is required for buffers with either the bp16 or bp64 format. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_GainFactor

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_GainFactor()
        [@const] kCVPixelBufferProResRAWKey_GainFactor Buffer attachment key for gain factor. Associated attachment is a CFNumber of type kCFNumberFloat32Type. The value is the overall gain factor for raw conversion. This attachment is required for buffers with either the bp16 or bp64 format. API-Since: 14.0
      • kCVPixelBufferProResRAWKey_RecommendedCrop

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_RecommendedCrop()
        [@const] kCVPixelBufferProResRAWKey_RecommendedCrop Buffer attachment key for recommended number of pixels/rows to discard from the sides of the image after raw conversion. Associated attachment is CFData containing an array of 4 32-bit floats. The four CFData array elements specify, in order, the recommended number of: pixels to discard from the start (left) of each row of the image; pixels to discard from the end (right) of each row of the image; rows of pixels to discard from the top of the image; and rows of pixels to discard from the bottom of the image. (Pixels/rows are discarded after raw conversion.) This attachment is optional for buffers with either the bp16 or bp64 format; if not present, the recommended crop values are considered to be 0. For buffers with the bp64 format, the values may be nonintegral due to downscaling, in which case the handling of fractional parts is implementation-dependent. API-Since: 14.0
      • CVBufferCopyAttachments

        @Nullable
        public static @Nullable CFDictionaryRef CVBufferCopyAttachments​(@NotNull
                                                                        @NotNull CVBufferRef buffer,
                                                                        int attachmentMode)
        [@function] CVBufferCopyAttachments Returns a copy of all attachments of a CVBuffer object. It is the caller’s responsibility to release the returned dictionary. CVBufferCopyAttachments is a convenience call that returns a copy of all attachments with their corresponding keys in a CFDictionary.
        Parameters:
        buffer - Target CVBuffer object.
        Returns:
        A CFDictionary with all buffer attachments identified by their keys. If no attachment is present or invalid attachment mode, returns NULL API-Since: 15.0
      • CVBufferCopyAttachment

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.ConstVoidPtr CVBufferCopyAttachment​(@NotNull
                                                                                             @NotNull CVBufferRef buffer,
                                                                                             @NotNull
                                                                                             @NotNull CFStringRef key,
                                                                                             @Nullable
                                                                                             @Nullable org.moe.natj.general.ptr.IntPtr attachmentMode)
        [@function] CVBufferCopyAttachment Returns a retained specific attachment of a CVBuffer object. It is the caller’s responsibility to release the returned value. You can attach any CF object to a CVBuffer object to store additional information. CVBufferCopyAttachment retrieves a retained attachment identified by a key.
        Parameters:
        buffer - Target CVBuffer object.
        key - Key in form of a CFString identifying the desired attachment.
        attachmentMode - . Returns the mode of the attachment, if desired. May be NULL.
        Returns:
        If found the attachment object, return the value; otherwize, return NULL. API-Since: 15.0
      • CVBufferHasAttachment

        public static byte CVBufferHasAttachment​(@NotNull
                                                 @NotNull CVBufferRef buffer,
                                                 @NotNull
                                                 @NotNull CFStringRef key)
        [@function] CVBufferHasAttachment Returns true if an attachment with the passed key is present on a CVBuffer object.
        Parameters:
        buffer - Target CVBuffer object.
        key - Key in form of a CFString identifying the desired attachment.
        Returns:
        True if an attachment with this key is present, otherwise false. API-Since: 15.0
      • CVPixelBufferCopyCreationAttributes

        @NotNull
        public static @NotNull CFDictionaryRef CVPixelBufferCopyCreationAttributes​(@NotNull
                                                                                   @NotNull CVBufferRef pixelBuffer)
        [@function] CVPixelBufferCopyCreationAttributes Returns a copy of pixelBufferAttributes dictionary used to create the PixelBuffer. Can be used to create similar pixelbuffers.
        Parameters:
        pixelBuffer - Target PixelBuffer. API-Since: 15.0
      • CVIsCompressedPixelFormatAvailable

        public static byte CVIsCompressedPixelFormatAvailable​(int pixelFormatType)
        [@function] CVIsCompressedPixelFormatAvailable Checks if a compressed pixel format is supported on the current platform.
        Parameters:
        pixelFormatType - compressed pixel format.
        Returns:
        True if pixel format is supported on the current platform. API-Since: 15.0
      • kCVImageBufferAmbientViewingEnvironmentKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferAmbientViewingEnvironmentKey()
        CFData (8 bytes) containing big-endian data matching payload of Ambient Viewing Environment SEI message API-Since: 15.0
      • kCVImageBufferRegionOfInterestKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferRegionOfInterestKey()
        [@constant] kCVImageBufferRegionOfInterestKey Specifies region of interest that image statistics cover. This value should be a CGRect dictionary created by CGRectCreateDictionaryRepresentation(). The origin in the CGRect represents the x,y coordinate within the CVPixelBuffer where region of interest is located. API-Since: 15.0
      • kCVPixelBufferProResRAWKey_MetadataExtension

        @NotNull
        public static @NotNull CFStringRef kCVPixelBufferProResRAWKey_MetadataExtension()
        [@const] kCVPixelBufferProResRAWKey_MetadataExtension Buffer attachment key for metadata extension. Associated attachment is CFData containing ProRes RAW metadata extension. This attachment is optional for buffers with either bp16 or bp64. The CFData contains a big-endian uint32 representing the size of the item in bytes followed by a 4-character code ('psim') followed by a variable-length pascal string identifying the metadata (like a key string) followed by the metadata payload. API-Since: 15.0
      • kCVPixelFormatContainsSenselArray

        @NotNull
        public static @NotNull CFStringRef kCVPixelFormatContainsSenselArray()
        kCFBooleanTrue indicates that the format contains sensel data, as in Bayer RAW buffers; API-Since: 16.0
      • kCVImageBufferLogTransferFunctionKey

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferLogTransferFunctionKey()
        [@constant] kCVImageBufferLogTransferFunctionKey Indicates that the transfer function or gamma of the content is a log format and identifies the specific log curve. The value is a CFString holding fully specified reverse DNS identifier. Content captured in Apple Log will have this key set to kCVImageBufferLogTransferFunction_AppleLog. [@constant] kCVImageBufferLogTransferFunction_AppleLog Indicates the Apple Log identifier. You can download the Apple Log Profile White Paper from the Apple Developer Downloads website. API-Since: 17.2
      • kCVImageBufferLogTransferFunction_AppleLog

        @NotNull
        public static @NotNull CFStringRef kCVImageBufferLogTransferFunction_AppleLog()
        API-Since: 17.2