corevideo

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package corevideo provides Go bindings for the CoreVideo framework.

Process digital video, including manipulation of individual frames, using a pipeline-based API and support for both Metal and OpenGL.

Core Video provides a pipeline model for digital video. It simplifies working with video by partitioning the process into discrete steps. This makes it easier for developers to access and manipulate individual frames without having to worry about translating between data types or display synchronization issues. Apps that don’t need to manipulate individual video frames don’t need to use Core Video directly.

Data Processing

Time Management

Metal

  • CVMetalTextureCache: A cache used to create and manage Metal texture objects.
  • CVMetalTexture: A texture-based image buffer that supplies source image data for use with the Metal framework.

OpenGL

  • CVOpenGLTextureCache: A cache used to create and manage OpenGL texture objects.
  • CVOpenGLTexture: A texture-based image buffer that supplies source image data to OpenGL.
  • CVOpenGLBuffer: An image buffer used to store image data in video memory.
  • CVOpenGLBufferPool: A utility object for managing a set of recyclable OpenGL buffer objects.

OpenGL ES

  • CVOpenGLESTextureCache: A cache used to create and manage OpenGL ES texture objects.
  • CVOpenGLESTexture: A texture-based image buffer that supplies source image data to OpenGL ES.

Core Video Error Constants

  • Result Codes: Describes the result codes generated by Core Video operations.
  • Data Types: Common data types used by the Core Video framework. (CVReturn)

Classes

  • CVMetalBufferCache
  • CVReadOnlyPixelBuffer: CVReadOnlyPixelBuffer provides an immutable view of the pixel data held by the pixel buffer.

Protocols

  • CVBufferRepresentable: CVBufferRepresentable protocol is a sealed protocol intended to be implemented by the types in CoreVideo framework.
  • CVImageBufferRepresentable: CVImageBufferRepresentable protocol is a sealed protocol intended to be implemented by the types in CoreVideo framework.
  • CVPixelBufferRepresentable: CVPixelBufferRepresentable protocol is a sealed protocol intended to be implemented by the types in CoreVideo framework.

Variables

  • kCVImageBufferDisplayMaskRectangleKey: Specifies the rectangular display area within the image.
  • kCVImageBufferDisplayMaskRectangleStereoLeftKey: Specifies the rectangular display area within the left-eye view of stereo images, using the same keys as .
  • kCVImageBufferDisplayMaskRectangleStereoRightKey: Specifies the rectangular display area within the right-eye view of stereo images, using the same keys as .
  • kCVImageBufferLogTransferFunction_AppleLog2
  • kCVImageBufferPostDecodeProcessingFrameMetadataKey
  • kCVImageBufferPostDecodeProcessingSequenceMetadataKey
  • kCVImageBufferSceneIlluminationKey
  • kCVMetalBufferCacheMaximumBufferAgeKey
  • kCVPixelBufferIOSurfacePurgeableKey
  • kCVPixelFormatBitsPerComponent
  • kCVPixelFormatType_30RGBLE_8A_BiPlanar
  • kCVPixelFormatType_30RGB_r210
  • kCVPixelFormatType_96VersatileBayerPacked12
  • kCVPixelFormatType_Lossless_30RGBLEPackedWideGamut
  • kCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar
  • kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange
  • kCVPixelFormatType_Lossless_64RGBAHalf

Functions

  • CVMetalBufferCacheCreate(_:_:_:_:)
  • CVMetalBufferCacheCreateBufferFromImage(_:_:_:_:)
  • CVMetalBufferCacheFlush(_:_:)
  • CVMetalBufferCacheGetTypeID()
  • CVMetalBufferGetBuffer(_:)
  • CVMetalBufferGetTypeID()
  • CVPixelBufferIsCompatibleWithAttributes(_:_:)
  • CVPixelFormatTypeCopyFourCharCodeString(_:)

Type Aliases

  • CVMetalBuffer

Enumerations

  • CVImageBufferOriginPosition

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var KCVBufferMovieTimeKey string
View Source
var KCVBufferNonPropagatedAttachmentsKey string
View Source
var KCVBufferPropagatedAttachmentsKey string
View Source
var KCVBufferTimeScaleKey string
View Source
var KCVBufferTimeValueKey string
View Source
var KCVImageBufferAlphaChannelIsOpaque string
View Source
var KCVImageBufferAlphaChannelModeKey string
View Source
var KCVImageBufferAlphaChannelMode_PremultipliedAlpha string
View Source
var KCVImageBufferAlphaChannelMode_StraightAlpha string
View Source
var KCVImageBufferAmbientViewingEnvironmentKey string
View Source
var KCVImageBufferCGColorSpaceKey string
View Source
var KCVImageBufferChromaLocationBottomFieldKey string
View Source
var KCVImageBufferChromaLocationTopFieldKey string
View Source
var KCVImageBufferChromaLocation_Bottom string
View Source
var KCVImageBufferChromaLocation_BottomLeft string
View Source
var KCVImageBufferChromaLocation_Center string
View Source
var KCVImageBufferChromaLocation_DV420 string
View Source
var KCVImageBufferChromaLocation_Left string
View Source
var KCVImageBufferChromaLocation_Top string
View Source
var KCVImageBufferChromaLocation_TopLeft string
View Source
var KCVImageBufferChromaSubsamplingKey string
View Source
var KCVImageBufferChromaSubsampling_411 string
View Source
var KCVImageBufferChromaSubsampling_420 string
View Source
var KCVImageBufferChromaSubsampling_422 string
View Source
var KCVImageBufferCleanApertureHeightKey string
View Source
var KCVImageBufferCleanApertureHorizontalOffsetKey string
View Source
var KCVImageBufferCleanApertureKey string
View Source
var KCVImageBufferCleanApertureVerticalOffsetKey string
View Source
var KCVImageBufferCleanApertureWidthKey string
View Source
var KCVImageBufferColorPrimariesKey string
View Source
var KCVImageBufferColorPrimaries_DCI_P3 string
View Source
var KCVImageBufferColorPrimaries_EBU_3213 string
View Source
var KCVImageBufferColorPrimaries_ITU_R_2020 string
View Source
var KCVImageBufferColorPrimaries_ITU_R_709_2 string
View Source
var KCVImageBufferColorPrimaries_P22 string
View Source
var KCVImageBufferColorPrimaries_P3_D65 string
View Source
var KCVImageBufferColorPrimaries_SMPTE_C string
View Source
var KCVImageBufferContentLightLevelInfoKey string
View Source
var KCVImageBufferDisplayDimensionsKey string
View Source
var KCVImageBufferDisplayHeightKey string
View Source
var KCVImageBufferDisplayMaskRectangleKey string
View Source
var KCVImageBufferDisplayMaskRectangleStereoLeftKey string
View Source
var KCVImageBufferDisplayMaskRectangleStereoRightKey string
View Source
var KCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey string
View Source
var KCVImageBufferDisplayMaskRectangle_RectangleHeightKey string
View Source
var KCVImageBufferDisplayMaskRectangle_RectangleLeftKey string
View Source
var KCVImageBufferDisplayMaskRectangle_RectangleTopKey string
View Source
var KCVImageBufferDisplayMaskRectangle_RectangleWidthKey string
View Source
var KCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey string
View Source
var KCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey string
View Source
var KCVImageBufferDisplayMaskRectangle_RightEdgePointsKey string
View Source
var KCVImageBufferDisplayWidthKey string
View Source
var KCVImageBufferFieldCountKey string
View Source
var KCVImageBufferFieldDetailKey string
View Source
var KCVImageBufferFieldDetailSpatialFirstLineEarly string
View Source
var KCVImageBufferFieldDetailSpatialFirstLineLate string
View Source
var KCVImageBufferFieldDetailTemporalBottomFirst string
View Source
var KCVImageBufferFieldDetailTemporalTopFirst string
View Source
var KCVImageBufferGammaLevelKey string
View Source
var KCVImageBufferICCProfileKey string
View Source
var KCVImageBufferLogTransferFunctionKey string
View Source
var KCVImageBufferLogTransferFunction_AppleLog string
View Source
var KCVImageBufferLogTransferFunction_AppleLog2 string
View Source
var KCVImageBufferMasteringDisplayColorVolumeKey string
View Source
var KCVImageBufferPixelAspectRatioHorizontalSpacingKey string
View Source
var KCVImageBufferPixelAspectRatioKey string
View Source
var KCVImageBufferPixelAspectRatioVerticalSpacingKey string
View Source
var KCVImageBufferPostDecodeProcessingFrameMetadataKey string
View Source
var KCVImageBufferPostDecodeProcessingSequenceMetadataKey string
View Source
var KCVImageBufferPreferredCleanApertureKey string
View Source
var KCVImageBufferRegionOfInterestKey string
View Source
var KCVImageBufferSceneIlluminationKey string
View Source
var KCVImageBufferTransferFunctionKey string
View Source
var KCVImageBufferTransferFunction_ITU_R_2020 string
View Source
var KCVImageBufferTransferFunction_ITU_R_2100_HLG string
View Source
var KCVImageBufferTransferFunction_ITU_R_709_2 string
View Source
var KCVImageBufferTransferFunction_Linear string
View Source
var KCVImageBufferTransferFunction_SMPTE_240M_1995 string
View Source
var KCVImageBufferTransferFunction_SMPTE_ST_2084_PQ string
View Source
var KCVImageBufferTransferFunction_SMPTE_ST_428_1 string
View Source
var KCVImageBufferTransferFunction_UseGamma string
View Source
var KCVImageBufferTransferFunction_sRGB string
View Source
var KCVImageBufferYCbCrMatrixKey string
View Source
var KCVImageBufferYCbCrMatrix_ITU_R_2020 string
View Source
var KCVImageBufferYCbCrMatrix_ITU_R_601_4 string
View Source
var KCVImageBufferYCbCrMatrix_ITU_R_709_2 string
View Source
var KCVImageBufferYCbCrMatrix_SMPTE_240M_1995 string
View Source
var KCVMetalBufferCacheMaximumBufferAgeKey string
View Source
var KCVMetalTextureCacheMaximumTextureAgeKey string
View Source
var KCVMetalTextureStorageMode string
View Source
var KCVMetalTextureUsage string
View Source
var KCVPixelBufferBytesPerRowAlignmentKey string
View Source
var KCVPixelBufferCGBitmapContextCompatibilityKey string
View Source
var KCVPixelBufferCGImageCompatibilityKey string
View Source
var KCVPixelBufferExtendedPixelsBottomKey string
View Source
var KCVPixelBufferExtendedPixelsLeftKey string
View Source
var KCVPixelBufferExtendedPixelsRightKey string
View Source
var KCVPixelBufferExtendedPixelsTopKey string
View Source
var KCVPixelBufferHeightKey string
View Source
var KCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey string
View Source
var KCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey string
View Source
var KCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey string
View Source
var KCVPixelBufferIOSurfacePropertiesKey string
View Source
var KCVPixelBufferIOSurfacePurgeableKey string
View Source
var KCVPixelBufferMemoryAllocatorKey string
View Source
var KCVPixelBufferMetalCompatibilityKey string
View Source
var KCVPixelBufferOpenGLCompatibilityKey string
View Source
var KCVPixelBufferOpenGLTextureCacheCompatibilityKey string
View Source
var KCVPixelBufferPixelFormatTypeKey string
View Source
var KCVPixelBufferPlaneAlignmentKey string
View Source
var KCVPixelBufferPoolAllocationThresholdKey string
View Source
var KCVPixelBufferPoolFreeBufferNotification string
View Source
var KCVPixelBufferPoolMaximumBufferAgeKey string
View Source
var KCVPixelBufferPoolMinimumBufferCountKey string
View Source
var KCVPixelBufferProResRAWKey_BlackLevel string
View Source
var KCVPixelBufferProResRAWKey_ColorMatrix string
View Source
var KCVPixelBufferProResRAWKey_GainFactor string
View Source
var KCVPixelBufferProResRAWKey_MetadataExtension string
View Source
var KCVPixelBufferProResRAWKey_RecommendedCrop string
View Source
var KCVPixelBufferProResRAWKey_SenselSitingOffsets string
View Source
var KCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor string
View Source
var KCVPixelBufferProResRAWKey_WhiteBalanceCCT string
View Source
var KCVPixelBufferProResRAWKey_WhiteBalanceRedFactor string
View Source
var KCVPixelBufferProResRAWKey_WhiteLevel string
View Source
var KCVPixelBufferVersatileBayerKey_BayerPattern string
View Source
var KCVPixelBufferWidthKey string
View Source
var KCVPixelFormatBitsPerBlock string
View Source
var KCVPixelFormatBitsPerComponent string
View Source
var KCVPixelFormatBlackBlock string
View Source
var KCVPixelFormatBlockHeight string
View Source
var KCVPixelFormatBlockHorizontalAlignment string
View Source
var KCVPixelFormatBlockVerticalAlignment string
View Source
var KCVPixelFormatBlockWidth string
View Source
var KCVPixelFormatCGBitmapContextCompatibility string
View Source
var KCVPixelFormatCGBitmapInfo string
View Source
var KCVPixelFormatCGImageCompatibility string
View Source
var KCVPixelFormatCodecType string
View Source
var KCVPixelFormatComponentRange string
View Source
var KCVPixelFormatComponentRange_FullRange string
View Source
var KCVPixelFormatComponentRange_VideoRange string
View Source
var KCVPixelFormatComponentRange_WideRange string
View Source
var KCVPixelFormatConstant string
View Source
var KCVPixelFormatContainsAlpha string
View Source
var KCVPixelFormatContainsGrayscale string
View Source
var KCVPixelFormatContainsRGB string
View Source
var KCVPixelFormatContainsSenselArray string
View Source
var KCVPixelFormatContainsYCbCr string
View Source
var KCVPixelFormatFillExtendedPixelsCallback string
View Source
var KCVPixelFormatFourCC string
View Source
var KCVPixelFormatHorizontalSubsampling string
View Source
var KCVPixelFormatName string
View Source
var KCVPixelFormatOpenGLCompatibility string
View Source
var KCVPixelFormatOpenGLFormat string
View Source
var KCVPixelFormatOpenGLInternalFormat string
View Source
var KCVPixelFormatOpenGLType string
View Source
var KCVPixelFormatPlanes string
View Source
var KCVPixelFormatQDCompatibility string
View Source
var KCVPixelFormatVerticalSubsampling string

Functions

func CVBufferCopyAttachment

func CVBufferCopyAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, attachmentMode *CVAttachmentMode) corefoundation.CFTypeRef

CVBufferCopyAttachment returns a copy of an attachment from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferCopyAttachment(_:_:_:)

func CVBufferCopyAttachments

func CVBufferCopyAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) corefoundation.CFDictionaryRef

CVBufferCopyAttachments returns a copy of all attachments from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferCopyAttachments(_:_:)

func CVBufferHasAttachment

func CVBufferHasAttachment(buffer CVBufferRef, key corefoundation.CFStringRef) bool

CVBufferHasAttachment returns a Boolean value that indicates whether a Core Video buffer contains a specified attachment.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferHasAttachment(_:_:)

func CVBufferPropagateAttachments

func CVBufferPropagateAttachments(sourceBuffer CVBufferRef, destinationBuffer CVBufferRef)

CVBufferPropagateAttachments copies all attachments that Core Video can propagate from one buffer to another.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferPropagateAttachments(_:_:)

func CVBufferRelease

func CVBufferRelease(buffer CVBufferRef)

CVBufferRelease releases a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRelease

func CVBufferRemoveAllAttachments

func CVBufferRemoveAllAttachments(buffer CVBufferRef)

CVBufferRemoveAllAttachments removes all attachments from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRemoveAllAttachments(_:)

func CVBufferRemoveAttachment

func CVBufferRemoveAttachment(buffer CVBufferRef, key corefoundation.CFStringRef)

CVBufferRemoveAttachment removes the attachment you specify from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRemoveAttachment(_:_:)

func CVBufferSetAttachment

func CVBufferSetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, value corefoundation.CFTypeRef, attachmentMode CVAttachmentMode)

CVBufferSetAttachment sets or adds an attachment to a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferSetAttachment(_:_:_:_:)

func CVBufferSetAttachments

func CVBufferSetAttachments(buffer CVBufferRef, theAttachments corefoundation.CFDictionaryRef, attachmentMode CVAttachmentMode)

CVBufferSetAttachments sets a dictionary of attachments on a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferSetAttachments(_:_:_:)

func CVColorPrimariesGetIntegerCodePointForString

func CVColorPrimariesGetIntegerCodePointForString(colorPrimariesString corefoundation.CFStringRef) int

CVColorPrimariesGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video color primaries constant string that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVColorPrimariesGetIntegerCodePointForString(_:)

func CVColorPrimariesGetStringForIntegerCodePoint

func CVColorPrimariesGetStringForIntegerCodePoint(colorPrimariesCodePoint int) corefoundation.CFStringRef

CVColorPrimariesGetStringForIntegerCodePoint returns the Core Video color primaries string corresponding to the standard integer code point that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVColorPrimariesGetStringForIntegerCodePoint(_:)

func CVDisplayLinkGetActualOutputVideoRefreshPeriod deprecated

func CVDisplayLinkGetActualOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) float64

CVDisplayLinkGetActualOutputVideoRefreshPeriod retrieves the actual output refresh period of a display as measured by the system time.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetActualOutputVideoRefreshPeriod(_:)

func CVDisplayLinkGetCurrentCGDisplay deprecated

func CVDisplayLinkGetCurrentCGDisplay(displayLink CVDisplayLinkRef) uint32

CVDisplayLinkGetCurrentCGDisplay gets the current display associated with a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetCurrentCGDisplay(_:)

func CVDisplayLinkGetTypeID deprecated

func CVDisplayLinkGetTypeID() uint

CVDisplayLinkGetTypeID obtains the Core Foundation ID for the display link data type.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetTypeID()

func CVDisplayLinkIsRunning deprecated

func CVDisplayLinkIsRunning(displayLink CVDisplayLinkRef) bool

CVDisplayLinkIsRunning indicates whether a given display link is running.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkIsRunning(_:)

func CVDisplayLinkRelease

func CVDisplayLinkRelease(displayLink CVDisplayLinkRef)

CVDisplayLinkRelease releases a display link.

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkRelease

func CVGetCurrentHostTime

func CVGetCurrentHostTime() uint64

CVGetCurrentHostTime returns the current system time.

See: https://developer.apple.com/documentation/CoreVideo/CVGetCurrentHostTime()

func CVGetHostClockFrequency

func CVGetHostClockFrequency() float64

CVGetHostClockFrequency returns the frequency of updates to the system time.

See: https://developer.apple.com/documentation/CoreVideo/CVGetHostClockFrequency()

func CVGetHostClockMinimumTimeDelta

func CVGetHostClockMinimumTimeDelta() uint32

CVGetHostClockMinimumTimeDelta returns the smallest possible increment in the system time.

See: https://developer.apple.com/documentation/CoreVideo/CVGetHostClockMinimumTimeDelta()

func CVImageBufferCreateColorSpaceFromAttachments

func CVImageBufferCreateColorSpaceFromAttachments(attachments corefoundation.CFDictionaryRef) coregraphics.CGColorSpaceRef

CVImageBufferCreateColorSpaceFromAttachments attempts to create a Core Graphics color space from the image buffer’s attachments that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferCreateColorSpaceFromAttachments(_:)

func CVImageBufferGetCleanRect

func CVImageBufferGetCleanRect(imageBuffer CVImageBufferRef) corefoundation.CGRect

CVImageBufferGetCleanRect returns the source rectangle of a Core Video image buffer that represents the clean aperture of the buffer in encoded pixels.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetCleanRect(_:)

func CVImageBufferGetColorSpace

func CVImageBufferGetColorSpace(imageBuffer CVImageBufferRef) coregraphics.CGColorSpaceRef

CVImageBufferGetColorSpace returns the color space of a Core Video image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetColorSpace(_:)

func CVImageBufferGetDisplaySize

func CVImageBufferGetDisplaySize(imageBuffer CVImageBufferRef) corefoundation.CGSize

CVImageBufferGetDisplaySize returns the nominal output display size, in square pixels, of a Core Video image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetDisplaySize(_:)

func CVImageBufferGetEncodedSize

func CVImageBufferGetEncodedSize(imageBuffer CVImageBufferRef) corefoundation.CGSize

CVImageBufferGetEncodedSize returns the full encoded dimensions of a Core Video image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetEncodedSize(_:)

func CVImageBufferIsFlipped

func CVImageBufferIsFlipped(imageBuffer CVImageBufferRef) bool

CVImageBufferIsFlipped returns a Boolean value indicating whether the image is vertically flipped.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferIsFlipped(_:)

func CVIsCompressedPixelFormatAvailable

func CVIsCompressedPixelFormatAvailable(pixelFormatType uint32) bool

CVIsCompressedPixelFormatAvailable.

See: https://developer.apple.com/documentation/CoreVideo/CVIsCompressedPixelFormatAvailable(_:)

func CVMetalBufferCacheGetTypeID

func CVMetalBufferCacheGetTypeID() uint

CVMetalBufferCacheGetTypeID.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCacheGetTypeID()

func CVMetalTextureCacheFlush

func CVMetalTextureCacheFlush(textureCache CVMetalTextureCacheRef, options CVOptionFlags)

CVMetalTextureCacheFlush manually flushes the contents of the provided texture cache.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheFlush(_:_:)

func CVMetalTextureCacheGetTypeID

func CVMetalTextureCacheGetTypeID() uint

CVMetalTextureCacheGetTypeID returns the Core Foundation type identifier for a Core Video Metal texture cache.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheGetTypeID()

func CVMetalTextureGetCleanTexCoords

func CVMetalTextureGetCleanTexCoords(image CVMetalTextureRef, lowerLeft unsafe.Pointer, lowerRight unsafe.Pointer, upperRight unsafe.Pointer, upperLeft unsafe.Pointer)

CVMetalTextureGetCleanTexCoords returns convenient normalized texture coordinates for the part of the image that should be displayed.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)

func CVMetalTextureGetTexture

func CVMetalTextureGetTexture(image CVMetalTextureRef) unsafe.Pointer

CVMetalTextureGetTexture returns the Metal texture object for the image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureGetTexture(_:)

func CVMetalTextureGetTypeID

func CVMetalTextureGetTypeID() uint

CVMetalTextureGetTypeID returns the Core Foundation type identifier for a CoreVideo Metal texture-based image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureGetTypeID()

func CVMetalTextureIsFlipped

func CVMetalTextureIsFlipped(image CVMetalTextureRef) bool

CVMetalTextureIsFlipped returns a Boolean value indicating whether the texture image is vertically flipped.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureIsFlipped(_:)

func CVOpenGLBufferPoolRelease

func CVOpenGLBufferPoolRelease(openGLBufferPool CVOpenGLBufferPoolRef)

CVOpenGLBufferPoolRelease releases an OpenGL buffer pool.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolRelease

func CVOpenGLBufferRelease

func CVOpenGLBufferRelease(buffer CVOpenGLBufferRef)

CVOpenGLBufferRelease releases a Core Video OpenGL buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferRelease

func CVOpenGLTextureCacheRelease

func CVOpenGLTextureCacheRelease(textureCache CVOpenGLTextureCacheRef)

CVOpenGLTextureCacheRelease releases a texture cache object.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheRelease

func CVOpenGLTextureRelease

func CVOpenGLTextureRelease(texture CVOpenGLTextureRef)

CVOpenGLTextureRelease releases a Core Video OpenGL texture.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureRelease

func CVPixelBufferGetBaseAddress

func CVPixelBufferGetBaseAddress(pixelBuffer CVPixelBufferRef) unsafe.Pointer

CVPixelBufferGetBaseAddress returns the base address of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBaseAddress(_:)

func CVPixelBufferGetBaseAddressOfPlane

func CVPixelBufferGetBaseAddressOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) unsafe.Pointer

CVPixelBufferGetBaseAddressOfPlane returns the base address of the plane at the specified plane index.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBaseAddressOfPlane(_:_:)

func CVPixelBufferGetBytesPerRow

func CVPixelBufferGetBytesPerRow(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetBytesPerRow returns the number of bytes per row of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBytesPerRow(_:)

func CVPixelBufferGetBytesPerRowOfPlane

func CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr

CVPixelBufferGetBytesPerRowOfPlane returns the number of bytes per row for a plane at the specified index in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBytesPerRowOfPlane(_:_:)

func CVPixelBufferGetDataSize

func CVPixelBufferGetDataSize(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetDataSize returns the data size for contiguous planes of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetDataSize(_:)

func CVPixelBufferGetExtendedPixels

func CVPixelBufferGetExtendedPixels(pixelBuffer CVPixelBufferRef, extraColumnsOnLeft *uintptr, extraColumnsOnRight *uintptr, extraRowsOnTop *uintptr, extraRowsOnBottom *uintptr)

CVPixelBufferGetExtendedPixels returns the amount of extended pixel padding in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetExtendedPixels(_:_:_:_:_:)

func CVPixelBufferGetHeight

func CVPixelBufferGetHeight(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetHeight returns the height of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetHeight(_:)

func CVPixelBufferGetHeightOfPlane

func CVPixelBufferGetHeightOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr

CVPixelBufferGetHeightOfPlane returns the height of the plane at planeIndex in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetHeightOfPlane(_:_:)

func CVPixelBufferGetIOSurface

func CVPixelBufferGetIOSurface(pixelBuffer CVPixelBufferRef) unsafe.Pointer

CVPixelBufferGetIOSurface returns the IOSurface backing the pixel buffer, or [NULL] if it is not backed by an IOSurface.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetIOSurface(_:)

func CVPixelBufferGetPixelFormatType

func CVPixelBufferGetPixelFormatType(pixelBuffer CVPixelBufferRef) uint32

CVPixelBufferGetPixelFormatType returns the pixel format type of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetPixelFormatType(_:)

func CVPixelBufferGetPlaneCount

func CVPixelBufferGetPlaneCount(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetPlaneCount returns number of planes of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetPlaneCount(_:)

func CVPixelBufferGetTypeID

func CVPixelBufferGetTypeID() uint

CVPixelBufferGetTypeID returns the Core Foundation type identifier of the pixel buffer type.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetTypeID()

func CVPixelBufferGetWidth

func CVPixelBufferGetWidth(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetWidth returns the width of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetWidth(_:)

func CVPixelBufferGetWidthOfPlane

func CVPixelBufferGetWidthOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr

CVPixelBufferGetWidthOfPlane returns the width of the plane at a given index in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetWidthOfPlane(_:_:)

func CVPixelBufferIsCompatibleWithAttributes

func CVPixelBufferIsCompatibleWithAttributes(pixelBuffer CVPixelBufferRef, attributes corefoundation.CFDictionaryRef) bool

CVPixelBufferIsCompatibleWithAttributes.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferIsCompatibleWithAttributes(_:_:)

func CVPixelBufferIsPlanar

func CVPixelBufferIsPlanar(pixelBuffer CVPixelBufferRef) bool

CVPixelBufferIsPlanar determines whether the pixel buffer is planar.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferIsPlanar(_:)

func CVPixelBufferPoolFlush

func CVPixelBufferPoolFlush(pool CVPixelBufferPoolRef, options CVPixelBufferPoolFlushFlags)

CVPixelBufferPoolFlush frees pixel buffers from the pool based on the options that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolFlush(_:_:)

func CVPixelBufferPoolGetAttributes

func CVPixelBufferPoolGetAttributes(pool CVPixelBufferPoolRef) corefoundation.CFDictionaryRef

CVPixelBufferPoolGetAttributes the pool attributes dictionary for a pixel buffer pool.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolGetAttributes(_:)

func CVPixelBufferPoolGetPixelBufferAttributes

func CVPixelBufferPoolGetPixelBufferAttributes(pool CVPixelBufferPoolRef) corefoundation.CFDictionaryRef

CVPixelBufferPoolGetPixelBufferAttributes the attributes of pixel buffers which the system creates using the pool you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolGetPixelBufferAttributes(_:)

func CVPixelBufferPoolGetTypeID

func CVPixelBufferPoolGetTypeID() uint

CVPixelBufferPoolGetTypeID returns the Core Foundation type identifier of the pixel buffer pool type.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolGetTypeID()

func CVPixelBufferPoolRelease

func CVPixelBufferPoolRelease(pixelBufferPool CVPixelBufferPoolRef)

CVPixelBufferPoolRelease releases a pixel buffer pool.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolRelease

func CVPixelBufferRelease

func CVPixelBufferRelease(texture CVPixelBufferRef)

CVPixelBufferRelease releases a pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferRelease

func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes

func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(allocator corefoundation.CFAllocatorRef) corefoundation.CFArrayRef

CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes returns all the pixel format descriptions known to Core Video.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(_:)

func CVPixelFormatDescriptionCreateWithPixelFormatType

func CVPixelFormatDescriptionCreateWithPixelFormatType(allocator corefoundation.CFAllocatorRef, pixelFormat uint32) corefoundation.CFDictionaryRef

CVPixelFormatDescriptionCreateWithPixelFormatType creates a pixel format description from a given [OSType] identifier.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatDescriptionCreateWithPixelFormatType(_:_:)

func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType

func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description corefoundation.CFDictionaryRef, pixelFormat uint32)

CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType registers a pixel format description with Core Video.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(_:_:)

func CVPixelFormatTypeCopyFourCharCodeString

func CVPixelFormatTypeCopyFourCharCodeString(pixelFormat uint32) corefoundation.CFStringRef

CVPixelFormatTypeCopyFourCharCodeString.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatTypeCopyFourCharCodeString(_:)

func CVTransferFunctionGetIntegerCodePointForString

func CVTransferFunctionGetIntegerCodePointForString(transferFunctionString corefoundation.CFStringRef) int

CVTransferFunctionGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video transfer function string that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVTransferFunctionGetIntegerCodePointForString(_:)

func CVTransferFunctionGetStringForIntegerCodePoint

func CVTransferFunctionGetStringForIntegerCodePoint(transferFunctionCodePoint int) corefoundation.CFStringRef

CVTransferFunctionGetStringForIntegerCodePoint returns the Core Video transfer function string corresponding to the standard integer code point that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVTransferFunctionGetStringForIntegerCodePoint(_:)

func CVYCbCrMatrixGetIntegerCodePointForString

func CVYCbCrMatrixGetIntegerCodePointForString(yCbCrMatrixString corefoundation.CFStringRef) int

CVYCbCrMatrixGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video YCbCr matrix string that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVYCbCrMatrixGetIntegerCodePointForString(_:)

func CVYCbCrMatrixGetStringForIntegerCodePoint

func CVYCbCrMatrixGetStringForIntegerCodePoint(yCbCrMatrixCodePoint int) corefoundation.CFStringRef

CVYCbCrMatrixGetStringForIntegerCodePoint returns the Core Video YCbCr matrix string corresponding to the standard integer code point that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVYCbCrMatrixGetStringForIntegerCodePoint(_:)

Types

type CVAttachmentMode

type CVAttachmentMode int

See: https://developer.apple.com/documentation/CoreVideo/CVAttachmentMode

const (
	// KCVAttachmentMode_ShouldNotPropagate: Indicates to not propagate the attachment.
	KCVAttachmentMode_ShouldNotPropagate CVAttachmentMode = 0
	// KCVAttachmentMode_ShouldPropagate: Indicates to copy the attachment.
	KCVAttachmentMode_ShouldPropagate CVAttachmentMode = 1
)

func (CVAttachmentMode) String

func (e CVAttachmentMode) String() string

type CVBufferRef

type CVBufferRef uintptr

func CVBufferRetain

func CVBufferRetain(buffer CVBufferRef) CVBufferRef

CVBufferRetain retains a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRetain

type CVDisplayLinkOutputCallback

type CVDisplayLinkOutputCallback = func(uintptr, *CVTimeStamp, *CVTimeStamp, uint64, *uint64, unsafe.Pointer) int

type CVDisplayLinkOutputHandler

type CVDisplayLinkOutputHandler = func(objectivec.IObject, *CVTimeStamp, *CVTimeStamp, uint64, *uint64) int

type CVDisplayLinkRef

type CVDisplayLinkRef uintptr

func CVDisplayLinkRetain

func CVDisplayLinkRetain(displayLink CVDisplayLinkRef) CVDisplayLinkRef

CVDisplayLinkRetain retains a display link.

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkRetain

type CVFillExtendedPixelsCallBack

type CVFillExtendedPixelsCallBack = func(uintptr, unsafe.Pointer) uint8

type CVFillExtendedPixelsCallBackData

type CVFillExtendedPixelsCallBackData struct {
	Version      int // The version of this fill algorithm.
	FillCallBack CVFillExtendedPixelsCallBack
	RefCon       unsafe.Pointer // A pointer to application-defined data that is passed to your custom pixel fill function.

}

C struct types CVFillExtendedPixelsCallBackData - A structure for holding information that describes a custom extended pixel fill algorithm.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVFillExtendedPixelsCallBackData

type CVImageBufferRef

type CVImageBufferRef uintptr

type CVMetalBufferCacheRef

type CVMetalBufferCacheRef uintptr

type CVMetalBufferRef

type CVMetalBufferRef uintptr

type CVMetalTextureCacheRef

type CVMetalTextureCacheRef uintptr

type CVMetalTextureRef

type CVMetalTextureRef uintptr

type CVOpenGLBufferPoolRef

type CVOpenGLBufferPoolRef uintptr

func CVOpenGLBufferPoolRetain

func CVOpenGLBufferPoolRetain(openGLBufferPool CVOpenGLBufferPoolRef) CVOpenGLBufferPoolRef

CVOpenGLBufferPoolRetain retains an OpenGL buffer pool.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolRetain

type CVOpenGLBufferRef

type CVOpenGLBufferRef uintptr

func CVOpenGLBufferRetain

func CVOpenGLBufferRetain(buffer CVOpenGLBufferRef) CVOpenGLBufferRef

CVOpenGLBufferRetain retains a Core Video OpenGL buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferRetain

type CVOpenGLTextureCacheRef

type CVOpenGLTextureCacheRef uintptr

func CVOpenGLTextureCacheRetain

func CVOpenGLTextureCacheRetain(textureCache CVOpenGLTextureCacheRef) CVOpenGLTextureCacheRef

CVOpenGLTextureCacheRetain retains a texture cache object.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheRetain

type CVOpenGLTextureRef

type CVOpenGLTextureRef uintptr

func CVOpenGLTextureRetain

func CVOpenGLTextureRetain(texture CVOpenGLTextureRef) CVOpenGLTextureRef

CVOpenGLTextureRetain retains a Core Video OpenGL texture.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureRetain

type CVOptionFlags

type CVOptionFlags = uint64

type CVPixelBufferLockFlags

type CVPixelBufferLockFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferLockFlags

const (
	// KCVPixelBufferLock_ReadOnly: A read-only buffer.
	KCVPixelBufferLock_ReadOnly CVPixelBufferLockFlags = 1
)

func (CVPixelBufferLockFlags) String

func (e CVPixelBufferLockFlags) String() string

type CVPixelBufferPoolFlushFlags

type CVPixelBufferPoolFlushFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolFlushFlags

const (
	// KCVPixelBufferPoolFlushExcessBuffers: The value to pass to flush all unused buffers regardless of age.
	KCVPixelBufferPoolFlushExcessBuffers CVPixelBufferPoolFlushFlags = 1
)

func (CVPixelBufferPoolFlushFlags) String

type CVPixelBufferPoolRef

type CVPixelBufferPoolRef uintptr

func CVPixelBufferPoolRetain

func CVPixelBufferPoolRetain(pixelBufferPool CVPixelBufferPoolRef) CVPixelBufferPoolRef

CVPixelBufferPoolRetain retains the pixel buffer pool that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolRetain

type CVPixelBufferRef

type CVPixelBufferRef uintptr

func CVPixelBufferRetain

func CVPixelBufferRetain(texture CVPixelBufferRef) CVPixelBufferRef

CVPixelBufferRetain retains a pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferRetain

type CVPixelBufferReleaseBytesCallback

type CVPixelBufferReleaseBytesCallback = func(unsafe.Pointer, unsafe.Pointer)

type CVPixelBufferReleasePlanarBytesCallback

type CVPixelBufferReleasePlanarBytesCallback = func(unsafe.Pointer, unsafe.Pointer, uint, uint, unsafe.Pointer)

type CVPlanarComponentInfo

type CVPlanarComponentInfo struct {
	Offset   int32  // The offset from the main base address to the base address of this plane. (big-endian)
	RowBytes uint32 // The number of bytes per row of this plane. (big-endian)

}

CVPlanarComponentInfo - A structure for describing planar components.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarComponentInfo

type CVPlanarPixelBufferInfo

type CVPlanarPixelBufferInfo struct {
	ComponentInfo CVPlanarComponentInfo // An array containing a [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure for each plane of the buffer.

}

CVPlanarPixelBufferInfo - A structure for describing planar buffers.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarPixelBufferInfo

type CVPlanarPixelBufferInfo_YCbCrBiPlanar

type CVPlanarPixelBufferInfo_YCbCrBiPlanar struct {
	ComponentInfoY    CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Y component of the buffer.
	ComponentInfoCbCr CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Cb/Cr component of the buffer.

}

CVPlanarPixelBufferInfo_YCbCrBiPlanar - A structure for describing YCbCr biplanar buffers.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarPixelBufferInfo_YCbCrBiPlanar

type CVPlanarPixelBufferInfo_YCbCrPlanar

type CVPlanarPixelBufferInfo_YCbCrPlanar struct {
	ComponentInfoY  CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Y component of the buffer.
	ComponentInfoCb CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Cb component of the buffer.
	ComponentInfoCr CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Cr component of the buffer.

}

CVPlanarPixelBufferInfo_YCbCrPlanar - A structure for describing YCbCr planar buffers.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarPixelBufferInfo_YCbCrPlanar

type CVReturn

type CVReturn = int32

func CVDisplayLinkCreateWithActiveCGDisplays deprecated

func CVDisplayLinkCreateWithActiveCGDisplays(displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithActiveCGDisplays creates a display link capable of being used with all active displays.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithActiveCGDisplays(_:)

func CVDisplayLinkCreateWithCGDisplay deprecated

func CVDisplayLinkCreateWithCGDisplay(displayID uint32, displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithCGDisplay creates a display link for a single display.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithCGDisplay(_:_:)

func CVDisplayLinkCreateWithCGDisplays deprecated

func CVDisplayLinkCreateWithCGDisplays(displayArray *uint32, count int, displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithCGDisplays creates a display link for an array of displays.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithCGDisplays(_:_:_:)

func CVDisplayLinkCreateWithOpenGLDisplayMask deprecated

func CVDisplayLinkCreateWithOpenGLDisplayMask(mask coregraphics.CGOpenGLDisplayMask, displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithOpenGLDisplayMask creates a display link from an OpenGL display mask.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithOpenGLDisplayMask(_:_:)

func CVDisplayLinkGetCurrentTime deprecated

func CVDisplayLinkGetCurrentTime(displayLink CVDisplayLinkRef, outTime *CVTimeStamp) CVReturn

CVDisplayLinkGetCurrentTime retrieves the current (“now”) time of a given display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetCurrentTime(_:_:)

func CVDisplayLinkSetCurrentCGDisplay deprecated

func CVDisplayLinkSetCurrentCGDisplay(displayLink CVDisplayLinkRef, displayID uint32) CVReturn

CVDisplayLinkSetCurrentCGDisplay sets the current display of a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetCurrentCGDisplay(_:_:)

func CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext deprecated

func CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink CVDisplayLinkRef, cglContext unsafe.Pointer, cglPixelFormat unsafe.Pointer) CVReturn

CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext selects the display link most optimal for the current renderer of an OpenGL context.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(_:_:_:)

func CVDisplayLinkSetOutputCallback deprecated

func CVDisplayLinkSetOutputCallback(displayLink CVDisplayLinkRef, callback CVDisplayLinkOutputCallback, userInfo unsafe.Pointer) CVReturn

CVDisplayLinkSetOutputCallback sets the renderer output callback function.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetOutputCallback(_:_:_:)

func CVDisplayLinkSetOutputHandler deprecated

func CVDisplayLinkSetOutputHandler(displayLink CVDisplayLinkRef, handler CVDisplayLinkOutputHandler) CVReturn

CVDisplayLinkSetOutputHandler.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetOutputHandler(_:_:)

func CVDisplayLinkStart deprecated

func CVDisplayLinkStart(displayLink CVDisplayLinkRef) CVReturn

CVDisplayLinkStart activates a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkStart(_:)

func CVDisplayLinkStop deprecated

func CVDisplayLinkStop(displayLink CVDisplayLinkRef) CVReturn

CVDisplayLinkStop stops a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkStop(_:)

func CVDisplayLinkTranslateTime deprecated

func CVDisplayLinkTranslateTime(displayLink CVDisplayLinkRef, inTime *CVTimeStamp, outTime *CVTimeStamp) CVReturn

CVDisplayLinkTranslateTime translates the time in the display link’s time base from one representation to another.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkTranslateTime(_:_:_:)

func CVMetalBufferCacheCreateBufferFromImage

func CVMetalBufferCacheCreateBufferFromImage(allocator corefoundation.CFAllocatorRef, bufferCache CVMetalBufferCacheRef, imageBuffer CVImageBufferRef, bufferOut *CVMetalBufferRef) CVReturn

CVMetalBufferCacheCreateBufferFromImage.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCacheCreateBufferFromImage(_:_:_:_:)

func CVMetalTextureCacheCreate

func CVMetalTextureCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, metalDevice unsafe.Pointer, textureAttributes corefoundation.CFDictionaryRef, cacheOut *CVMetalTextureCacheRef) CVReturn

CVMetalTextureCacheCreate creates a new texture cache.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheCreate(_:_:_:_:_:)

func CVMetalTextureCacheCreateTextureFromImage

func CVMetalTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVMetalTextureCacheRef, sourceImage CVImageBufferRef, textureAttributes corefoundation.CFDictionaryRef, pixelFormat metal.MTLPixelFormat, width uintptr, height uintptr, planeIndex uintptr, textureOut *CVMetalTextureRef) CVReturn

CVMetalTextureCacheCreateTextureFromImage creates a Core Video Metal texture buffer from an existing image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheCreateTextureFromImage(_:_:_:_:_:_:_:_:_:)

func CVPixelBufferCreate

func CVPixelBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, pixelFormatType uint32, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreate creates a single pixel buffer for a given size and pixel format.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreate(_:_:_:_:_:_:)

func CVPixelBufferCreateResolvedAttributesDictionary

func CVPixelBufferCreateResolvedAttributesDictionary(allocator corefoundation.CFAllocatorRef, attributes corefoundation.CFArrayRef, resolvedDictionaryOut *corefoundation.CFDictionaryRef) CVReturn

CVPixelBufferCreateResolvedAttributesDictionary resolves an array of [CFDictionary] objects describing various pixel buffer attributes into a single dictionary.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)

func CVPixelBufferCreateWithBytes

func CVPixelBufferCreateWithBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, pixelFormatType uint32, baseAddress unsafe.Pointer, bytesPerRow uintptr, releaseCallback CVPixelBufferReleaseBytesCallback, releaseRefCon unsafe.Pointer, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreateWithBytes creates a pixel buffer for a given size and pixel format containing data specified by a memory location.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateWithBytes(_:_:_:_:_:_:_:_:_:_:)

func CVPixelBufferCreateWithIOSurface

func CVPixelBufferCreateWithIOSurface(allocator corefoundation.CFAllocatorRef, surface unsafe.Pointer, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreateWithIOSurface creates a single pixel buffer for the IO surface that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateWithIOSurface(_:_:_:_:)

func CVPixelBufferCreateWithPlanarBytes

func CVPixelBufferCreateWithPlanarBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, pixelFormatType uint32, dataPtr unsafe.Pointer, dataSize uintptr, numberOfPlanes uintptr, planeBaseAddress unsafe.Pointer, planeWidth uintptr, planeHeight uintptr, planeBytesPerRow uintptr, releaseCallback CVPixelBufferReleasePlanarBytesCallback, releaseRefCon unsafe.Pointer, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreateWithPlanarBytes creates a single pixel buffer in planar format for a given size and pixel format containing data specified by a memory location.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateWithPlanarBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)

func CVPixelBufferFillExtendedPixels

func CVPixelBufferFillExtendedPixels(pixelBuffer CVPixelBufferRef) CVReturn

CVPixelBufferFillExtendedPixels fills the extended pixels of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferFillExtendedPixels(_:)

func CVPixelBufferLockBaseAddress

func CVPixelBufferLockBaseAddress(pixelBuffer CVPixelBufferRef, lockFlags CVPixelBufferLockFlags) CVReturn

CVPixelBufferLockBaseAddress locks the base address of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferLockBaseAddress(_:_:)

func CVPixelBufferPoolCreate

func CVPixelBufferPoolCreate(allocator corefoundation.CFAllocatorRef, poolAttributes corefoundation.CFDictionaryRef, pixelBufferAttributes corefoundation.CFDictionaryRef, poolOut *CVPixelBufferPoolRef) CVReturn

CVPixelBufferPoolCreate creates a pixel buffer pool using the allocator and attributes that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolCreate(_:_:_:_:)

func CVPixelBufferPoolCreatePixelBuffer

func CVPixelBufferPoolCreatePixelBuffer(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferPoolCreatePixelBuffer creates a pixel buffer from a pixel buffer pool, using the allocator that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolCreatePixelBuffer(_:_:_:)

func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes

func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, auxAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferPoolCreatePixelBufferWithAuxAttributes creates a new pixel buffer with auxiliary attributes from the pool.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:)

func CVPixelBufferUnlockBaseAddress

func CVPixelBufferUnlockBaseAddress(pixelBuffer CVPixelBufferRef, unlockFlags CVPixelBufferLockFlags) CVReturn

CVPixelBufferUnlockBaseAddress unlocks the base address of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferUnlockBaseAddress(_:_:)

type CVSMPTETime

type CVSMPTETime struct {
	Subframes       int16  // The number of subframes in the full message.
	SubframeDivisor int16  // The number of subframes per frame (typically, 80).
	Counter         uint32 // The total number of messages received.
	Type            uint32 // The kind of SMPTE time type.
	Flags           uint32 // A set of flags that indicate the SMPTE state.
	Hours           int16  // The number of hours in the full message.
	Minutes         int16  // The number of minutes in the full message.
	Seconds         int16  // The number of seconds in the full message.
	Frames          int16  // The number of frames in the full message.

}

CVSMPTETime - A structure for holding an SMPTE time.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVSMPTETime

type CVSMPTETimeFlags

type CVSMPTETimeFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVSMPTETimeFlags

const (
	// KCVSMPTETimeRunning: Time is running.
	KCVSMPTETimeRunning CVSMPTETimeFlags = 2
	// KCVSMPTETimeValid: The full time is valid.
	KCVSMPTETimeValid CVSMPTETimeFlags = 1
)

func (CVSMPTETimeFlags) String

func (e CVSMPTETimeFlags) String() string

type CVSMPTETimeType

type CVSMPTETimeType int

See: https://developer.apple.com/documentation/CoreVideo/CVSMPTETimeType

const (
	// KCVSMPTETimeType24: 24 frames per second (standard film).
	KCVSMPTETimeType24 CVSMPTETimeType = 0
	// KCVSMPTETimeType25: 25 frames per second (standard PAL).
	KCVSMPTETimeType25 CVSMPTETimeType = 1
	// KCVSMPTETimeType2997: 29.97 frames per second (standard NTSC).
	KCVSMPTETimeType2997 CVSMPTETimeType = 4
	// KCVSMPTETimeType2997Drop: 29.97 drop frame.
	KCVSMPTETimeType2997Drop CVSMPTETimeType = 5
	// KCVSMPTETimeType30: 30 frames per second.
	KCVSMPTETimeType30 CVSMPTETimeType = 3
	// KCVSMPTETimeType30Drop: 30 drop frame.
	KCVSMPTETimeType30Drop CVSMPTETimeType = 2
	// KCVSMPTETimeType5994: 59.94 frames per second.
	KCVSMPTETimeType5994 CVSMPTETimeType = 7
	// KCVSMPTETimeType60: 60 frames per second.
	KCVSMPTETimeType60 CVSMPTETimeType = 6
)

func (CVSMPTETimeType) String

func (e CVSMPTETimeType) String() string

type CVTime

type CVTime struct {
	TimeValue int64 // The time value.
	TimeScale int32 // The time scale for this value.
	Flags     int32 // The flags associated with the [CVTime] value. See [CVTime Values](<doc://com.apple.corevideo/documentation/CoreVideo/cvtime-values>) for possible values. If `kCVTimeIsIndefinite` is set, you should not use any of the other fields in this structure.

}

CVTime - A structure for reporting Core Video time values.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVTime

func CVDisplayLinkGetNominalOutputVideoRefreshPeriod deprecated

func CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) CVTime

CVDisplayLinkGetNominalOutputVideoRefreshPeriod retrieves the nominal refresh period of a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetNominalOutputVideoRefreshPeriod(_:)

func CVDisplayLinkGetOutputVideoLatency deprecated

func CVDisplayLinkGetOutputVideoLatency(displayLink CVDisplayLinkRef) CVTime

CVDisplayLinkGetOutputVideoLatency retrieves the nominal latency of a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetOutputVideoLatency(_:)

type CVTimeFlags

type CVTimeFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVTimeFlags

const (
	// KCVTimeIsIndefinite: The time value is unknown.
	KCVTimeIsIndefinite CVTimeFlags = 1
)

func (CVTimeFlags) String

func (e CVTimeFlags) String() string

type CVTimeStamp

type CVTimeStamp struct {
	Version            uint32  // The current [CVTimeStamp] structure is version 0. Some functions require you to specify a version when passing in a timestamp structure to be filled.
	VideoTimeScale     int32   // The scale (in units per second) of the `videoTimeScale` and `videoRefreshPeriod` fields.
	VideoTime          int64   // The start of a frame (or field for interlaced video).
	HostTime           uint64  // The system time measured by the timestamp.
	RateScalar         float64 // The current rate of the device as measured by the timestamps, divided by the nominal rate.
	VideoRefreshPeriod int64
	SmpteTime          CVSMPTETime // The SMPTE time representation of the timestamp.
	Flags              uint64      // A bit field containing additional information about the timestamp.
	Reserved           uint64      // Reserved. Do not use.

}

CVTimeStamp - A structure for defining a display timestamp.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVTimeStamp

type CVTimeStampFlags

type CVTimeStampFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVTimeStampFlags

const (
	// KCVTimeStampBottomField: The timestamp represents the bottom lines of an interlaced image.
	KCVTimeStampBottomField CVTimeStampFlags = 131072
	// KCVTimeStampHostTimeValid: The value in the host time field is valid.
	KCVTimeStampHostTimeValid CVTimeStampFlags = 2
	// KCVTimeStampIsInterlaced: A convenience constant indicating that the timestamp is for an interlaced image.
	KCVTimeStampIsInterlaced CVTimeStampFlags = 0
	// KCVTimeStampRateScalarValid: The value in the rate scalar field is valid.
	KCVTimeStampRateScalarValid CVTimeStampFlags = 16
	// KCVTimeStampSMPTETimeValid: The value in the SMPTE time field is valid.
	KCVTimeStampSMPTETimeValid CVTimeStampFlags = 4
	// KCVTimeStampTopField: The timestamp represents the top lines of an interlaced image.
	KCVTimeStampTopField CVTimeStampFlags = 65536
	// KCVTimeStampVideoHostTimeValid: A convenience constant indicating that both the video time and host time fields are valid.
	KCVTimeStampVideoHostTimeValid CVTimeStampFlags = 0
	// KCVTimeStampVideoRefreshPeriodValid: The value in the video refresh period field is valid.
	KCVTimeStampVideoRefreshPeriodValid CVTimeStampFlags = 8
	// KCVTimeStampVideoTimeValid: The value in the video time field is valid.
	KCVTimeStampVideoTimeValid CVTimeStampFlags = 1
)

func (CVTimeStampFlags) String

func (e CVTimeStampFlags) String() string

type KCVPixelFormatType

type KCVPixelFormatType uint
const (
	// KCVPixelFormatType_128RGBAFloat: 128-bit RGBA IEEE float, 32-bit little-endian samples.
	KCVPixelFormatType_128RGBAFloat KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_BGGR KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_GBRG KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_GRBG KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_RGGB KCVPixelFormatType = 0
	// KCVPixelFormatType_16BE555: 16-bit BE RGB 555.
	KCVPixelFormatType_16BE555 KCVPixelFormatType = 0
	// KCVPixelFormatType_16BE565: 16-bit BE RGB 565.
	KCVPixelFormatType_16BE565 KCVPixelFormatType = 0
	// KCVPixelFormatType_16Gray: 16-bit Grayscale, 16-bit big-endian samples, black is zero.
	KCVPixelFormatType_16Gray KCVPixelFormatType = 0
	// KCVPixelFormatType_16LE555: 16-bit LE RGB 555.
	KCVPixelFormatType_16LE555 KCVPixelFormatType = 0
	// KCVPixelFormatType_16LE5551: 16-bit LE RGB 5551.
	KCVPixelFormatType_16LE5551 KCVPixelFormatType = 0
	// KCVPixelFormatType_16LE565: 16-bit LE RGB 565.
	KCVPixelFormatType_16LE565          KCVPixelFormatType = 0
	KCVPixelFormatType_16VersatileBayer KCVPixelFormatType = 0
	// KCVPixelFormatType_1IndexedGray_WhiteIsZero: 1 bit indexed gray, white is zero.
	KCVPixelFormatType_1IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	// KCVPixelFormatType_1Monochrome: 1 bit indexed.
	KCVPixelFormatType_1Monochrome KCVPixelFormatType = 0
	// KCVPixelFormatType_24BGR: 24-bit BGR.
	KCVPixelFormatType_24BGR KCVPixelFormatType = 0
	// KCVPixelFormatType_24RGB: 24-bit RGB.
	KCVPixelFormatType_24RGB KCVPixelFormatType = 0
	// KCVPixelFormatType_2Indexed: 2-bit indexed.
	KCVPixelFormatType_2Indexed KCVPixelFormatType = 0
	// KCVPixelFormatType_2IndexedGray_WhiteIsZero: 2-bit indexed gray, white is zero.
	KCVPixelFormatType_2IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	// KCVPixelFormatType_30RGB: 30-bit RGB, 10-bit big-endian samples, 2 unused padding bits (at least significant end).
	KCVPixelFormatType_30RGB                  KCVPixelFormatType = 0
	KCVPixelFormatType_30RGBLEPackedWideGamut KCVPixelFormatType = 0
	KCVPixelFormatType_30RGBLE_8A_BiPlanar    KCVPixelFormatType = 0
	KCVPixelFormatType_30RGB_r210             KCVPixelFormatType = 0
	// KCVPixelFormatType_32ABGR: 32-bit ABGR.
	KCVPixelFormatType_32ABGR KCVPixelFormatType = 0
	// KCVPixelFormatType_32ARGB: 32-bit ARGB.
	KCVPixelFormatType_32ARGB KCVPixelFormatType = 0
	// KCVPixelFormatType_32AlphaGray: 32-bit AlphaGray, 16-bit big-endian samples, black is zero.
	KCVPixelFormatType_32AlphaGray KCVPixelFormatType = 0
	// KCVPixelFormatType_32BGRA: 32-bit BGRA.
	KCVPixelFormatType_32BGRA KCVPixelFormatType = 0
	// KCVPixelFormatType_32RGBA: 32-bit RGBA.
	KCVPixelFormatType_32RGBA                         KCVPixelFormatType = 0
	KCVPixelFormatType_40ARGBLEWideGamut              KCVPixelFormatType = 0
	KCVPixelFormatType_40ARGBLEWideGamutPremultiplied KCVPixelFormatType = 0
	KCVPixelFormatType_420YpCbCr10BiPlanarFullRange   KCVPixelFormatType = 0
	KCVPixelFormatType_420YpCbCr10BiPlanarVideoRange  KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8BiPlanarFullRange: Bi-Planar Component Y’CbCr 8-bit 4:2:0, full-range (luma=[0,255] chroma=[1,255]).
	KCVPixelFormatType_420YpCbCr8BiPlanarFullRange KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8BiPlanarVideoRange: Bi-Planar Component Y’CbCr 8-bit 4:2:0, video-range (luma=[16,235] chroma=[16,240]).
	KCVPixelFormatType_420YpCbCr8BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8Planar: Planar Component Y’CbCr 8-bit 4:2:0.
	KCVPixelFormatType_420YpCbCr8Planar KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8PlanarFullRange: Planar Component Y’CbCr 8-bit 4:2:0, full range.
	KCVPixelFormatType_420YpCbCr8PlanarFullRange         KCVPixelFormatType = 0
	KCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr10: Component Y’CbCr 10-bit 4:2:2.
	KCVPixelFormatType_422YpCbCr10                   KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr10BiPlanarFullRange  KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr10BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr16: Component Y’CbCr 10,12,14,16-bit 4:2:2.
	KCVPixelFormatType_422YpCbCr16                   KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr16BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr8: Component Y’CbCr 8-bit 4:2:2, ordered Cb Y’0 Cr Y’1.
	KCVPixelFormatType_422YpCbCr8                   KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr8BiPlanarFullRange  KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr8BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr8FullRange: Component Y’CbCr 8-bit 4:2:2, full range, ordered Y’0 Cb Y’1 Cr.
	KCVPixelFormatType_422YpCbCr8FullRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr8_yuvs: Component Y’CbCr 8-bit 4:2:2, ordered Y’0 Cb Y’1 Cr.
	KCVPixelFormatType_422YpCbCr8_yuvs KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr_4A_8BiPlanar: First plane: Video-range Component Y’CbCr 8-bit 4:2:2, ordered Cb Y’0 Cr Y’1; second plane: alpha 8-bit 0-255.
	KCVPixelFormatType_422YpCbCr_4A_8BiPlanar KCVPixelFormatType = 0
	// KCVPixelFormatType_4444AYpCbCr16: Component Y’CbCrA 16-bit 4:4:4:4, ordered A Y’ Cb Cr, full range alpha, video range Y’CbCr, 16-bit little-endian samples.
	KCVPixelFormatType_4444AYpCbCr16 KCVPixelFormatType = 0
	// KCVPixelFormatType_4444AYpCbCr8: Component Y’CbCrA 8-bit 4:4:4:4, ordered A Y’ Cb Cr, full range alpha, video range Y’CbCr.
	KCVPixelFormatType_4444AYpCbCr8     KCVPixelFormatType = 0
	KCVPixelFormatType_4444AYpCbCrFloat KCVPixelFormatType = 0
	// KCVPixelFormatType_4444YpCbCrA8: Component Y’CbCrA 8-bit 4:4:4:4, ordered Cb Y’ Cr A.
	KCVPixelFormatType_4444YpCbCrA8 KCVPixelFormatType = 0
	// KCVPixelFormatType_4444YpCbCrA8R: Component Y’CbCrA 8-bit 4:4:4:4, rendering format.
	KCVPixelFormatType_4444YpCbCrA8R KCVPixelFormatType = 0
	// KCVPixelFormatType_444YpCbCr10: Component Y’CbCr 10-bit 4:4:4.
	KCVPixelFormatType_444YpCbCr10                         KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr10BiPlanarFullRange        KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr10BiPlanarVideoRange       KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr16BiPlanarVideoRange       KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar KCVPixelFormatType = 0
	// KCVPixelFormatType_444YpCbCr8: Component Y’CbCr 8-bit 4:4:4.
	KCVPixelFormatType_444YpCbCr8                   KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr8BiPlanarFullRange  KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr8BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_48RGB: 48-bit RGB, 16-bit big-endian samples.
	KCVPixelFormatType_48RGB KCVPixelFormatType = 0
	// KCVPixelFormatType_4Indexed: 4-bit indexed.
	KCVPixelFormatType_4Indexed KCVPixelFormatType = 0
	// KCVPixelFormatType_4IndexedGray_WhiteIsZero: 4-bit indexed gray, white is zero.
	KCVPixelFormatType_4IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	// KCVPixelFormatType_64ARGB: 64-bit ARGB, 16-bit big-endian samples.
	KCVPixelFormatType_64ARGB KCVPixelFormatType = 0
	// KCVPixelFormatType_64RGBAHalf: 64-bit RGBA IEEE half-precision float, 16-bit little-endian samples.
	KCVPixelFormatType_64RGBAHalf                 KCVPixelFormatType = 0
	KCVPixelFormatType_64RGBALE                   KCVPixelFormatType = 0
	KCVPixelFormatType_64RGBA_DownscaledProResRAW KCVPixelFormatType = 0
	// KCVPixelFormatType_8Indexed: 8-bit indexed.
	KCVPixelFormatType_8Indexed KCVPixelFormatType = 0
	// KCVPixelFormatType_8IndexedGray_WhiteIsZero: 8-bit indexed gray, white is zero.
	KCVPixelFormatType_8IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	KCVPixelFormatType_96VersatileBayerPacked12 KCVPixelFormatType = 0
	KCVPixelFormatType_ARGB2101010LEPacked      KCVPixelFormatType = 0
	KCVPixelFormatType_DepthFloat16             KCVPixelFormatType = 0
	KCVPixelFormatType_DepthFloat32             KCVPixelFormatType = 0
	KCVPixelFormatType_DisparityFloat16         KCVPixelFormatType = 0
	KCVPixelFormatType_DisparityFloat32         KCVPixelFormatType = 0
	KCVPixelFormatType_OneComponent10           KCVPixelFormatType = 0
	KCVPixelFormatType_OneComponent12           KCVPixelFormatType = 0
	KCVPixelFormatType_OneComponent16           KCVPixelFormatType = 0
	// KCVPixelFormatType_OneComponent16Half: 6-bit one component IEEE half-precision float, 16-bit little-endian samples.
	KCVPixelFormatType_OneComponent16Half KCVPixelFormatType = 0
	// KCVPixelFormatType_OneComponent32Float: 32-bit one component IEEE float, 32-bit little-endian samples.
	KCVPixelFormatType_OneComponent32Float KCVPixelFormatType = 0
	// KCVPixelFormatType_OneComponent8: 8-bit one component, black is zero.
	KCVPixelFormatType_OneComponent8  KCVPixelFormatType = 0
	KCVPixelFormatType_TwoComponent16 KCVPixelFormatType = 0
	// KCVPixelFormatType_TwoComponent16Half: 16-bit two component IEEE half-precision float, 16-bit little-endian samples.
	KCVPixelFormatType_TwoComponent16Half KCVPixelFormatType = 0
	// KCVPixelFormatType_TwoComponent32Float: 32-bit two component IEEE float, 32-bit little-endian samples.
	KCVPixelFormatType_TwoComponent32Float KCVPixelFormatType = 0
	// KCVPixelFormatType_TwoComponent8: 8-bit two component, black is zero.
	KCVPixelFormatType_TwoComponent8 KCVPixelFormatType = 0
)

func (KCVPixelFormatType) String

func (e KCVPixelFormatType) String() string

type KCVReturn

type KCVReturn uint
const (
	// KCVReturnAllocationFailed: Memory allocation for a buffer or buffer pool failed.
	KCVReturnAllocationFailed KCVReturn = 0
	// KCVReturnDisplayLinkAlreadyRunning: The specified display link is already running.
	KCVReturnDisplayLinkAlreadyRunning KCVReturn = 0
	// KCVReturnDisplayLinkCallbacksNotSet: No callback registered for the specified display link.
	KCVReturnDisplayLinkCallbacksNotSet KCVReturn = 0
	// KCVReturnDisplayLinkNotRunning: The specified display link is not running.
	KCVReturnDisplayLinkNotRunning KCVReturn = 0
	// KCVReturnError: An otherwise undefined error occurred.
	KCVReturnError KCVReturn = 0
	// KCVReturnFirst: Placeholder to mark the beginning of Core Video result codes (not returned by any functions).
	KCVReturnFirst KCVReturn = 0
	// KCVReturnInvalidArgument: Invalid function parameter.
	KCVReturnInvalidArgument KCVReturn = 0
	// KCVReturnInvalidDisplay: The display specified when creating a display link is invalid.
	KCVReturnInvalidDisplay KCVReturn = 0
	// KCVReturnInvalidPixelBufferAttributes: A buffer cannot be created with the specified attributes.
	KCVReturnInvalidPixelBufferAttributes KCVReturn = 0
	// KCVReturnInvalidPixelFormat: The buffer does not support the specified pixel format.
	KCVReturnInvalidPixelFormat KCVReturn = 0
	// KCVReturnInvalidPoolAttributes: A buffer pool cannot be created with the specified attributes.
	KCVReturnInvalidPoolAttributes KCVReturn = 0
	// KCVReturnInvalidSize: The buffer cannot support the requested buffer size (usually too big).
	KCVReturnInvalidSize KCVReturn = 0
	// KCVReturnLast: Placeholder to mark the end of Core Video result codes (not returned by any functions).
	KCVReturnLast KCVReturn = 0
	// KCVReturnPixelBufferNotMetalCompatible: The pixel buffer is not compatible with Metal due to an unsupported buffer size, pixel format, or attribute.
	KCVReturnPixelBufferNotMetalCompatible KCVReturn = 0
	// KCVReturnPixelBufferNotOpenGLCompatible: The pixel buffer is not compatible with OpenGL due to an unsupported buffer size, pixel format, or attribute.
	KCVReturnPixelBufferNotOpenGLCompatible KCVReturn = 0
	// KCVReturnPoolAllocationFailed: Allocation for a buffer pool failed, most likely due to a lack of resources.
	KCVReturnPoolAllocationFailed KCVReturn = 0
	// KCVReturnRetry: A scan hasn’t completely traversed the [CVBufferPool] due to a concurrent operation.
	KCVReturnRetry KCVReturn = 0
	// KCVReturnSuccess: Indicates the operation completed successfully.
	KCVReturnSuccess     KCVReturn = 0
	KCVReturnUnsupported KCVReturn = 0
	// KCVReturnWouldExceedAllocationThreshold: Allocation for a pixel buffer failed because the threshold value set for the kCVPixelBufferPoolAllocationThresholdKey key in the CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:) function would be surpassed.
	KCVReturnWouldExceedAllocationThreshold KCVReturn = 0
)

func (KCVReturn) String

func (e KCVReturn) String() string

type KcvpixelformattypeLossless

type KcvpixelformattypeLossless uint
const (
	KCVPixelFormatType_Lossless_30RGBLEPackedWideGamut              KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar                 KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_32BGRA                              KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange  KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange         KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange        KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_64RGBAHalf                          KcvpixelformattypeLossless = 0
)

func (KcvpixelformattypeLossless) String

type KcvpixelformattypeLossy

type KcvpixelformattypeLossy uint
const (
	KCVPixelFormatType_Lossy_32BGRA                              KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange         KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange        KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossy = 0
)

func (KcvpixelformattypeLossy) String

func (e KcvpixelformattypeLossy) String() string

type KcvversatilebayerBayerpattern

type KcvversatilebayerBayerpattern uint
const (
	KCVVersatileBayer_BayerPattern_BGGR KcvversatilebayerBayerpattern = 3
	KCVVersatileBayer_BayerPattern_GBRG KcvversatilebayerBayerpattern = 2
	KCVVersatileBayer_BayerPattern_GRBG KcvversatilebayerBayerpattern = 1
	KCVVersatileBayer_BayerPattern_RGGB KcvversatilebayerBayerpattern = 0
)

func (KcvversatilebayerBayerpattern) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL