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 ¶
- CVBuffer: An abstract base class that defines how to interact with data buffers. (CVAttachmentMode)
- CVPixelBuffer: An image buffer that holds pixels in main memory. (CVPixelBufferLockFlags, CVPlanarComponentInfo, CVPlanarPixelBufferInfo, CVPlanarPixelBufferInfo_YCbCrPlanar, CVPlanarPixelBufferInfo_YCbCrBiPlanar)
- CVPixelBufferPool: A utility object for managing a recyclable set of pixel buffer objects. (CVPixelBufferPoolFlushFlags)
- CVPixelFormatDescription: An API that provides functions and types for defining custom pixel formats. (CVFillExtendedPixelsCallBackData, CVFillExtendedPixelsCallBack)
Time Management ¶
- CVTime: A structure used for storing Core Video time values. (CVTime, CVSMPTETime, CVSMPTETimeType, CVSMPTETimeFlags, CVTimeFlags)
- CVDisplayLink: A high-priority thread that notifies your app when a given display will need each frame. (CVDisplayLinkOutputHandler, CVOptionFlags, CVDisplayLinkOutputCallback, CVDisplayLinkOutputHandler)
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)
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
Functions ¶
- CVMetalBufferCacheCreate
- CVMetalBufferCacheCreateBufferFromImage
- CVMetalBufferCacheFlush
- CVMetalBufferCacheGetTypeID
- CVMetalBufferGetBuffer
- CVMetalBufferGetTypeID
- CVPixelBufferIsCompatibleWithAttributes
- CVPixelFormatTypeCopyFourCharCodeString
Type Aliases ¶
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func BindFunc(fptr any, name string) (err error)
- func CVBufferCopyAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, ...) corefoundation.CFTypeRef
- func CVBufferCopyAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) corefoundation.CFDictionaryRef
- func CVBufferGetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, ...) corefoundation.CFTypeRefdeprecated
- func CVBufferGetAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) corefoundation.CFDictionaryRefdeprecated
- func CVBufferHasAttachment(buffer CVBufferRef, key corefoundation.CFStringRef) bool
- func CVBufferPropagateAttachments(sourceBuffer CVBufferRef, destinationBuffer CVBufferRef)
- func CVBufferRelease(buffer CVBufferRef)
- func CVBufferRemoveAllAttachments(buffer CVBufferRef)
- func CVBufferRemoveAttachment(buffer CVBufferRef, key corefoundation.CFStringRef)
- func CVBufferSetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, ...)
- func CVBufferSetAttachments(buffer CVBufferRef, theAttachments corefoundation.CFDictionaryRef, ...)
- func CVColorPrimariesGetIntegerCodePointForString(colorPrimariesString corefoundation.CFStringRef) int32
- func CVColorPrimariesGetStringForIntegerCodePoint(colorPrimariesCodePoint int32) corefoundation.CFStringRef
- func CVDisplayLinkGetActualOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) float64deprecated
- func CVDisplayLinkGetCurrentCGDisplay(displayLink CVDisplayLinkRef) uint32deprecated
- func CVDisplayLinkGetTypeID() uintdeprecated
- func CVDisplayLinkIsRunning(displayLink CVDisplayLinkRef) booldeprecated
- func CVDisplayLinkRelease(displayLink CVDisplayLinkRef)deprecated
- func CVGetCurrentHostTime() uint64
- func CVGetHostClockFrequency() float64
- func CVGetHostClockMinimumTimeDelta() uint32
- func CVImageBufferCreateColorSpaceFromAttachments(attachments corefoundation.CFDictionaryRef) coregraphics.CGColorSpaceRef
- func CVImageBufferGetCleanRect(imageBuffer CVImageBufferRef) corefoundation.CGRect
- func CVImageBufferGetColorSpace(imageBuffer CVImageBufferRef) coregraphics.CGColorSpaceRef
- func CVImageBufferGetDisplaySize(imageBuffer CVImageBufferRef) corefoundation.CGSize
- func CVImageBufferGetEncodedSize(imageBuffer CVImageBufferRef) corefoundation.CGSize
- func CVImageBufferIsFlipped(imageBuffer CVImageBufferRef) bool
- func CVIsCompressedPixelFormatAvailable(pixelFormatType uint32) bool
- func CVMetalBufferCacheFlush(bufferCache CVMetalBufferCacheRef, options CVOptionFlags)
- func CVMetalBufferCacheGetTypeID() uint
- func CVMetalBufferGetBuffer(buffer CVMetalBufferRef) metal.MTLBufferObject
- func CVMetalBufferGetTypeID() uint
- func CVMetalTextureCacheFlush(textureCache CVMetalTextureCacheRef, options CVOptionFlags)
- func CVMetalTextureCacheGetTypeID() uint
- func CVMetalTextureGetCleanTexCoords(image CVMetalTextureRef, lowerLeft unsafe.Pointer, lowerRight unsafe.Pointer, ...)
- func CVMetalTextureGetTexture(image CVMetalTextureRef) metal.MTLTextureObject
- func CVMetalTextureGetTypeID() uint
- func CVMetalTextureIsFlipped(image CVMetalTextureRef) bool
- func CVOpenGLBufferGetAttributes(openGLBuffer CVOpenGLBufferRef) corefoundation.CFDictionaryRefdeprecated
- func CVOpenGLBufferGetTypeID() uintdeprecated
- func CVOpenGLBufferPoolGetAttributes(pool CVOpenGLBufferPoolRef) corefoundation.CFDictionaryRefdeprecated
- func CVOpenGLBufferPoolGetOpenGLBufferAttributes(pool CVOpenGLBufferPoolRef) corefoundation.CFDictionaryRefdeprecated
- func CVOpenGLBufferPoolGetTypeID() uintdeprecated
- func CVOpenGLBufferPoolRelease(openGLBufferPool CVOpenGLBufferPoolRef)deprecated
- func CVOpenGLBufferRelease(buffer CVOpenGLBufferRef)deprecated
- func CVOpenGLTextureCacheFlush(textureCache CVOpenGLTextureCacheRef, options CVOptionFlags)deprecated
- func CVOpenGLTextureCacheGetTypeID() uintdeprecated
- func CVOpenGLTextureCacheRelease(textureCache CVOpenGLTextureCacheRef)deprecated
- func CVOpenGLTextureGetCleanTexCoords(image CVOpenGLTextureRef, lowerLeft float32, lowerRight float32, ...)deprecated
- func CVOpenGLTextureGetName(image CVOpenGLTextureRef) uint32deprecated
- func CVOpenGLTextureGetTarget(image CVOpenGLTextureRef) uint32deprecated
- func CVOpenGLTextureGetTypeID() uintdeprecated
- func CVOpenGLTextureIsFlipped(image CVOpenGLTextureRef) booldeprecated
- func CVOpenGLTextureRelease(texture CVOpenGLTextureRef)deprecated
- func CVPixelBufferCopyCreationAttributes(pixelBuffer CVPixelBufferRef) corefoundation.CFDictionaryRef
- func CVPixelBufferGetBaseAddress(pixelBuffer CVPixelBufferRef) unsafe.Pointer
- func CVPixelBufferGetBaseAddressOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) unsafe.Pointer
- func CVPixelBufferGetBytesPerRow(pixelBuffer CVPixelBufferRef) uintptr
- func CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr
- func CVPixelBufferGetDataSize(pixelBuffer CVPixelBufferRef) uintptr
- func CVPixelBufferGetExtendedPixels(pixelBuffer CVPixelBufferRef, extraColumnsOnLeft *uintptr, ...)
- func CVPixelBufferGetHeight(pixelBuffer CVPixelBufferRef) uintptr
- func CVPixelBufferGetHeightOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr
- func CVPixelBufferGetIOSurface(pixelBuffer CVPixelBufferRef) unsafe.Pointer
- func CVPixelBufferGetPixelFormatType(pixelBuffer CVPixelBufferRef) uint32
- func CVPixelBufferGetPlaneCount(pixelBuffer CVPixelBufferRef) uintptr
- func CVPixelBufferGetTypeID() uint
- func CVPixelBufferGetWidth(pixelBuffer CVPixelBufferRef) uintptr
- func CVPixelBufferGetWidthOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr
- func CVPixelBufferIsCompatibleWithAttributes(pixelBuffer CVPixelBufferRef, attributes corefoundation.CFDictionaryRef) bool
- func CVPixelBufferIsPlanar(pixelBuffer CVPixelBufferRef) bool
- func CVPixelBufferPoolFlush(pool CVPixelBufferPoolRef, options CVPixelBufferPoolFlushFlags)
- func CVPixelBufferPoolGetAttributes(pool CVPixelBufferPoolRef) corefoundation.CFDictionaryRef
- func CVPixelBufferPoolGetPixelBufferAttributes(pool CVPixelBufferPoolRef) corefoundation.CFDictionaryRef
- func CVPixelBufferPoolGetTypeID() uint
- func CVPixelBufferPoolRelease(pixelBufferPool CVPixelBufferPoolRef)
- func CVPixelBufferRelease(texture CVPixelBufferRef)
- func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(allocator corefoundation.CFAllocatorRef) corefoundation.CFArrayRef
- func CVPixelFormatDescriptionCreateWithPixelFormatType(allocator corefoundation.CFAllocatorRef, pixelFormat uint32) corefoundation.CFDictionaryRef
- func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description corefoundation.CFDictionaryRef, pixelFormat uint32)
- func CVPixelFormatTypeCopyFourCharCodeString(pixelFormat uint32) corefoundation.CFStringRef
- func CVTransferFunctionGetIntegerCodePointForString(transferFunctionString corefoundation.CFStringRef) int32
- func CVTransferFunctionGetStringForIntegerCodePoint(transferFunctionCodePoint int32) corefoundation.CFStringRef
- func CVYCbCrMatrixGetIntegerCodePointForString(yCbCrMatrixString corefoundation.CFStringRef) int32
- func CVYCbCrMatrixGetStringForIntegerCodePoint(yCbCrMatrixCodePoint int32) corefoundation.CFStringRef
- func SymbolAddress(name string) (uintptr, error)
- func TryCVBufferCopyAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, ...) (corefoundation.CFTypeRef, error)
- func TryCVBufferCopyAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) (corefoundation.CFDictionaryRef, error)
- func TryCVBufferGetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, ...) (corefoundation.CFTypeRef, error)
- func TryCVBufferGetAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) (corefoundation.CFDictionaryRef, error)
- func TryCVBufferHasAttachment(buffer CVBufferRef, key corefoundation.CFStringRef) (bool, error)
- func TryCVBufferPropagateAttachments(sourceBuffer CVBufferRef, destinationBuffer CVBufferRef) error
- func TryCVBufferRelease(buffer CVBufferRef) error
- func TryCVBufferRemoveAllAttachments(buffer CVBufferRef) error
- func TryCVBufferRemoveAttachment(buffer CVBufferRef, key corefoundation.CFStringRef) error
- func TryCVBufferSetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, ...) error
- func TryCVBufferSetAttachments(buffer CVBufferRef, theAttachments corefoundation.CFDictionaryRef, ...) error
- func TryCVColorPrimariesGetIntegerCodePointForString(colorPrimariesString corefoundation.CFStringRef) (int32, error)
- func TryCVColorPrimariesGetStringForIntegerCodePoint(colorPrimariesCodePoint int32) (corefoundation.CFStringRef, error)
- func TryCVDisplayLinkGetActualOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) (float64, error)
- func TryCVDisplayLinkGetCurrentCGDisplay(displayLink CVDisplayLinkRef) (uint32, error)
- func TryCVDisplayLinkGetTypeID() (uint, error)
- func TryCVDisplayLinkIsRunning(displayLink CVDisplayLinkRef) (bool, error)
- func TryCVDisplayLinkRelease(displayLink CVDisplayLinkRef) error
- func TryCVGetCurrentHostTime() (uint64, error)
- func TryCVGetHostClockFrequency() (float64, error)
- func TryCVGetHostClockMinimumTimeDelta() (uint32, error)
- func TryCVImageBufferCreateColorSpaceFromAttachments(attachments corefoundation.CFDictionaryRef) (coregraphics.CGColorSpaceRef, error)
- func TryCVImageBufferGetCleanRect(imageBuffer CVImageBufferRef) (corefoundation.CGRect, error)
- func TryCVImageBufferGetColorSpace(imageBuffer CVImageBufferRef) (coregraphics.CGColorSpaceRef, error)
- func TryCVImageBufferGetDisplaySize(imageBuffer CVImageBufferRef) (corefoundation.CGSize, error)
- func TryCVImageBufferGetEncodedSize(imageBuffer CVImageBufferRef) (corefoundation.CGSize, error)
- func TryCVImageBufferIsFlipped(imageBuffer CVImageBufferRef) (bool, error)
- func TryCVIsCompressedPixelFormatAvailable(pixelFormatType uint32) (bool, error)
- func TryCVMetalBufferCacheFlush(bufferCache CVMetalBufferCacheRef, options CVOptionFlags) error
- func TryCVMetalBufferCacheGetTypeID() (uint, error)
- func TryCVMetalBufferGetBuffer(buffer CVMetalBufferRef) (metal.MTLBufferObject, error)
- func TryCVMetalBufferGetTypeID() (uint, error)
- func TryCVMetalTextureCacheFlush(textureCache CVMetalTextureCacheRef, options CVOptionFlags) error
- func TryCVMetalTextureCacheGetTypeID() (uint, error)
- func TryCVMetalTextureGetCleanTexCoords(image CVMetalTextureRef, lowerLeft unsafe.Pointer, lowerRight unsafe.Pointer, ...) error
- func TryCVMetalTextureGetTexture(image CVMetalTextureRef) (metal.MTLTextureObject, error)
- func TryCVMetalTextureGetTypeID() (uint, error)
- func TryCVMetalTextureIsFlipped(image CVMetalTextureRef) (bool, error)
- func TryCVOpenGLBufferGetAttributes(openGLBuffer CVOpenGLBufferRef) (corefoundation.CFDictionaryRef, error)
- func TryCVOpenGLBufferGetTypeID() (uint, error)
- func TryCVOpenGLBufferPoolGetAttributes(pool CVOpenGLBufferPoolRef) (corefoundation.CFDictionaryRef, error)
- func TryCVOpenGLBufferPoolGetOpenGLBufferAttributes(pool CVOpenGLBufferPoolRef) (corefoundation.CFDictionaryRef, error)
- func TryCVOpenGLBufferPoolGetTypeID() (uint, error)
- func TryCVOpenGLBufferPoolRelease(openGLBufferPool CVOpenGLBufferPoolRef) error
- func TryCVOpenGLBufferRelease(buffer CVOpenGLBufferRef) error
- func TryCVOpenGLTextureCacheFlush(textureCache CVOpenGLTextureCacheRef, options CVOptionFlags) error
- func TryCVOpenGLTextureCacheGetTypeID() (uint, error)
- func TryCVOpenGLTextureCacheRelease(textureCache CVOpenGLTextureCacheRef) error
- func TryCVOpenGLTextureGetCleanTexCoords(image CVOpenGLTextureRef, lowerLeft float32, lowerRight float32, ...) error
- func TryCVOpenGLTextureGetName(image CVOpenGLTextureRef) (uint32, error)
- func TryCVOpenGLTextureGetTarget(image CVOpenGLTextureRef) (uint32, error)
- func TryCVOpenGLTextureGetTypeID() (uint, error)
- func TryCVOpenGLTextureIsFlipped(image CVOpenGLTextureRef) (bool, error)
- func TryCVOpenGLTextureRelease(texture CVOpenGLTextureRef) error
- func TryCVPixelBufferCopyCreationAttributes(pixelBuffer CVPixelBufferRef) (corefoundation.CFDictionaryRef, error)
- func TryCVPixelBufferGetBaseAddress(pixelBuffer CVPixelBufferRef) (unsafe.Pointer, error)
- func TryCVPixelBufferGetBaseAddressOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (unsafe.Pointer, error)
- func TryCVPixelBufferGetBytesPerRow(pixelBuffer CVPixelBufferRef) (uintptr, error)
- func TryCVPixelBufferGetBytesPerRowOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (uintptr, error)
- func TryCVPixelBufferGetDataSize(pixelBuffer CVPixelBufferRef) (uintptr, error)
- func TryCVPixelBufferGetExtendedPixels(pixelBuffer CVPixelBufferRef, extraColumnsOnLeft *uintptr, ...) error
- func TryCVPixelBufferGetHeight(pixelBuffer CVPixelBufferRef) (uintptr, error)
- func TryCVPixelBufferGetHeightOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (uintptr, error)
- func TryCVPixelBufferGetIOSurface(pixelBuffer CVPixelBufferRef) (unsafe.Pointer, error)
- func TryCVPixelBufferGetPixelFormatType(pixelBuffer CVPixelBufferRef) (uint32, error)
- func TryCVPixelBufferGetPlaneCount(pixelBuffer CVPixelBufferRef) (uintptr, error)
- func TryCVPixelBufferGetTypeID() (uint, error)
- func TryCVPixelBufferGetWidth(pixelBuffer CVPixelBufferRef) (uintptr, error)
- func TryCVPixelBufferGetWidthOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (uintptr, error)
- func TryCVPixelBufferIsCompatibleWithAttributes(pixelBuffer CVPixelBufferRef, attributes corefoundation.CFDictionaryRef) (bool, error)
- func TryCVPixelBufferIsPlanar(pixelBuffer CVPixelBufferRef) (bool, error)
- func TryCVPixelBufferPoolFlush(pool CVPixelBufferPoolRef, options CVPixelBufferPoolFlushFlags) error
- func TryCVPixelBufferPoolGetAttributes(pool CVPixelBufferPoolRef) (corefoundation.CFDictionaryRef, error)
- func TryCVPixelBufferPoolGetPixelBufferAttributes(pool CVPixelBufferPoolRef) (corefoundation.CFDictionaryRef, error)
- func TryCVPixelBufferPoolGetTypeID() (uint, error)
- func TryCVPixelBufferPoolRelease(pixelBufferPool CVPixelBufferPoolRef) error
- func TryCVPixelBufferRelease(texture CVPixelBufferRef) error
- func TryCVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(allocator corefoundation.CFAllocatorRef) (corefoundation.CFArrayRef, error)
- func TryCVPixelFormatDescriptionCreateWithPixelFormatType(allocator corefoundation.CFAllocatorRef, pixelFormat uint32) (corefoundation.CFDictionaryRef, error)
- func TryCVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description corefoundation.CFDictionaryRef, pixelFormat uint32) error
- func TryCVPixelFormatTypeCopyFourCharCodeString(pixelFormat uint32) (corefoundation.CFStringRef, error)
- func TryCVTransferFunctionGetIntegerCodePointForString(transferFunctionString corefoundation.CFStringRef) (int32, error)
- func TryCVTransferFunctionGetStringForIntegerCodePoint(transferFunctionCodePoint int32) (corefoundation.CFStringRef, error)
- func TryCVYCbCrMatrixGetIntegerCodePointForString(yCbCrMatrixString corefoundation.CFStringRef) (int32, error)
- func TryCVYCbCrMatrixGetStringForIntegerCodePoint(yCbCrMatrixCodePoint int32) (corefoundation.CFStringRef, error)
- type CVAttachmentMode
- type CVBufferRef
- type CVDisplayLinkOutputCallback
- type CVDisplayLinkOutputHandler
- type CVDisplayLinkRef
- type CVFillExtendedPixelsCallBack
- type CVFillExtendedPixelsCallBackData
- type CVImageBufferRef
- type CVMetalBufferCacheRef
- type CVMetalBufferRef
- type CVMetalTextureCacheRef
- type CVMetalTextureRef
- type CVOpenGLBufferPoolRef
- type CVOpenGLBufferRef
- type CVOpenGLTextureCacheRef
- type CVOpenGLTextureRef
- type CVOptionFlags
- type CVPixelBufferLockFlags
- type CVPixelBufferPoolFlushFlags
- type CVPixelBufferPoolRef
- type CVPixelBufferRef
- type CVPixelBufferReleaseBytesCallback
- type CVPixelBufferReleasePlanarBytesCallback
- type CVPlanarComponentInfo
- type CVPlanarPixelBufferInfo
- type CVPlanarPixelBufferInfo_YCbCrBiPlanar
- type CVPlanarPixelBufferInfo_YCbCrPlanar
- type CVReturn
- func CVDisplayLinkCreateWithActiveCGDisplays(displayLinkOut *CVDisplayLinkRef) CVReturndeprecated
- func CVDisplayLinkCreateWithCGDisplay(displayID uint32, displayLinkOut *CVDisplayLinkRef) CVReturndeprecated
- func CVDisplayLinkCreateWithCGDisplays(displayArray *uint32, count int, displayLinkOut *CVDisplayLinkRef) CVReturndeprecated
- func CVDisplayLinkCreateWithOpenGLDisplayMask(mask uint32, displayLinkOut *CVDisplayLinkRef) CVReturndeprecated
- func CVDisplayLinkGetCurrentTime(displayLink CVDisplayLinkRef, outTime *CVTimeStamp) CVReturndeprecated
- func CVDisplayLinkSetCurrentCGDisplay(displayLink CVDisplayLinkRef, displayID uint32) CVReturndeprecated
- func CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink CVDisplayLinkRef, cglContext unsafe.Pointer, ...) CVReturndeprecated
- func CVDisplayLinkSetOutputCallback(displayLink CVDisplayLinkRef, callback CVDisplayLinkOutputCallback, ...) CVReturndeprecated
- func CVDisplayLinkSetOutputHandler(displayLink CVDisplayLinkRef, handler CVDisplayLinkOutputHandler) CVReturndeprecated
- func CVDisplayLinkStart(displayLink CVDisplayLinkRef) CVReturndeprecated
- func CVDisplayLinkStop(displayLink CVDisplayLinkRef) CVReturndeprecated
- func CVDisplayLinkTranslateTime(displayLink CVDisplayLinkRef, inTime *CVTimeStamp, outTime *CVTimeStamp) CVReturndeprecated
- func CVMetalBufferCacheCreate(allocator corefoundation.CFAllocatorRef, ...) CVReturn
- func CVMetalBufferCacheCreateBufferFromImage(allocator corefoundation.CFAllocatorRef, bufferCache CVMetalBufferCacheRef, ...) CVReturn
- func CVMetalTextureCacheCreate(allocator corefoundation.CFAllocatorRef, ...) CVReturn
- func CVMetalTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVMetalTextureCacheRef, ...) CVReturn
- func CVOpenGLBufferAttach(openGLBuffer CVOpenGLBufferRef, cglContext unsafe.Pointer, face uint32, ...) CVReturndeprecated
- func CVOpenGLBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) CVReturndeprecated
- func CVOpenGLBufferPoolCreate(allocator corefoundation.CFAllocatorRef, ...) CVReturndeprecated
- func CVOpenGLBufferPoolCreateOpenGLBuffer(allocator corefoundation.CFAllocatorRef, ...) CVReturndeprecated
- func CVOpenGLTextureCacheCreate(allocator corefoundation.CFAllocatorRef, ...) CVReturndeprecated
- func CVOpenGLTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVOpenGLTextureCacheRef, ...) CVReturndeprecated
- func CVPixelBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) CVReturn
- func CVPixelBufferCreateResolvedAttributesDictionary(allocator corefoundation.CFAllocatorRef, attributes corefoundation.CFArrayRef, ...) CVReturn
- func CVPixelBufferCreateWithBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) CVReturn
- func CVPixelBufferCreateWithIOSurface(allocator corefoundation.CFAllocatorRef, surface unsafe.Pointer, ...) CVReturn
- func CVPixelBufferCreateWithPlanarBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) CVReturn
- func CVPixelBufferFillExtendedPixels(pixelBuffer CVPixelBufferRef) CVReturn
- func CVPixelBufferLockBaseAddress(pixelBuffer CVPixelBufferRef, lockFlags CVPixelBufferLockFlags) CVReturn
- func CVPixelBufferPoolCreate(allocator corefoundation.CFAllocatorRef, ...) CVReturn
- func CVPixelBufferPoolCreatePixelBuffer(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, ...) CVReturn
- func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, ...) CVReturn
- func CVPixelBufferUnlockBaseAddress(pixelBuffer CVPixelBufferRef, unlockFlags CVPixelBufferLockFlags) CVReturn
- func TryCVDisplayLinkCreateWithActiveCGDisplays(displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
- func TryCVDisplayLinkCreateWithCGDisplay(displayID uint32, displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
- func TryCVDisplayLinkCreateWithCGDisplays(displayArray *uint32, count int, displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
- func TryCVDisplayLinkCreateWithOpenGLDisplayMask(mask uint32, displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
- func TryCVDisplayLinkGetCurrentTime(displayLink CVDisplayLinkRef, outTime *CVTimeStamp) (CVReturn, error)
- func TryCVDisplayLinkSetCurrentCGDisplay(displayLink CVDisplayLinkRef, displayID uint32) (CVReturn, error)
- func TryCVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink CVDisplayLinkRef, cglContext unsafe.Pointer, ...) (CVReturn, error)
- func TryCVDisplayLinkSetOutputCallback(displayLink CVDisplayLinkRef, callback CVDisplayLinkOutputCallback, ...) (CVReturn, error)
- func TryCVDisplayLinkSetOutputHandler(displayLink CVDisplayLinkRef, handler CVDisplayLinkOutputHandler) (CVReturn, error)
- func TryCVDisplayLinkStart(displayLink CVDisplayLinkRef) (CVReturn, error)
- func TryCVDisplayLinkStop(displayLink CVDisplayLinkRef) (CVReturn, error)
- func TryCVDisplayLinkTranslateTime(displayLink CVDisplayLinkRef, inTime *CVTimeStamp, outTime *CVTimeStamp) (CVReturn, error)
- func TryCVMetalBufferCacheCreate(allocator corefoundation.CFAllocatorRef, ...) (CVReturn, error)
- func TryCVMetalBufferCacheCreateBufferFromImage(allocator corefoundation.CFAllocatorRef, bufferCache CVMetalBufferCacheRef, ...) (CVReturn, error)
- func TryCVMetalTextureCacheCreate(allocator corefoundation.CFAllocatorRef, ...) (CVReturn, error)
- func TryCVMetalTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVMetalTextureCacheRef, ...) (CVReturn, error)
- func TryCVOpenGLBufferAttach(openGLBuffer CVOpenGLBufferRef, cglContext unsafe.Pointer, face uint32, ...) (CVReturn, error)
- func TryCVOpenGLBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) (CVReturn, error)
- func TryCVOpenGLBufferPoolCreate(allocator corefoundation.CFAllocatorRef, ...) (CVReturn, error)
- func TryCVOpenGLBufferPoolCreateOpenGLBuffer(allocator corefoundation.CFAllocatorRef, ...) (CVReturn, error)
- func TryCVOpenGLTextureCacheCreate(allocator corefoundation.CFAllocatorRef, ...) (CVReturn, error)
- func TryCVOpenGLTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVOpenGLTextureCacheRef, ...) (CVReturn, error)
- func TryCVPixelBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) (CVReturn, error)
- func TryCVPixelBufferCreateResolvedAttributesDictionary(allocator corefoundation.CFAllocatorRef, attributes corefoundation.CFArrayRef, ...) (CVReturn, error)
- func TryCVPixelBufferCreateWithBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) (CVReturn, error)
- func TryCVPixelBufferCreateWithIOSurface(allocator corefoundation.CFAllocatorRef, surface unsafe.Pointer, ...) (CVReturn, error)
- func TryCVPixelBufferCreateWithPlanarBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, ...) (CVReturn, error)
- func TryCVPixelBufferFillExtendedPixels(pixelBuffer CVPixelBufferRef) (CVReturn, error)
- func TryCVPixelBufferLockBaseAddress(pixelBuffer CVPixelBufferRef, lockFlags CVPixelBufferLockFlags) (CVReturn, error)
- func TryCVPixelBufferPoolCreate(allocator corefoundation.CFAllocatorRef, ...) (CVReturn, error)
- func TryCVPixelBufferPoolCreatePixelBuffer(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, ...) (CVReturn, error)
- func TryCVPixelBufferPoolCreatePixelBufferWithAuxAttributes(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, ...) (CVReturn, error)
- func TryCVPixelBufferUnlockBaseAddress(pixelBuffer CVPixelBufferRef, unlockFlags CVPixelBufferLockFlags) (CVReturn, error)
- type CVSMPTETime
- type CVSMPTETimeFlags
- type CVSMPTETimeType
- type CVTime
- func CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) CVTimedeprecated
- func CVDisplayLinkGetOutputVideoLatency(displayLink CVDisplayLinkRef) CVTimedeprecated
- func TryCVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) (CVTime, error)
- func TryCVDisplayLinkGetOutputVideoLatency(displayLink CVDisplayLinkRef) (CVTime, error)
- type CVTimeFlags
- type CVTimeStamp
- type CVTimeStampFlags
- type KCVPixelFormatType
- type KcvpixelformattypeLossless
- type KcvpixelformattypeLossy
- type KcvversatilebayerBayerpattern
Constants ¶
const ( // CVPixelFormatOneComponent16Half is kCVPixelFormatType_OneComponent16Half ('L00h'). // 16-bit one component IEEE half-precision float. CVPixelFormatOneComponent16Half uint32 = 0x4C303068 // CVPixelFormatOneComponent32Float is kCVPixelFormatType_OneComponent32Float ('L00f'). // 32-bit one component IEEE float. CVPixelFormatOneComponent32Float uint32 = 0x4C303066 )
Corrected FourCharCode values for pixel format constants. The generated enums.gen.go has these as 0 due to a codegen bug with anonymous enum FourCC parsing (fixed in appledocs d5f96cd08d, pending regeneration).
Variables ¶
var ( // KCVBufferMovieTimeKey is the movie time associated with the buffer. Generally only available for frames emitted by QuickTime (type [CFDictionary] containing the [kCVBufferTimeValueKey] and [kCVBufferTimeScaleKey] keys). // // See: https://developer.apple.com/documentation/CoreVideo/kCVBufferMovieTimeKey KCVBufferMovieTimeKey string // KCVBufferNonPropagatedAttachmentsKey is attachments that should not be copied when using the [CVBufferPropagateAttachments(_:_:)] function (type [CFDictionary], containing a list of attachments as key-value pairs). // // See: https://developer.apple.com/documentation/CoreVideo/kCVBufferNonPropagatedAttachmentsKey KCVBufferNonPropagatedAttachmentsKey string // KCVBufferPropagatedAttachmentsKey is attachments that should be copied when using the [CVBufferPropagateAttachments(_:_:)] function (type [CFDictionary], containing a list of attachments as key-value pairs). // // See: https://developer.apple.com/documentation/CoreVideo/kCVBufferPropagatedAttachmentsKey KCVBufferPropagatedAttachmentsKey string // KCVBufferTimeScaleKey is the time scale associated with the movie. // // See: https://developer.apple.com/documentation/CoreVideo/kCVBufferTimeScaleKey KCVBufferTimeScaleKey string // KCVBufferTimeValueKey is the time value associated with the movie. // // See: https://developer.apple.com/documentation/CoreVideo/kCVBufferTimeValueKey KCVBufferTimeValueKey string // KCVImageBufferAlphaChannelIsOpaque is a key to indicate whether the alpha channel is fully opaque. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelIsOpaque KCVImageBufferAlphaChannelIsOpaque string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelModeKey KCVImageBufferAlphaChannelModeKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelMode_PremultipliedAlpha KCVImageBufferAlphaChannelMode_PremultipliedAlpha string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelMode_StraightAlpha KCVImageBufferAlphaChannelMode_StraightAlpha string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAmbientViewingEnvironmentKey KCVImageBufferAmbientViewingEnvironmentKey string // KCVImageBufferCGColorSpaceKey is a key to the color space of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCGColorSpaceKey KCVImageBufferCGColorSpaceKey string // KCVImageBufferChromaLocationBottomFieldKey is a key to the location of chroma bottom field information in the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocationBottomFieldKey KCVImageBufferChromaLocationBottomFieldKey string // KCVImageBufferChromaLocationTopFieldKey is a key to the location of chroma top field information in the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocationTopFieldKey KCVImageBufferChromaLocationTopFieldKey string // KCVImageBufferChromaLocation_Bottom is a key that indicates the chroma sample is horizontally centered, but is co-sited with the bottom row of luma samples. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Bottom KCVImageBufferChromaLocation_Bottom string // KCVImageBufferChromaLocation_BottomLeft is a key that indicates the chroma sample is co-sited with the bottom-left luma sample. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_BottomLeft KCVImageBufferChromaLocation_BottomLeft string // KCVImageBufferChromaLocation_Center is a key that indicates the chroma sample is fully centered. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Center KCVImageBufferChromaLocation_Center string // KCVImageBufferChromaLocation_DV420 is a key that indicates the Cr and Cb samples are alternatingly co-sited with the left luma samples of the same field. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_DV420 KCVImageBufferChromaLocation_DV420 string // KCVImageBufferChromaLocation_Left is a key that indicates the chroma sample is horizontally co-sited with the left column of luma samples, but centered vertically. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Left KCVImageBufferChromaLocation_Left string // KCVImageBufferChromaLocation_Top is a key that indicates the chroma sample is horizontally centered, but is co-sited with the top row of luma samples. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Top KCVImageBufferChromaLocation_Top string // KCVImageBufferChromaLocation_TopLeft is a key that indicates the chroma sample is co-sited with the top-left luma sample. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_TopLeft KCVImageBufferChromaLocation_TopLeft string // KCVImageBufferChromaSubsamplingKey is a key to the original format of subsampled data in the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsamplingKey KCVImageBufferChromaSubsamplingKey string // KCVImageBufferChromaSubsampling_411 is a key that indicates the original chroma-subsampled data used 4:1:1 formatting. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsampling_411 KCVImageBufferChromaSubsampling_411 string // KCVImageBufferChromaSubsampling_420 is a key that indicates the original chroma-subsampled data used 4:2:0 formatting. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsampling_420 KCVImageBufferChromaSubsampling_420 string // KCVImageBufferChromaSubsampling_422 is a key that indicates the original chroma-subsampled data used 4:2:2 formatting. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsampling_422 KCVImageBufferChromaSubsampling_422 string // KCVImageBufferCleanApertureHeightKey is a key to the clean aperture height of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureHeightKey KCVImageBufferCleanApertureHeightKey string // KCVImageBufferCleanApertureHorizontalOffsetKey is a key to the clean aperture horizontal offset value from the center of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureHorizontalOffsetKey KCVImageBufferCleanApertureHorizontalOffsetKey string // KCVImageBufferCleanApertureKey is a key to the dictionary describing the clean aperture for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureKey KCVImageBufferCleanApertureKey string // KCVImageBufferCleanApertureVerticalOffsetKey is a key to the clean aperture vertical offset value from the center of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureVerticalOffsetKey KCVImageBufferCleanApertureVerticalOffsetKey string // KCVImageBufferCleanApertureWidthKey is a key to the clean aperture width of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureWidthKey KCVImageBufferCleanApertureWidthKey string // KCVImageBufferColorPrimariesKey is a key to the color primaries gamut for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimariesKey KCVImageBufferColorPrimariesKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_DCI_P3 KCVImageBufferColorPrimaries_DCI_P3 string // KCVImageBufferColorPrimaries_EBU_3213 is a key to the color primaries gamut for PAL video. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_EBU_3213 KCVImageBufferColorPrimaries_EBU_3213 string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_ITU_R_2020 KCVImageBufferColorPrimaries_ITU_R_2020 string // KCVImageBufferColorPrimaries_ITU_R_709_2 is a key to the color primaries gamut for HD video. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_ITU_R_709_2 KCVImageBufferColorPrimaries_ITU_R_709_2 string // KCVImageBufferColorPrimaries_P22 is a key to the color primaries gamut for sRGB video. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_P22 KCVImageBufferColorPrimaries_P22 string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_P3_D65 KCVImageBufferColorPrimaries_P3_D65 string // KCVImageBufferColorPrimaries_SMPTE_C is a key to the color primaries gamut for standard-definition video. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_SMPTE_C KCVImageBufferColorPrimaries_SMPTE_C string // KCVImageBufferContentLightLevelInfoKey is a key to the content light level information. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferContentLightLevelInfoKey KCVImageBufferContentLightLevelInfoKey string // KCVImageBufferDisplayDimensionsKey is a key to the dictionary describing the display dimensions for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayDimensionsKey KCVImageBufferDisplayDimensionsKey string // KCVImageBufferDisplayHeightKey is a key to the display height of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayHeightKey KCVImageBufferDisplayHeightKey string // KCVImageBufferDisplayMaskRectangleKey is specifies the rectangular display area within the image. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangleKey KCVImageBufferDisplayMaskRectangleKey string // KCVImageBufferDisplayMaskRectangleStereoLeftKey is specifies the rectangular display area within the left-eye view of stereo images, using the same keys as `kCVImageBufferDisplayMaskRectangleKey`. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangleStereoLeftKey KCVImageBufferDisplayMaskRectangleStereoLeftKey string // KCVImageBufferDisplayMaskRectangleStereoRightKey is specifies the rectangular display area within the right-eye view of stereo images, using the same keys as `kCVImageBufferDisplayMaskRectangleKey`. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangleStereoRightKey KCVImageBufferDisplayMaskRectangleStereoRightKey string // KCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey is specifies inset points on the left vertical edge of the rectangle. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey KCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey string // KCVImageBufferDisplayMaskRectangle_RectangleHeightKey is specifies the height of the rectangle starting at the rectangle’s top offset toward the rectangle’s bottom edge. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleHeightKey KCVImageBufferDisplayMaskRectangle_RectangleHeightKey string // KCVImageBufferDisplayMaskRectangle_RectangleLeftKey is specifies the horizontal pixel offset of the rectangle from the left of the bounding raster. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleLeftKey KCVImageBufferDisplayMaskRectangle_RectangleLeftKey string // KCVImageBufferDisplayMaskRectangle_RectangleTopKey is specifies the vertical pixel offset of the rectangle from the top of the bounding raster. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleTopKey KCVImageBufferDisplayMaskRectangle_RectangleTopKey string // KCVImageBufferDisplayMaskRectangle_RectangleWidthKey is specifies the width of the rectangle starting at the rectangle’s left offset toward the rectangle’s right edge. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleWidthKey KCVImageBufferDisplayMaskRectangle_RectangleWidthKey string // KCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey is specifies the height in pixels of the 2D coordinate system to define the rectangle. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey KCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey string // KCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey is specifies the width in pixels of the 2D coordinate system to define the rectangle. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey KCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey string // KCVImageBufferDisplayMaskRectangle_RightEdgePointsKey is specifies inset points on the right vertical edge of the rectangle. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey KCVImageBufferDisplayMaskRectangle_RightEdgePointsKey string // KCVImageBufferDisplayWidthKey is a key to the display width of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayWidthKey KCVImageBufferDisplayWidthKey string // KCVImageBufferFieldCountKey is a key to the field count for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldCountKey KCVImageBufferFieldCountKey string // KCVImageBufferFieldDetailKey is a key to the field detail for an image buffer that indicates the order of interlaced video data in the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailKey KCVImageBufferFieldDetailKey string // KCVImageBufferFieldDetailSpatialFirstLineEarly is a key to the spatial first line early detail field of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailSpatialFirstLineEarly KCVImageBufferFieldDetailSpatialFirstLineEarly string // KCVImageBufferFieldDetailSpatialFirstLineLate is a key to the spatial first line late detail field of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailSpatialFirstLineLate KCVImageBufferFieldDetailSpatialFirstLineLate string // KCVImageBufferFieldDetailTemporalBottomFirst is a key to the temporal bottom first detail field of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailTemporalBottomFirst KCVImageBufferFieldDetailTemporalBottomFirst string // KCVImageBufferFieldDetailTemporalTopFirst is a key to the temporal top first detail field of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailTemporalTopFirst KCVImageBufferFieldDetailTemporalTopFirst string // KCVImageBufferGammaLevelKey is a key to the gamma level for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferGammaLevelKey KCVImageBufferGammaLevelKey string // KCVImageBufferICCProfileKey is a key to the ICC color profile for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferICCProfileKey KCVImageBufferICCProfileKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferLogTransferFunctionKey KCVImageBufferLogTransferFunctionKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferLogTransferFunction_AppleLog KCVImageBufferLogTransferFunction_AppleLog string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferLogTransferFunction_AppleLog2 KCVImageBufferLogTransferFunction_AppleLog2 string // KCVImageBufferMasteringDisplayColorVolumeKey is a key to the mastering display color volume. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferMasteringDisplayColorVolumeKey KCVImageBufferMasteringDisplayColorVolumeKey string // KCVImageBufferPixelAspectRatioHorizontalSpacingKey is a key to the horizontal component of the image buffer aspect ratio. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPixelAspectRatioHorizontalSpacingKey KCVImageBufferPixelAspectRatioHorizontalSpacingKey string // KCVImageBufferPixelAspectRatioKey is a key to the dictionary describing the pixel aspect ratio for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPixelAspectRatioKey KCVImageBufferPixelAspectRatioKey string // KCVImageBufferPixelAspectRatioVerticalSpacingKey is a key to the vertical component of the image buffer aspect ratio. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPixelAspectRatioVerticalSpacingKey KCVImageBufferPixelAspectRatioVerticalSpacingKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPostDecodeProcessingFrameMetadataKey KCVImageBufferPostDecodeProcessingFrameMetadataKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPostDecodeProcessingSequenceMetadataKey KCVImageBufferPostDecodeProcessingSequenceMetadataKey string // KCVImageBufferPreferredCleanApertureKey is a key to the dictionary describing the preferred clean aperture for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPreferredCleanApertureKey KCVImageBufferPreferredCleanApertureKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferRegionOfInterestKey KCVImageBufferRegionOfInterestKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferSceneIlluminationKey KCVImageBufferSceneIlluminationKey string // KCVImageBufferTransferFunctionKey is a key to the transfer function for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunctionKey KCVImageBufferTransferFunctionKey string // KCVImageBufferTransferFunction_EBU_3213 is a key to the transfer function that follows the EBU 3213 standard. // // Deprecated: Deprecated since macOS 10.6. Use [kCVImageBufferTransferFunction_ITU_R_709_2](<https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_709_2>) instead. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_EBU_3213 KCVImageBufferTransferFunction_EBU_3213 string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_2020 KCVImageBufferTransferFunction_ITU_R_2020 string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_2100_HLG KCVImageBufferTransferFunction_ITU_R_2100_HLG string // KCVImageBufferTransferFunction_ITU_R_709_2 is a key to the transfer function for high-definition and standard-definition video. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_709_2 KCVImageBufferTransferFunction_ITU_R_709_2 string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_Linear KCVImageBufferTransferFunction_Linear string // KCVImageBufferTransferFunction_SMPTE_240M_1995 is a key to the transfer function for HDTV interim video. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_SMPTE_240M_1995 KCVImageBufferTransferFunction_SMPTE_240M_1995 string // KCVImageBufferTransferFunction_SMPTE_C is a key to the transfer function for standard-definition video. // // Deprecated: Deprecated since macOS 10.6. Use [kCVImageBufferTransferFunction_ITU_R_709_2](<https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_709_2>) instead. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_SMPTE_C KCVImageBufferTransferFunction_SMPTE_C string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ KCVImageBufferTransferFunction_SMPTE_ST_2084_PQ string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_SMPTE_ST_428_1 KCVImageBufferTransferFunction_SMPTE_ST_428_1 string // KCVImageBufferTransferFunction_UseGamma is a key to the transfer function that’s defined by the gamma level value of the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_UseGamma KCVImageBufferTransferFunction_UseGamma string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_sRGB KCVImageBufferTransferFunction_sRGB string // KCVImageBufferYCbCrMatrixKey is a key to the YCbCr to RGB color conversion matrix for the image buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrixKey KCVImageBufferYCbCrMatrixKey string // // Deprecated: Deprecated since macOS 11.0. This value is no longer supported. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_DCI_P3 KCVImageBufferYCbCrMatrix_DCI_P3 string // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_ITU_R_2020 KCVImageBufferYCbCrMatrix_ITU_R_2020 string // KCVImageBufferYCbCrMatrix_ITU_R_601_4 is a key to the conversion matrix for standard digital television images, that follows the ITU R 601 standard. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_ITU_R_601_4 KCVImageBufferYCbCrMatrix_ITU_R_601_4 string // KCVImageBufferYCbCrMatrix_ITU_R_709_2 is a key to the conversion matrix for HDTV digital television images, that follows the ITU R 709 standard. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_ITU_R_709_2 KCVImageBufferYCbCrMatrix_ITU_R_709_2 string // // Deprecated: Deprecated since macOS 11.0. This value is no longer supported. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_P3_D65 KCVImageBufferYCbCrMatrix_P3_D65 string // KCVImageBufferYCbCrMatrix_SMPTE_240M_1995 is a key to the conversion matrix for 1920 x 1135 HDTV images, that follows the SMPTE 240M 1995 standard. // // See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_SMPTE_240M_1995 KCVImageBufferYCbCrMatrix_SMPTE_240M_1995 string // See: https://developer.apple.com/documentation/CoreVideo/kCVMetalBufferCacheMaximumBufferAgeKey KCVMetalBufferCacheMaximumBufferAgeKey string // KCVMetalTextureCacheMaximumTextureAgeKey is the length of time, in seconds, before the cache is automatically evicted. // // See: https://developer.apple.com/documentation/CoreVideo/kCVMetalTextureCacheMaximumTextureAgeKey KCVMetalTextureCacheMaximumTextureAgeKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVMetalTextureStorageMode KCVMetalTextureStorageMode string // KCVMetalTextureUsage is the set of options that define how you can use a texture on the GPU. // // See: https://developer.apple.com/documentation/CoreVideo/kCVMetalTextureUsage KCVMetalTextureUsage string // KCVOpenGLBufferHeight is the height of the buffer. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLBufferHeight KCVOpenGLBufferHeight string // KCVOpenGLBufferInternalFormat is the OpenGL internal format of this buffer. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLBufferInternalFormat KCVOpenGLBufferInternalFormat string // KCVOpenGLBufferMaximumMipmapLevel is the maximum mipmap level for this buffer. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLBufferMaximumMipmapLevel KCVOpenGLBufferMaximumMipmapLevel string // KCVOpenGLBufferPoolMaximumBufferAgeKey is the maximum time that unused buffers should be kept before they are deallocated (type [CFAbsoluteTime]). // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLBufferPoolMaximumBufferAgeKey KCVOpenGLBufferPoolMaximumBufferAgeKey string // KCVOpenGLBufferPoolMinimumBufferCountKey is the minimum number of buffers to be kept in the pool (type [CFNumber]). // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLBufferPoolMinimumBufferCountKey KCVOpenGLBufferPoolMinimumBufferCountKey string // KCVOpenGLBufferTarget is the OpenGL target for this buffer. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLBufferTarget KCVOpenGLBufferTarget string // KCVOpenGLBufferWidth is the width of the buffer. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLBufferWidth KCVOpenGLBufferWidth string // KCVOpenGLTextureCacheChromaSamplingModeAutomatic is the default mode if not otherwise specified. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLTextureCacheChromaSamplingModeAutomatic KCVOpenGLTextureCacheChromaSamplingModeAutomatic string // KCVOpenGLTextureCacheChromaSamplingModeBestPerformance is set the chroma sample mode to use the most performant way possible. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLTextureCacheChromaSamplingModeBestPerformance KCVOpenGLTextureCacheChromaSamplingModeBestPerformance string // KCVOpenGLTextureCacheChromaSamplingModeHighestQuality is forces the highest quality regardless of performance impact. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLTextureCacheChromaSamplingModeHighestQuality KCVOpenGLTextureCacheChromaSamplingModeHighestQuality string // KCVOpenGLTextureCacheChromaSamplingModeKey is the key used to define the cache’s requested chroma sampling mode. // // Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) // // See: https://developer.apple.com/documentation/CoreVideo/kCVOpenGLTextureCacheChromaSamplingModeKey KCVOpenGLTextureCacheChromaSamplingModeKey string // KCVPixelBufferBytesPerRowAlignmentKey is a key to a number that specifies the alignment of number of bytes per row in the pixel buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferBytesPerRowAlignmentKey KCVPixelBufferBytesPerRowAlignmentKey string // KCVPixelBufferCGBitmapContextCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with Core Graphics bitmap contexts. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferCGBitmapContextCompatibilityKey KCVPixelBufferCGBitmapContextCompatibilityKey string // KCVPixelBufferCGImageCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with Core Graphics bitmap image types. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferCGImageCompatibilityKey KCVPixelBufferCGImageCompatibilityKey string // KCVPixelBufferExtendedPixelsBottomKey is a key to the number of pixels padding the bottom of the image. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsBottomKey KCVPixelBufferExtendedPixelsBottomKey string // KCVPixelBufferExtendedPixelsLeftKey is a key to the number of pixels padding the left of the image. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsLeftKey KCVPixelBufferExtendedPixelsLeftKey string // KCVPixelBufferExtendedPixelsRightKey is a key to the number of pixels padding the right of the image. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsRightKey KCVPixelBufferExtendedPixelsRightKey string // KCVPixelBufferExtendedPixelsTopKey is a key to the number of pixels padding the top of the image. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsTopKey KCVPixelBufferExtendedPixelsTopKey string // KCVPixelBufferHeightKey is a key to the height of the pixel buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferHeightKey KCVPixelBufferHeightKey string // KCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey is a key to a Boolean value that indicates whether Core Animation can display the pixel buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey KCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey string // KCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey is a key to a Boolean value that indicates whether OpenGL can create a valid texture for use as a color buffer attachment. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey KCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey string // KCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey is a key to a Boolean value that indicates whether OpenGL can create a valid texture object from the IOSurface-backed pixel buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey KCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey string // KCVPixelBufferIOSurfacePropertiesKey is a key to the dictionary containing optional properties for the IOSurface framework. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfacePropertiesKey KCVPixelBufferIOSurfacePropertiesKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfacePurgeableKey KCVPixelBufferIOSurfacePurgeableKey string // KCVPixelBufferMemoryAllocatorKey is a key to the allocator that the system uses to create the pixel buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferMemoryAllocatorKey KCVPixelBufferMemoryAllocatorKey string // KCVPixelBufferMetalCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with the Metal framework. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferMetalCompatibilityKey KCVPixelBufferMetalCompatibilityKey string // KCVPixelBufferOpenGLCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with OpenGL contexts. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferOpenGLCompatibilityKey KCVPixelBufferOpenGLCompatibilityKey string // KCVPixelBufferOpenGLTextureCacheCompatibilityKey is a key to a Boolean value that indicates whether OpenGL performs format conversions of the texture-cache data in a shader. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferOpenGLTextureCacheCompatibilityKey KCVPixelBufferOpenGLTextureCacheCompatibilityKey string // KCVPixelBufferPixelFormatTypeKey is a key to one or more pixel buffer format types. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPixelFormatTypeKey KCVPixelBufferPixelFormatTypeKey string // KCVPixelBufferPlaneAlignmentKey is a key to a number that specifies the alignment of the planes in the pixel buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPlaneAlignmentKey KCVPixelBufferPlaneAlignmentKey string // KCVPixelBufferPoolAllocationThresholdKey is the key you use to set the auxiliary attributes dictionary. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolAllocationThresholdKey KCVPixelBufferPoolAllocationThresholdKey string // KCVPixelBufferPoolFreeBufferNotification is a notification that the system posts if a buffer becomes available after it fails to create a pixel buffer with auxiliary attributes because it exceeded the threshold you specified. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolFreeBufferNotification KCVPixelBufferPoolFreeBufferNotification string // KCVPixelBufferPoolMaximumBufferAgeKey is the key you use to set the maximum allowable age for a buffer in the pixel buffer pool. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolMaximumBufferAgeKey KCVPixelBufferPoolMaximumBufferAgeKey string // KCVPixelBufferPoolMinimumBufferCountKey is the minimum number of buffers allowed in the pixel buffer pool. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolMinimumBufferCountKey KCVPixelBufferPoolMinimumBufferCountKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_BlackLevel KCVPixelBufferProResRAWKey_BlackLevel string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_ColorMatrix KCVPixelBufferProResRAWKey_ColorMatrix string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_GainFactor KCVPixelBufferProResRAWKey_GainFactor string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_MetadataExtension KCVPixelBufferProResRAWKey_MetadataExtension string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_RecommendedCrop KCVPixelBufferProResRAWKey_RecommendedCrop string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_SenselSitingOffsets KCVPixelBufferProResRAWKey_SenselSitingOffsets string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor KCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteBalanceCCT KCVPixelBufferProResRAWKey_WhiteBalanceCCT string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor KCVPixelBufferProResRAWKey_WhiteBalanceRedFactor string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteLevel KCVPixelBufferProResRAWKey_WhiteLevel string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferVersatileBayerKey_BayerPattern KCVPixelBufferVersatileBayerKey_BayerPattern string // KCVPixelBufferWidthKey is a key to the width of the pixel buffer. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferWidthKey KCVPixelBufferWidthKey string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBitsPerBlock KCVPixelFormatBitsPerBlock string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBitsPerComponent KCVPixelFormatBitsPerComponent string // KCVPixelFormatBlackBlock is the bit pattern for a block of black pixels (type [CFData]. If this key is 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. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlackBlock KCVPixelFormatBlackBlock string // KCVPixelFormatBlockHeight is the height, in pixels, of the smallest byte-addressable group of pixels (type [CFNumber]). Assumed to be 1 if this key is not present. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockHeight KCVPixelFormatBlockHeight string // KCVPixelFormatBlockHorizontalAlignment is the horizontal alignment requirements of this format (type [CFNumber]). For example,the alignment for v210 would be 8 here for the horizontal case to match the standard v210 row alignment value of 48. Assumed to be 1 if this key is not present. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockHorizontalAlignment KCVPixelFormatBlockHorizontalAlignment string // KCVPixelFormatBlockVerticalAlignment is the vertical alignment requirements of this format (type [CFNumber]). Assumed to be 1 if this key is not present. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockVerticalAlignment KCVPixelFormatBlockVerticalAlignment string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockWidth KCVPixelFormatBlockWidth string // KCVPixelFormatCGBitmapContextCompatibility is if true, this format is compatible with Core Graphics bitmap contexts(type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCGBitmapContextCompatibility KCVPixelFormatCGBitmapContextCompatibility string // KCVPixelFormatCGBitmapInfo is the Core Graphics bitmap information for this pixel format (if applicable). // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCGBitmapInfo KCVPixelFormatCGBitmapInfo string // KCVPixelFormatCGImageCompatibility is if true, this format is compatible with the [CGImage] type (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCGImageCompatibility KCVPixelFormatCGImageCompatibility string // KCVPixelFormatCodecType is the codec type (type [CFString]). For example, `'2vuy'` or `k422YpCbCr8CodecType`. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCodecType KCVPixelFormatCodecType string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange KCVPixelFormatComponentRange string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange_FullRange KCVPixelFormatComponentRange_FullRange string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange_VideoRange KCVPixelFormatComponentRange_VideoRange string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange_WideRange KCVPixelFormatComponentRange_WideRange string // KCVPixelFormatConstant is the pixel format constant for QuickTime. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatConstant KCVPixelFormatConstant string // KCVPixelFormatContainsAlpha is a Boolean value where [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. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsAlpha KCVPixelFormatContainsAlpha string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsGrayscale KCVPixelFormatContainsGrayscale string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsRGB KCVPixelFormatContainsRGB string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsSenselArray KCVPixelFormatContainsSenselArray string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsYCbCr KCVPixelFormatContainsYCbCr string // KCVPixelFormatFillExtendedPixelsCallback is a custom extended pixel fill algorithm (type [CFData]). See [CVFillExtendedPixelsCallBack] and [CVFillExtendedPixelsCallBackData] for more information. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatFillExtendedPixelsCallback KCVPixelFormatFillExtendedPixelsCallback string // KCVPixelFormatFourCC is the Microsoft FourCC equivalent code for this pixel format (type [CFString]). // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatFourCC KCVPixelFormatFourCC string // KCVPixelFormatHorizontalSubsampling is horizontal subsampling information for this plane (type [CFNumber]). Assumed to be 1 if this key is not present. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatHorizontalSubsampling KCVPixelFormatHorizontalSubsampling string // KCVPixelFormatName is the name of the pixel format (type [CFString]). This should be the same as the codec name you would use in QuickTime. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatName KCVPixelFormatName string // KCVPixelFormatOpenGLCompatibility is if true, this format is compatible with OpenGL (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLCompatibility KCVPixelFormatOpenGLCompatibility string // KCVPixelFormatOpenGLFormat is the OpenGL format used to describe this image plane (if applicable). See the [OpenGL specification] for possible values. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLFormat KCVPixelFormatOpenGLFormat string // KCVPixelFormatOpenGLInternalFormat is the OpenGL internal format for this pixel format (if applicable). See the [OpenGL specification] for possible values. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLInternalFormat KCVPixelFormatOpenGLInternalFormat string // KCVPixelFormatOpenGLType is the OpenGL type to describe this image plane (if applicable). See the [OpenGL specification] for possible values. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLType KCVPixelFormatOpenGLType string // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatPlanes KCVPixelFormatPlanes string // KCVPixelFormatQDCompatibility is if true, this format is compatible with QuickDraw (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatQDCompatibility KCVPixelFormatQDCompatibility string // KCVPixelFormatVerticalSubsampling is vertical subsampling information for this plane (type [CFNumber]). Assumed to be 1 if this key is not present. // // See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatVerticalSubsampling KCVPixelFormatVerticalSubsampling string )
Functions ¶
func BindFunc ¶
BindFunc binds the CoreVideo symbol name into fptr, which must be a pointer to a func variable.
The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.
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.
It panics if CVBufferCopyAttachment is unavailable at run time; use TryCVBufferCopyAttachment to get an error instead.
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.
It panics if CVBufferCopyAttachments is unavailable at run time; use TryCVBufferCopyAttachments to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVBufferCopyAttachments(_:_:)
func CVBufferGetAttachment
deprecated
func CVBufferGetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, attachmentMode *CVAttachmentMode) corefoundation.CFTypeRef
CVBufferGetAttachment retrieves a specific attachment of a Core Video buffer.
It panics if CVBufferGetAttachment is unavailable at run time; use TryCVBufferGetAttachment to get an error instead.
Deprecated: Deprecated since macOS 12.0. Use [CVBufferCopyAttachment(_:_:_:)](<https://developer.apple.com/documentation/CoreVideo/CVBufferCopyAttachment(_:_:_:)>) instead.
See: https://developer.apple.com/documentation/CoreVideo/CVBufferGetAttachment(_:_:_:)
func CVBufferGetAttachments
deprecated
func CVBufferGetAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) corefoundation.CFDictionaryRef
CVBufferGetAttachments retrieves all attachments of a Core Video buffer.
It panics if CVBufferGetAttachments is unavailable at run time; use TryCVBufferGetAttachments to get an error instead.
Deprecated: Deprecated since macOS 12.0. Use [CVBufferCopyAttachments(_:_:)](<https://developer.apple.com/documentation/CoreVideo/CVBufferCopyAttachments(_:_:)>) instead.
See: https://developer.apple.com/documentation/CoreVideo/CVBufferGetAttachments(_:_:)
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.
It panics if CVBufferHasAttachment is unavailable at run time; use TryCVBufferHasAttachment to get an error instead.
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.
It panics if CVBufferPropagateAttachments is unavailable at run time; use TryCVBufferPropagateAttachments to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVBufferPropagateAttachments(_:_:)
func CVBufferRelease ¶
func CVBufferRelease(buffer CVBufferRef)
CVBufferRelease releases a Core Video buffer.
It panics if CVBufferRelease is unavailable at run time; use TryCVBufferRelease to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVBufferRelease
func CVBufferRemoveAllAttachments ¶
func CVBufferRemoveAllAttachments(buffer CVBufferRef)
CVBufferRemoveAllAttachments removes all attachments from a Core Video buffer.
It panics if CVBufferRemoveAllAttachments is unavailable at run time; use TryCVBufferRemoveAllAttachments to get an error instead.
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.
It panics if CVBufferRemoveAttachment is unavailable at run time; use TryCVBufferRemoveAttachment to get an error instead.
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.
It panics if CVBufferSetAttachment is unavailable at run time; use TryCVBufferSetAttachment to get an error instead.
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.
It panics if CVBufferSetAttachments is unavailable at run time; use TryCVBufferSetAttachments to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVBufferSetAttachments(_:_:_:)
func CVColorPrimariesGetIntegerCodePointForString ¶
func CVColorPrimariesGetIntegerCodePointForString(colorPrimariesString corefoundation.CFStringRef) int32
CVColorPrimariesGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video color primaries constant string that you specify.
It panics if CVColorPrimariesGetIntegerCodePointForString is unavailable at run time; use TryCVColorPrimariesGetIntegerCodePointForString to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVColorPrimariesGetIntegerCodePointForString(_:)
func CVColorPrimariesGetStringForIntegerCodePoint ¶
func CVColorPrimariesGetStringForIntegerCodePoint(colorPrimariesCodePoint int32) corefoundation.CFStringRef
CVColorPrimariesGetStringForIntegerCodePoint returns the Core Video color primaries string corresponding to the standard integer code point that you specify.
It panics if CVColorPrimariesGetStringForIntegerCodePoint is unavailable at run time; use TryCVColorPrimariesGetStringForIntegerCodePoint to get an error instead.
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.
It panics if CVDisplayLinkGetActualOutputVideoRefreshPeriod is unavailable at run time; use TryCVDisplayLinkGetActualOutputVideoRefreshPeriod to get an error instead.
Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
func CVDisplayLinkGetCurrentCGDisplay
deprecated
func CVDisplayLinkGetCurrentCGDisplay(displayLink CVDisplayLinkRef) uint32
CVDisplayLinkGetCurrentCGDisplay gets the current display associated with a display link.
It panics if CVDisplayLinkGetCurrentCGDisplay is unavailable at run time; use TryCVDisplayLinkGetCurrentCGDisplay to get an error instead.
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.
It panics if CVDisplayLinkGetTypeID is unavailable at run time; use TryCVDisplayLinkGetTypeID to get an error instead.
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.
It panics if CVDisplayLinkIsRunning is unavailable at run time; use TryCVDisplayLinkIsRunning to get an error instead.
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
deprecated
func CVDisplayLinkRelease(displayLink CVDisplayLinkRef)
CVDisplayLinkRelease releases a display link.
It panics if CVDisplayLinkRelease is unavailable at run time; use TryCVDisplayLinkRelease to get an error instead.
Deprecated: Deprecated since macOS 15.0.
See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkRelease
func CVGetCurrentHostTime ¶
func CVGetCurrentHostTime() uint64
CVGetCurrentHostTime returns the current system time.
It panics if CVGetCurrentHostTime is unavailable at run time; use TryCVGetCurrentHostTime to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVGetCurrentHostTime()
func CVGetHostClockFrequency ¶
func CVGetHostClockFrequency() float64
CVGetHostClockFrequency returns the frequency of updates to the system time.
It panics if CVGetHostClockFrequency is unavailable at run time; use TryCVGetHostClockFrequency to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVGetHostClockFrequency()
func CVGetHostClockMinimumTimeDelta ¶
func CVGetHostClockMinimumTimeDelta() uint32
CVGetHostClockMinimumTimeDelta returns the smallest possible increment in the system time.
It panics if CVGetHostClockMinimumTimeDelta is unavailable at run time; use TryCVGetHostClockMinimumTimeDelta to get an error instead.
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.
It panics if CVImageBufferCreateColorSpaceFromAttachments is unavailable at run time; use TryCVImageBufferCreateColorSpaceFromAttachments to get an error instead.
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.
It panics if CVImageBufferGetCleanRect is unavailable at run time; use TryCVImageBufferGetCleanRect to get an error instead.
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.
It panics if CVImageBufferGetColorSpace is unavailable at run time; use TryCVImageBufferGetColorSpace to get an error instead.
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.
It panics if CVImageBufferGetDisplaySize is unavailable at run time; use TryCVImageBufferGetDisplaySize to get an error instead.
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.
It panics if CVImageBufferGetEncodedSize is unavailable at run time; use TryCVImageBufferGetEncodedSize to get an error instead.
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.
It panics if CVImageBufferIsFlipped is unavailable at run time; use TryCVImageBufferIsFlipped to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferIsFlipped(_:)
func CVIsCompressedPixelFormatAvailable ¶
CVIsCompressedPixelFormatAvailable.
It panics if CVIsCompressedPixelFormatAvailable is unavailable at run time; use TryCVIsCompressedPixelFormatAvailable to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVIsCompressedPixelFormatAvailable(_:)
func CVMetalBufferCacheFlush ¶
func CVMetalBufferCacheFlush(bufferCache CVMetalBufferCacheRef, options CVOptionFlags)
CVMetalBufferCacheFlush.
It panics if CVMetalBufferCacheFlush is unavailable at run time; use TryCVMetalBufferCacheFlush to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCacheFlush(_:_:)
func CVMetalBufferCacheGetTypeID ¶
func CVMetalBufferCacheGetTypeID() uint
CVMetalBufferCacheGetTypeID.
It panics if CVMetalBufferCacheGetTypeID is unavailable at run time; use TryCVMetalBufferCacheGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCacheGetTypeID()
func CVMetalBufferGetBuffer ¶
func CVMetalBufferGetBuffer(buffer CVMetalBufferRef) metal.MTLBufferObject
CVMetalBufferGetBuffer.
It panics if CVMetalBufferGetBuffer is unavailable at run time; use TryCVMetalBufferGetBuffer to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferGetBuffer(_:)
func CVMetalBufferGetTypeID ¶
func CVMetalBufferGetTypeID() uint
CVMetalBufferGetTypeID.
It panics if CVMetalBufferGetTypeID is unavailable at run time; use TryCVMetalBufferGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferGetTypeID()
func CVMetalTextureCacheFlush ¶
func CVMetalTextureCacheFlush(textureCache CVMetalTextureCacheRef, options CVOptionFlags)
CVMetalTextureCacheFlush manually flushes the contents of the provided texture cache.
It panics if CVMetalTextureCacheFlush is unavailable at run time; use TryCVMetalTextureCacheFlush to get an error instead.
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.
It panics if CVMetalTextureCacheGetTypeID is unavailable at run time; use TryCVMetalTextureCacheGetTypeID to get an error instead.
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.
It panics if CVMetalTextureGetCleanTexCoords is unavailable at run time; use TryCVMetalTextureGetCleanTexCoords to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)
func CVMetalTextureGetTexture ¶
func CVMetalTextureGetTexture(image CVMetalTextureRef) metal.MTLTextureObject
CVMetalTextureGetTexture returns the Metal texture object for the image buffer.
It panics if CVMetalTextureGetTexture is unavailable at run time; use TryCVMetalTextureGetTexture to get an error instead.
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.
It panics if CVMetalTextureGetTypeID is unavailable at run time; use TryCVMetalTextureGetTypeID to get an error instead.
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.
It panics if CVMetalTextureIsFlipped is unavailable at run time; use TryCVMetalTextureIsFlipped to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureIsFlipped(_:)
func CVOpenGLBufferGetAttributes
deprecated
func CVOpenGLBufferGetAttributes(openGLBuffer CVOpenGLBufferRef) corefoundation.CFDictionaryRef
CVOpenGLBufferGetAttributes obtains the attributes of a Core Video OpenGL buffer.
It panics if CVOpenGLBufferGetAttributes is unavailable at run time; use TryCVOpenGLBufferGetAttributes to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferGetAttributes(_:)
func CVOpenGLBufferGetTypeID
deprecated
func CVOpenGLBufferGetTypeID() uint
CVOpenGLBufferGetTypeID obtains the Core Foundation type ID for the OpenGL buffer type.
It panics if CVOpenGLBufferGetTypeID is unavailable at run time; use TryCVOpenGLBufferGetTypeID to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferGetTypeID()
func CVOpenGLBufferPoolGetAttributes
deprecated
func CVOpenGLBufferPoolGetAttributes(pool CVOpenGLBufferPoolRef) corefoundation.CFDictionaryRef
CVOpenGLBufferPoolGetAttributes returns the pool attributes dictionary for an Open GL buffer pool.
It panics if CVOpenGLBufferPoolGetAttributes is unavailable at run time; use TryCVOpenGLBufferPoolGetAttributes to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolGetAttributes(_:)
func CVOpenGLBufferPoolGetOpenGLBufferAttributes
deprecated
func CVOpenGLBufferPoolGetOpenGLBufferAttributes(pool CVOpenGLBufferPoolRef) corefoundation.CFDictionaryRef
CVOpenGLBufferPoolGetOpenGLBufferAttributes returns the attributes of OpenGL buffers that will be created from a buffer pool.
It panics if CVOpenGLBufferPoolGetOpenGLBufferAttributes is unavailable at run time; use TryCVOpenGLBufferPoolGetOpenGLBufferAttributes to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolGetOpenGLBufferAttributes(_:)
func CVOpenGLBufferPoolGetTypeID
deprecated
func CVOpenGLBufferPoolGetTypeID() uint
CVOpenGLBufferPoolGetTypeID obtains the Core Foundation ID for the OpenGL buffer pool type.
It panics if CVOpenGLBufferPoolGetTypeID is unavailable at run time; use TryCVOpenGLBufferPoolGetTypeID to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolGetTypeID()
func CVOpenGLBufferPoolRelease
deprecated
func CVOpenGLBufferPoolRelease(openGLBufferPool CVOpenGLBufferPoolRef)
CVOpenGLBufferPoolRelease releases an OpenGL buffer pool.
It panics if CVOpenGLBufferPoolRelease is unavailable at run time; use TryCVOpenGLBufferPoolRelease to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolRelease
func CVOpenGLBufferRelease
deprecated
func CVOpenGLBufferRelease(buffer CVOpenGLBufferRef)
CVOpenGLBufferRelease releases a Core Video OpenGL buffer.
It panics if CVOpenGLBufferRelease is unavailable at run time; use TryCVOpenGLBufferRelease to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferRelease
func CVOpenGLTextureCacheFlush
deprecated
func CVOpenGLTextureCacheFlush(textureCache CVOpenGLTextureCacheRef, options CVOptionFlags)
CVOpenGLTextureCacheFlush performs internal housekeeping/recycling operations on the cache.
It panics if CVOpenGLTextureCacheFlush is unavailable at run time; use TryCVOpenGLTextureCacheFlush to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheFlush(_:_:)
func CVOpenGLTextureCacheGetTypeID
deprecated
func CVOpenGLTextureCacheGetTypeID() uint
CVOpenGLTextureCacheGetTypeID returns the Core Foundation type identifier for a the texture cache.
It panics if CVOpenGLTextureCacheGetTypeID is unavailable at run time; use TryCVOpenGLTextureCacheGetTypeID to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheGetTypeID()
func CVOpenGLTextureCacheRelease
deprecated
func CVOpenGLTextureCacheRelease(textureCache CVOpenGLTextureCacheRef)
CVOpenGLTextureCacheRelease releases a texture cache object.
It panics if CVOpenGLTextureCacheRelease is unavailable at run time; use TryCVOpenGLTextureCacheRelease to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheRelease
func CVOpenGLTextureGetCleanTexCoords
deprecated
func CVOpenGLTextureGetCleanTexCoords(image CVOpenGLTextureRef, lowerLeft float32, lowerRight float32, upperRight float32, upperLeft float32)
CVOpenGLTextureGetCleanTexCoords returns the texture coordinates for the part of the image that should be displayed.
It panics if CVOpenGLTextureGetCleanTexCoords is unavailable at run time; use TryCVOpenGLTextureGetCleanTexCoords to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureGetCleanTexCoords(_:_:_:_:_:)
func CVOpenGLTextureGetName
deprecated
func CVOpenGLTextureGetName(image CVOpenGLTextureRef) uint32
CVOpenGLTextureGetName returns the texture target name of a CoreVideo OpenGL texture.
It panics if CVOpenGLTextureGetName is unavailable at run time; use TryCVOpenGLTextureGetName to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureGetName(_:)
func CVOpenGLTextureGetTarget
deprecated
func CVOpenGLTextureGetTarget(image CVOpenGLTextureRef) uint32
CVOpenGLTextureGetTarget returns the texture target (for example, `GL_TEXTURE_2D`) of an OpenGL texture.
It panics if CVOpenGLTextureGetTarget is unavailable at run time; use TryCVOpenGLTextureGetTarget to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureGetTarget(_:)
func CVOpenGLTextureGetTypeID
deprecated
func CVOpenGLTextureGetTypeID() uint
CVOpenGLTextureGetTypeID obtains the Core Foundation ID for the Core Video OpenGL texture type.
It panics if CVOpenGLTextureGetTypeID is unavailable at run time; use TryCVOpenGLTextureGetTypeID to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureGetTypeID()
func CVOpenGLTextureIsFlipped
deprecated
func CVOpenGLTextureIsFlipped(image CVOpenGLTextureRef) bool
CVOpenGLTextureIsFlipped determines whether an OpenGL texture is flipped vertically.
It panics if CVOpenGLTextureIsFlipped is unavailable at run time; use TryCVOpenGLTextureIsFlipped to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureIsFlipped(_:)
func CVOpenGLTextureRelease
deprecated
func CVOpenGLTextureRelease(texture CVOpenGLTextureRef)
CVOpenGLTextureRelease releases a Core Video OpenGL texture.
It panics if CVOpenGLTextureRelease is unavailable at run time; use TryCVOpenGLTextureRelease to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureRelease
func CVPixelBufferCopyCreationAttributes ¶
func CVPixelBufferCopyCreationAttributes(pixelBuffer CVPixelBufferRef) corefoundation.CFDictionaryRef
CVPixelBufferCopyCreationAttributes.
It panics if CVPixelBufferCopyCreationAttributes is unavailable at run time; use TryCVPixelBufferCopyCreationAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCopyCreationAttributes(_:)
func CVPixelBufferGetBaseAddress ¶
func CVPixelBufferGetBaseAddress(pixelBuffer CVPixelBufferRef) unsafe.Pointer
CVPixelBufferGetBaseAddress returns the base address of the pixel buffer.
It panics if CVPixelBufferGetBaseAddress is unavailable at run time; use TryCVPixelBufferGetBaseAddress to get an error instead.
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.
It panics if CVPixelBufferGetBaseAddressOfPlane is unavailable at run time; use TryCVPixelBufferGetBaseAddressOfPlane to get an error instead.
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.
It panics if CVPixelBufferGetBytesPerRow is unavailable at run time; use TryCVPixelBufferGetBytesPerRow to get an error instead.
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.
It panics if CVPixelBufferGetBytesPerRowOfPlane is unavailable at run time; use TryCVPixelBufferGetBytesPerRowOfPlane to get an error instead.
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.
It panics if CVPixelBufferGetDataSize is unavailable at run time; use TryCVPixelBufferGetDataSize to get an error instead.
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.
It panics if CVPixelBufferGetExtendedPixels is unavailable at run time; use TryCVPixelBufferGetExtendedPixels to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetExtendedPixels(_:_:_:_:_:)
func CVPixelBufferGetHeight ¶
func CVPixelBufferGetHeight(pixelBuffer CVPixelBufferRef) uintptr
CVPixelBufferGetHeight returns the height of the pixel buffer.
It panics if CVPixelBufferGetHeight is unavailable at run time; use TryCVPixelBufferGetHeight to get an error instead.
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.
It panics if CVPixelBufferGetHeightOfPlane is unavailable at run time; use TryCVPixelBufferGetHeightOfPlane to get an error instead.
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.
It panics if CVPixelBufferGetIOSurface is unavailable at run time; use TryCVPixelBufferGetIOSurface to get an error instead.
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.
It panics if CVPixelBufferGetPixelFormatType is unavailable at run time; use TryCVPixelBufferGetPixelFormatType to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetPixelFormatType(_:)
func CVPixelBufferGetPlaneCount ¶
func CVPixelBufferGetPlaneCount(pixelBuffer CVPixelBufferRef) uintptr
CVPixelBufferGetPlaneCount returns number of planes of the pixel buffer.
It panics if CVPixelBufferGetPlaneCount is unavailable at run time; use TryCVPixelBufferGetPlaneCount to get an error instead.
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.
It panics if CVPixelBufferGetTypeID is unavailable at run time; use TryCVPixelBufferGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetTypeID()
func CVPixelBufferGetWidth ¶
func CVPixelBufferGetWidth(pixelBuffer CVPixelBufferRef) uintptr
CVPixelBufferGetWidth returns the width of the pixel buffer.
It panics if CVPixelBufferGetWidth is unavailable at run time; use TryCVPixelBufferGetWidth to get an error instead.
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.
It panics if CVPixelBufferGetWidthOfPlane is unavailable at run time; use TryCVPixelBufferGetWidthOfPlane to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetWidthOfPlane(_:_:)
func CVPixelBufferIsCompatibleWithAttributes ¶
func CVPixelBufferIsCompatibleWithAttributes(pixelBuffer CVPixelBufferRef, attributes corefoundation.CFDictionaryRef) bool
CVPixelBufferIsCompatibleWithAttributes.
It panics if CVPixelBufferIsCompatibleWithAttributes is unavailable at run time; use TryCVPixelBufferIsCompatibleWithAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferIsCompatibleWithAttributes(_:_:)
func CVPixelBufferIsPlanar ¶
func CVPixelBufferIsPlanar(pixelBuffer CVPixelBufferRef) bool
CVPixelBufferIsPlanar determines whether the pixel buffer is planar.
It panics if CVPixelBufferIsPlanar is unavailable at run time; use TryCVPixelBufferIsPlanar to get an error instead.
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.
It panics if CVPixelBufferPoolFlush is unavailable at run time; use TryCVPixelBufferPoolFlush to get an error instead.
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.
It panics if CVPixelBufferPoolGetAttributes is unavailable at run time; use TryCVPixelBufferPoolGetAttributes to get an error instead.
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.
It panics if CVPixelBufferPoolGetPixelBufferAttributes is unavailable at run time; use TryCVPixelBufferPoolGetPixelBufferAttributes to get an error instead.
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.
It panics if CVPixelBufferPoolGetTypeID is unavailable at run time; use TryCVPixelBufferPoolGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolGetTypeID()
func CVPixelBufferPoolRelease ¶
func CVPixelBufferPoolRelease(pixelBufferPool CVPixelBufferPoolRef)
CVPixelBufferPoolRelease releases a pixel buffer pool.
It panics if CVPixelBufferPoolRelease is unavailable at run time; use TryCVPixelBufferPoolRelease to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolRelease
func CVPixelBufferRelease ¶
func CVPixelBufferRelease(texture CVPixelBufferRef)
CVPixelBufferRelease releases a pixel buffer.
It panics if CVPixelBufferRelease is unavailable at run time; use TryCVPixelBufferRelease to get an error instead.
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.
It panics if CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes is unavailable at run time; use TryCVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes to get an error instead.
func CVPixelFormatDescriptionCreateWithPixelFormatType ¶
func CVPixelFormatDescriptionCreateWithPixelFormatType(allocator corefoundation.CFAllocatorRef, pixelFormat uint32) corefoundation.CFDictionaryRef
CVPixelFormatDescriptionCreateWithPixelFormatType creates a pixel format description from a given [OSType] identifier.
It panics if CVPixelFormatDescriptionCreateWithPixelFormatType is unavailable at run time; use TryCVPixelFormatDescriptionCreateWithPixelFormatType to get an error instead.
func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType ¶
func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description corefoundation.CFDictionaryRef, pixelFormat uint32)
CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType registers a pixel format description with Core Video.
It panics if CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType is unavailable at run time; use TryCVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType to get an error instead.
func CVPixelFormatTypeCopyFourCharCodeString ¶
func CVPixelFormatTypeCopyFourCharCodeString(pixelFormat uint32) corefoundation.CFStringRef
CVPixelFormatTypeCopyFourCharCodeString.
It panics if CVPixelFormatTypeCopyFourCharCodeString is unavailable at run time; use TryCVPixelFormatTypeCopyFourCharCodeString to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatTypeCopyFourCharCodeString(_:)
func CVTransferFunctionGetIntegerCodePointForString ¶
func CVTransferFunctionGetIntegerCodePointForString(transferFunctionString corefoundation.CFStringRef) int32
CVTransferFunctionGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video transfer function string that you specify.
It panics if CVTransferFunctionGetIntegerCodePointForString is unavailable at run time; use TryCVTransferFunctionGetIntegerCodePointForString to get an error instead.
func CVTransferFunctionGetStringForIntegerCodePoint ¶
func CVTransferFunctionGetStringForIntegerCodePoint(transferFunctionCodePoint int32) corefoundation.CFStringRef
CVTransferFunctionGetStringForIntegerCodePoint returns the Core Video transfer function string corresponding to the standard integer code point that you specify.
It panics if CVTransferFunctionGetStringForIntegerCodePoint is unavailable at run time; use TryCVTransferFunctionGetStringForIntegerCodePoint to get an error instead.
func CVYCbCrMatrixGetIntegerCodePointForString ¶
func CVYCbCrMatrixGetIntegerCodePointForString(yCbCrMatrixString corefoundation.CFStringRef) int32
CVYCbCrMatrixGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video YCbCr matrix string that you specify.
It panics if CVYCbCrMatrixGetIntegerCodePointForString is unavailable at run time; use TryCVYCbCrMatrixGetIntegerCodePointForString to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVYCbCrMatrixGetIntegerCodePointForString(_:)
func CVYCbCrMatrixGetStringForIntegerCodePoint ¶
func CVYCbCrMatrixGetStringForIntegerCodePoint(yCbCrMatrixCodePoint int32) corefoundation.CFStringRef
CVYCbCrMatrixGetStringForIntegerCodePoint returns the Core Video YCbCr matrix string corresponding to the standard integer code point that you specify.
It panics if CVYCbCrMatrixGetStringForIntegerCodePoint is unavailable at run time; use TryCVYCbCrMatrixGetStringForIntegerCodePoint to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVYCbCrMatrixGetStringForIntegerCodePoint(_:)
func SymbolAddress ¶
SymbolAddress returns the address of name in CoreVideo, whether or not this package generated a binding for it.
What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.
The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.
func TryCVBufferCopyAttachment ¶
func TryCVBufferCopyAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, attachmentMode *CVAttachmentMode) (corefoundation.CFTypeRef, error)
TryCVBufferCopyAttachment is like CVBufferCopyAttachment but returns an error instead of panicking if CVBufferCopyAttachment is unavailable at run time.
func TryCVBufferCopyAttachments ¶
func TryCVBufferCopyAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) (corefoundation.CFDictionaryRef, error)
TryCVBufferCopyAttachments is like CVBufferCopyAttachments but returns an error instead of panicking if CVBufferCopyAttachments is unavailable at run time.
func TryCVBufferGetAttachment ¶
func TryCVBufferGetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, attachmentMode *CVAttachmentMode) (corefoundation.CFTypeRef, error)
TryCVBufferGetAttachment is like CVBufferGetAttachment but returns an error instead of panicking if CVBufferGetAttachment is unavailable at run time.
func TryCVBufferGetAttachments ¶
func TryCVBufferGetAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) (corefoundation.CFDictionaryRef, error)
TryCVBufferGetAttachments is like CVBufferGetAttachments but returns an error instead of panicking if CVBufferGetAttachments is unavailable at run time.
func TryCVBufferHasAttachment ¶
func TryCVBufferHasAttachment(buffer CVBufferRef, key corefoundation.CFStringRef) (bool, error)
TryCVBufferHasAttachment is like CVBufferHasAttachment but returns an error instead of panicking if CVBufferHasAttachment is unavailable at run time.
func TryCVBufferPropagateAttachments ¶
func TryCVBufferPropagateAttachments(sourceBuffer CVBufferRef, destinationBuffer CVBufferRef) error
TryCVBufferPropagateAttachments is like CVBufferPropagateAttachments but returns an error instead of panicking if CVBufferPropagateAttachments is unavailable at run time.
func TryCVBufferRelease ¶
func TryCVBufferRelease(buffer CVBufferRef) error
TryCVBufferRelease is like CVBufferRelease but returns an error instead of panicking if CVBufferRelease is unavailable at run time.
func TryCVBufferRemoveAllAttachments ¶
func TryCVBufferRemoveAllAttachments(buffer CVBufferRef) error
TryCVBufferRemoveAllAttachments is like CVBufferRemoveAllAttachments but returns an error instead of panicking if CVBufferRemoveAllAttachments is unavailable at run time.
func TryCVBufferRemoveAttachment ¶
func TryCVBufferRemoveAttachment(buffer CVBufferRef, key corefoundation.CFStringRef) error
TryCVBufferRemoveAttachment is like CVBufferRemoveAttachment but returns an error instead of panicking if CVBufferRemoveAttachment is unavailable at run time.
func TryCVBufferSetAttachment ¶
func TryCVBufferSetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, value corefoundation.CFTypeRef, attachmentMode CVAttachmentMode) error
TryCVBufferSetAttachment is like CVBufferSetAttachment but returns an error instead of panicking if CVBufferSetAttachment is unavailable at run time.
func TryCVBufferSetAttachments ¶
func TryCVBufferSetAttachments(buffer CVBufferRef, theAttachments corefoundation.CFDictionaryRef, attachmentMode CVAttachmentMode) error
TryCVBufferSetAttachments is like CVBufferSetAttachments but returns an error instead of panicking if CVBufferSetAttachments is unavailable at run time.
func TryCVColorPrimariesGetIntegerCodePointForString ¶
func TryCVColorPrimariesGetIntegerCodePointForString(colorPrimariesString corefoundation.CFStringRef) (int32, error)
TryCVColorPrimariesGetIntegerCodePointForString is like CVColorPrimariesGetIntegerCodePointForString but returns an error instead of panicking if CVColorPrimariesGetIntegerCodePointForString is unavailable at run time.
func TryCVColorPrimariesGetStringForIntegerCodePoint ¶
func TryCVColorPrimariesGetStringForIntegerCodePoint(colorPrimariesCodePoint int32) (corefoundation.CFStringRef, error)
TryCVColorPrimariesGetStringForIntegerCodePoint is like CVColorPrimariesGetStringForIntegerCodePoint but returns an error instead of panicking if CVColorPrimariesGetStringForIntegerCodePoint is unavailable at run time.
func TryCVDisplayLinkGetActualOutputVideoRefreshPeriod ¶
func TryCVDisplayLinkGetActualOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) (float64, error)
TryCVDisplayLinkGetActualOutputVideoRefreshPeriod is like CVDisplayLinkGetActualOutputVideoRefreshPeriod but returns an error instead of panicking if CVDisplayLinkGetActualOutputVideoRefreshPeriod is unavailable at run time.
func TryCVDisplayLinkGetCurrentCGDisplay ¶
func TryCVDisplayLinkGetCurrentCGDisplay(displayLink CVDisplayLinkRef) (uint32, error)
TryCVDisplayLinkGetCurrentCGDisplay is like CVDisplayLinkGetCurrentCGDisplay but returns an error instead of panicking if CVDisplayLinkGetCurrentCGDisplay is unavailable at run time.
func TryCVDisplayLinkGetTypeID ¶
TryCVDisplayLinkGetTypeID is like CVDisplayLinkGetTypeID but returns an error instead of panicking if CVDisplayLinkGetTypeID is unavailable at run time.
func TryCVDisplayLinkIsRunning ¶
func TryCVDisplayLinkIsRunning(displayLink CVDisplayLinkRef) (bool, error)
TryCVDisplayLinkIsRunning is like CVDisplayLinkIsRunning but returns an error instead of panicking if CVDisplayLinkIsRunning is unavailable at run time.
func TryCVDisplayLinkRelease ¶
func TryCVDisplayLinkRelease(displayLink CVDisplayLinkRef) error
TryCVDisplayLinkRelease is like CVDisplayLinkRelease but returns an error instead of panicking if CVDisplayLinkRelease is unavailable at run time.
func TryCVGetCurrentHostTime ¶
TryCVGetCurrentHostTime is like CVGetCurrentHostTime but returns an error instead of panicking if CVGetCurrentHostTime is unavailable at run time.
func TryCVGetHostClockFrequency ¶
TryCVGetHostClockFrequency is like CVGetHostClockFrequency but returns an error instead of panicking if CVGetHostClockFrequency is unavailable at run time.
func TryCVGetHostClockMinimumTimeDelta ¶
TryCVGetHostClockMinimumTimeDelta is like CVGetHostClockMinimumTimeDelta but returns an error instead of panicking if CVGetHostClockMinimumTimeDelta is unavailable at run time.
func TryCVImageBufferCreateColorSpaceFromAttachments ¶
func TryCVImageBufferCreateColorSpaceFromAttachments(attachments corefoundation.CFDictionaryRef) (coregraphics.CGColorSpaceRef, error)
TryCVImageBufferCreateColorSpaceFromAttachments is like CVImageBufferCreateColorSpaceFromAttachments but returns an error instead of panicking if CVImageBufferCreateColorSpaceFromAttachments is unavailable at run time.
func TryCVImageBufferGetCleanRect ¶
func TryCVImageBufferGetCleanRect(imageBuffer CVImageBufferRef) (corefoundation.CGRect, error)
TryCVImageBufferGetCleanRect is like CVImageBufferGetCleanRect but returns an error instead of panicking if CVImageBufferGetCleanRect is unavailable at run time.
func TryCVImageBufferGetColorSpace ¶
func TryCVImageBufferGetColorSpace(imageBuffer CVImageBufferRef) (coregraphics.CGColorSpaceRef, error)
TryCVImageBufferGetColorSpace is like CVImageBufferGetColorSpace but returns an error instead of panicking if CVImageBufferGetColorSpace is unavailable at run time.
func TryCVImageBufferGetDisplaySize ¶
func TryCVImageBufferGetDisplaySize(imageBuffer CVImageBufferRef) (corefoundation.CGSize, error)
TryCVImageBufferGetDisplaySize is like CVImageBufferGetDisplaySize but returns an error instead of panicking if CVImageBufferGetDisplaySize is unavailable at run time.
func TryCVImageBufferGetEncodedSize ¶
func TryCVImageBufferGetEncodedSize(imageBuffer CVImageBufferRef) (corefoundation.CGSize, error)
TryCVImageBufferGetEncodedSize is like CVImageBufferGetEncodedSize but returns an error instead of panicking if CVImageBufferGetEncodedSize is unavailable at run time.
func TryCVImageBufferIsFlipped ¶
func TryCVImageBufferIsFlipped(imageBuffer CVImageBufferRef) (bool, error)
TryCVImageBufferIsFlipped is like CVImageBufferIsFlipped but returns an error instead of panicking if CVImageBufferIsFlipped is unavailable at run time.
func TryCVIsCompressedPixelFormatAvailable ¶
TryCVIsCompressedPixelFormatAvailable is like CVIsCompressedPixelFormatAvailable but returns an error instead of panicking if CVIsCompressedPixelFormatAvailable is unavailable at run time.
func TryCVMetalBufferCacheFlush ¶
func TryCVMetalBufferCacheFlush(bufferCache CVMetalBufferCacheRef, options CVOptionFlags) error
TryCVMetalBufferCacheFlush is like CVMetalBufferCacheFlush but returns an error instead of panicking if CVMetalBufferCacheFlush is unavailable at run time.
func TryCVMetalBufferCacheGetTypeID ¶
TryCVMetalBufferCacheGetTypeID is like CVMetalBufferCacheGetTypeID but returns an error instead of panicking if CVMetalBufferCacheGetTypeID is unavailable at run time.
func TryCVMetalBufferGetBuffer ¶
func TryCVMetalBufferGetBuffer(buffer CVMetalBufferRef) (metal.MTLBufferObject, error)
TryCVMetalBufferGetBuffer is like CVMetalBufferGetBuffer but returns an error instead of panicking if CVMetalBufferGetBuffer is unavailable at run time.
func TryCVMetalBufferGetTypeID ¶
TryCVMetalBufferGetTypeID is like CVMetalBufferGetTypeID but returns an error instead of panicking if CVMetalBufferGetTypeID is unavailable at run time.
func TryCVMetalTextureCacheFlush ¶
func TryCVMetalTextureCacheFlush(textureCache CVMetalTextureCacheRef, options CVOptionFlags) error
TryCVMetalTextureCacheFlush is like CVMetalTextureCacheFlush but returns an error instead of panicking if CVMetalTextureCacheFlush is unavailable at run time.
func TryCVMetalTextureCacheGetTypeID ¶
TryCVMetalTextureCacheGetTypeID is like CVMetalTextureCacheGetTypeID but returns an error instead of panicking if CVMetalTextureCacheGetTypeID is unavailable at run time.
func TryCVMetalTextureGetCleanTexCoords ¶
func TryCVMetalTextureGetCleanTexCoords(image CVMetalTextureRef, lowerLeft unsafe.Pointer, lowerRight unsafe.Pointer, upperRight unsafe.Pointer, upperLeft unsafe.Pointer) error
TryCVMetalTextureGetCleanTexCoords is like CVMetalTextureGetCleanTexCoords but returns an error instead of panicking if CVMetalTextureGetCleanTexCoords is unavailable at run time.
func TryCVMetalTextureGetTexture ¶
func TryCVMetalTextureGetTexture(image CVMetalTextureRef) (metal.MTLTextureObject, error)
TryCVMetalTextureGetTexture is like CVMetalTextureGetTexture but returns an error instead of panicking if CVMetalTextureGetTexture is unavailable at run time.
func TryCVMetalTextureGetTypeID ¶
TryCVMetalTextureGetTypeID is like CVMetalTextureGetTypeID but returns an error instead of panicking if CVMetalTextureGetTypeID is unavailable at run time.
func TryCVMetalTextureIsFlipped ¶
func TryCVMetalTextureIsFlipped(image CVMetalTextureRef) (bool, error)
TryCVMetalTextureIsFlipped is like CVMetalTextureIsFlipped but returns an error instead of panicking if CVMetalTextureIsFlipped is unavailable at run time.
func TryCVOpenGLBufferGetAttributes ¶
func TryCVOpenGLBufferGetAttributes(openGLBuffer CVOpenGLBufferRef) (corefoundation.CFDictionaryRef, error)
TryCVOpenGLBufferGetAttributes is like CVOpenGLBufferGetAttributes but returns an error instead of panicking if CVOpenGLBufferGetAttributes is unavailable at run time.
func TryCVOpenGLBufferGetTypeID ¶
TryCVOpenGLBufferGetTypeID is like CVOpenGLBufferGetTypeID but returns an error instead of panicking if CVOpenGLBufferGetTypeID is unavailable at run time.
func TryCVOpenGLBufferPoolGetAttributes ¶
func TryCVOpenGLBufferPoolGetAttributes(pool CVOpenGLBufferPoolRef) (corefoundation.CFDictionaryRef, error)
TryCVOpenGLBufferPoolGetAttributes is like CVOpenGLBufferPoolGetAttributes but returns an error instead of panicking if CVOpenGLBufferPoolGetAttributes is unavailable at run time.
func TryCVOpenGLBufferPoolGetOpenGLBufferAttributes ¶
func TryCVOpenGLBufferPoolGetOpenGLBufferAttributes(pool CVOpenGLBufferPoolRef) (corefoundation.CFDictionaryRef, error)
TryCVOpenGLBufferPoolGetOpenGLBufferAttributes is like CVOpenGLBufferPoolGetOpenGLBufferAttributes but returns an error instead of panicking if CVOpenGLBufferPoolGetOpenGLBufferAttributes is unavailable at run time.
func TryCVOpenGLBufferPoolGetTypeID ¶
TryCVOpenGLBufferPoolGetTypeID is like CVOpenGLBufferPoolGetTypeID but returns an error instead of panicking if CVOpenGLBufferPoolGetTypeID is unavailable at run time.
func TryCVOpenGLBufferPoolRelease ¶
func TryCVOpenGLBufferPoolRelease(openGLBufferPool CVOpenGLBufferPoolRef) error
TryCVOpenGLBufferPoolRelease is like CVOpenGLBufferPoolRelease but returns an error instead of panicking if CVOpenGLBufferPoolRelease is unavailable at run time.
func TryCVOpenGLBufferRelease ¶
func TryCVOpenGLBufferRelease(buffer CVOpenGLBufferRef) error
TryCVOpenGLBufferRelease is like CVOpenGLBufferRelease but returns an error instead of panicking if CVOpenGLBufferRelease is unavailable at run time.
func TryCVOpenGLTextureCacheFlush ¶
func TryCVOpenGLTextureCacheFlush(textureCache CVOpenGLTextureCacheRef, options CVOptionFlags) error
TryCVOpenGLTextureCacheFlush is like CVOpenGLTextureCacheFlush but returns an error instead of panicking if CVOpenGLTextureCacheFlush is unavailable at run time.
func TryCVOpenGLTextureCacheGetTypeID ¶
TryCVOpenGLTextureCacheGetTypeID is like CVOpenGLTextureCacheGetTypeID but returns an error instead of panicking if CVOpenGLTextureCacheGetTypeID is unavailable at run time.
func TryCVOpenGLTextureCacheRelease ¶
func TryCVOpenGLTextureCacheRelease(textureCache CVOpenGLTextureCacheRef) error
TryCVOpenGLTextureCacheRelease is like CVOpenGLTextureCacheRelease but returns an error instead of panicking if CVOpenGLTextureCacheRelease is unavailable at run time.
func TryCVOpenGLTextureGetCleanTexCoords ¶
func TryCVOpenGLTextureGetCleanTexCoords(image CVOpenGLTextureRef, lowerLeft float32, lowerRight float32, upperRight float32, upperLeft float32) error
TryCVOpenGLTextureGetCleanTexCoords is like CVOpenGLTextureGetCleanTexCoords but returns an error instead of panicking if CVOpenGLTextureGetCleanTexCoords is unavailable at run time.
func TryCVOpenGLTextureGetName ¶
func TryCVOpenGLTextureGetName(image CVOpenGLTextureRef) (uint32, error)
TryCVOpenGLTextureGetName is like CVOpenGLTextureGetName but returns an error instead of panicking if CVOpenGLTextureGetName is unavailable at run time.
func TryCVOpenGLTextureGetTarget ¶
func TryCVOpenGLTextureGetTarget(image CVOpenGLTextureRef) (uint32, error)
TryCVOpenGLTextureGetTarget is like CVOpenGLTextureGetTarget but returns an error instead of panicking if CVOpenGLTextureGetTarget is unavailable at run time.
func TryCVOpenGLTextureGetTypeID ¶
TryCVOpenGLTextureGetTypeID is like CVOpenGLTextureGetTypeID but returns an error instead of panicking if CVOpenGLTextureGetTypeID is unavailable at run time.
func TryCVOpenGLTextureIsFlipped ¶
func TryCVOpenGLTextureIsFlipped(image CVOpenGLTextureRef) (bool, error)
TryCVOpenGLTextureIsFlipped is like CVOpenGLTextureIsFlipped but returns an error instead of panicking if CVOpenGLTextureIsFlipped is unavailable at run time.
func TryCVOpenGLTextureRelease ¶
func TryCVOpenGLTextureRelease(texture CVOpenGLTextureRef) error
TryCVOpenGLTextureRelease is like CVOpenGLTextureRelease but returns an error instead of panicking if CVOpenGLTextureRelease is unavailable at run time.
func TryCVPixelBufferCopyCreationAttributes ¶
func TryCVPixelBufferCopyCreationAttributes(pixelBuffer CVPixelBufferRef) (corefoundation.CFDictionaryRef, error)
TryCVPixelBufferCopyCreationAttributes is like CVPixelBufferCopyCreationAttributes but returns an error instead of panicking if CVPixelBufferCopyCreationAttributes is unavailable at run time.
func TryCVPixelBufferGetBaseAddress ¶
func TryCVPixelBufferGetBaseAddress(pixelBuffer CVPixelBufferRef) (unsafe.Pointer, error)
TryCVPixelBufferGetBaseAddress is like CVPixelBufferGetBaseAddress but returns an error instead of panicking if CVPixelBufferGetBaseAddress is unavailable at run time.
func TryCVPixelBufferGetBaseAddressOfPlane ¶
func TryCVPixelBufferGetBaseAddressOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (unsafe.Pointer, error)
TryCVPixelBufferGetBaseAddressOfPlane is like CVPixelBufferGetBaseAddressOfPlane but returns an error instead of panicking if CVPixelBufferGetBaseAddressOfPlane is unavailable at run time.
func TryCVPixelBufferGetBytesPerRow ¶
func TryCVPixelBufferGetBytesPerRow(pixelBuffer CVPixelBufferRef) (uintptr, error)
TryCVPixelBufferGetBytesPerRow is like CVPixelBufferGetBytesPerRow but returns an error instead of panicking if CVPixelBufferGetBytesPerRow is unavailable at run time.
func TryCVPixelBufferGetBytesPerRowOfPlane ¶
func TryCVPixelBufferGetBytesPerRowOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (uintptr, error)
TryCVPixelBufferGetBytesPerRowOfPlane is like CVPixelBufferGetBytesPerRowOfPlane but returns an error instead of panicking if CVPixelBufferGetBytesPerRowOfPlane is unavailable at run time.
func TryCVPixelBufferGetDataSize ¶
func TryCVPixelBufferGetDataSize(pixelBuffer CVPixelBufferRef) (uintptr, error)
TryCVPixelBufferGetDataSize is like CVPixelBufferGetDataSize but returns an error instead of panicking if CVPixelBufferGetDataSize is unavailable at run time.
func TryCVPixelBufferGetExtendedPixels ¶
func TryCVPixelBufferGetExtendedPixels(pixelBuffer CVPixelBufferRef, extraColumnsOnLeft *uintptr, extraColumnsOnRight *uintptr, extraRowsOnTop *uintptr, extraRowsOnBottom *uintptr) error
TryCVPixelBufferGetExtendedPixels is like CVPixelBufferGetExtendedPixels but returns an error instead of panicking if CVPixelBufferGetExtendedPixels is unavailable at run time.
func TryCVPixelBufferGetHeight ¶
func TryCVPixelBufferGetHeight(pixelBuffer CVPixelBufferRef) (uintptr, error)
TryCVPixelBufferGetHeight is like CVPixelBufferGetHeight but returns an error instead of panicking if CVPixelBufferGetHeight is unavailable at run time.
func TryCVPixelBufferGetHeightOfPlane ¶
func TryCVPixelBufferGetHeightOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (uintptr, error)
TryCVPixelBufferGetHeightOfPlane is like CVPixelBufferGetHeightOfPlane but returns an error instead of panicking if CVPixelBufferGetHeightOfPlane is unavailable at run time.
func TryCVPixelBufferGetIOSurface ¶
func TryCVPixelBufferGetIOSurface(pixelBuffer CVPixelBufferRef) (unsafe.Pointer, error)
TryCVPixelBufferGetIOSurface is like CVPixelBufferGetIOSurface but returns an error instead of panicking if CVPixelBufferGetIOSurface is unavailable at run time.
func TryCVPixelBufferGetPixelFormatType ¶
func TryCVPixelBufferGetPixelFormatType(pixelBuffer CVPixelBufferRef) (uint32, error)
TryCVPixelBufferGetPixelFormatType is like CVPixelBufferGetPixelFormatType but returns an error instead of panicking if CVPixelBufferGetPixelFormatType is unavailable at run time.
func TryCVPixelBufferGetPlaneCount ¶
func TryCVPixelBufferGetPlaneCount(pixelBuffer CVPixelBufferRef) (uintptr, error)
TryCVPixelBufferGetPlaneCount is like CVPixelBufferGetPlaneCount but returns an error instead of panicking if CVPixelBufferGetPlaneCount is unavailable at run time.
func TryCVPixelBufferGetTypeID ¶
TryCVPixelBufferGetTypeID is like CVPixelBufferGetTypeID but returns an error instead of panicking if CVPixelBufferGetTypeID is unavailable at run time.
func TryCVPixelBufferGetWidth ¶
func TryCVPixelBufferGetWidth(pixelBuffer CVPixelBufferRef) (uintptr, error)
TryCVPixelBufferGetWidth is like CVPixelBufferGetWidth but returns an error instead of panicking if CVPixelBufferGetWidth is unavailable at run time.
func TryCVPixelBufferGetWidthOfPlane ¶
func TryCVPixelBufferGetWidthOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) (uintptr, error)
TryCVPixelBufferGetWidthOfPlane is like CVPixelBufferGetWidthOfPlane but returns an error instead of panicking if CVPixelBufferGetWidthOfPlane is unavailable at run time.
func TryCVPixelBufferIsCompatibleWithAttributes ¶
func TryCVPixelBufferIsCompatibleWithAttributes(pixelBuffer CVPixelBufferRef, attributes corefoundation.CFDictionaryRef) (bool, error)
TryCVPixelBufferIsCompatibleWithAttributes is like CVPixelBufferIsCompatibleWithAttributes but returns an error instead of panicking if CVPixelBufferIsCompatibleWithAttributes is unavailable at run time.
func TryCVPixelBufferIsPlanar ¶
func TryCVPixelBufferIsPlanar(pixelBuffer CVPixelBufferRef) (bool, error)
TryCVPixelBufferIsPlanar is like CVPixelBufferIsPlanar but returns an error instead of panicking if CVPixelBufferIsPlanar is unavailable at run time.
func TryCVPixelBufferPoolFlush ¶
func TryCVPixelBufferPoolFlush(pool CVPixelBufferPoolRef, options CVPixelBufferPoolFlushFlags) error
TryCVPixelBufferPoolFlush is like CVPixelBufferPoolFlush but returns an error instead of panicking if CVPixelBufferPoolFlush is unavailable at run time.
func TryCVPixelBufferPoolGetAttributes ¶
func TryCVPixelBufferPoolGetAttributes(pool CVPixelBufferPoolRef) (corefoundation.CFDictionaryRef, error)
TryCVPixelBufferPoolGetAttributes is like CVPixelBufferPoolGetAttributes but returns an error instead of panicking if CVPixelBufferPoolGetAttributes is unavailable at run time.
func TryCVPixelBufferPoolGetPixelBufferAttributes ¶
func TryCVPixelBufferPoolGetPixelBufferAttributes(pool CVPixelBufferPoolRef) (corefoundation.CFDictionaryRef, error)
TryCVPixelBufferPoolGetPixelBufferAttributes is like CVPixelBufferPoolGetPixelBufferAttributes but returns an error instead of panicking if CVPixelBufferPoolGetPixelBufferAttributes is unavailable at run time.
func TryCVPixelBufferPoolGetTypeID ¶
TryCVPixelBufferPoolGetTypeID is like CVPixelBufferPoolGetTypeID but returns an error instead of panicking if CVPixelBufferPoolGetTypeID is unavailable at run time.
func TryCVPixelBufferPoolRelease ¶
func TryCVPixelBufferPoolRelease(pixelBufferPool CVPixelBufferPoolRef) error
TryCVPixelBufferPoolRelease is like CVPixelBufferPoolRelease but returns an error instead of panicking if CVPixelBufferPoolRelease is unavailable at run time.
func TryCVPixelBufferRelease ¶
func TryCVPixelBufferRelease(texture CVPixelBufferRef) error
TryCVPixelBufferRelease is like CVPixelBufferRelease but returns an error instead of panicking if CVPixelBufferRelease is unavailable at run time.
func TryCVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes ¶
func TryCVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(allocator corefoundation.CFAllocatorRef) (corefoundation.CFArrayRef, error)
TryCVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes is like CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes but returns an error instead of panicking if CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes is unavailable at run time.
func TryCVPixelFormatDescriptionCreateWithPixelFormatType ¶
func TryCVPixelFormatDescriptionCreateWithPixelFormatType(allocator corefoundation.CFAllocatorRef, pixelFormat uint32) (corefoundation.CFDictionaryRef, error)
TryCVPixelFormatDescriptionCreateWithPixelFormatType is like CVPixelFormatDescriptionCreateWithPixelFormatType but returns an error instead of panicking if CVPixelFormatDescriptionCreateWithPixelFormatType is unavailable at run time.
func TryCVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType ¶
func TryCVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description corefoundation.CFDictionaryRef, pixelFormat uint32) error
TryCVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType is like CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType but returns an error instead of panicking if CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType is unavailable at run time.
func TryCVPixelFormatTypeCopyFourCharCodeString ¶
func TryCVPixelFormatTypeCopyFourCharCodeString(pixelFormat uint32) (corefoundation.CFStringRef, error)
TryCVPixelFormatTypeCopyFourCharCodeString is like CVPixelFormatTypeCopyFourCharCodeString but returns an error instead of panicking if CVPixelFormatTypeCopyFourCharCodeString is unavailable at run time.
func TryCVTransferFunctionGetIntegerCodePointForString ¶
func TryCVTransferFunctionGetIntegerCodePointForString(transferFunctionString corefoundation.CFStringRef) (int32, error)
TryCVTransferFunctionGetIntegerCodePointForString is like CVTransferFunctionGetIntegerCodePointForString but returns an error instead of panicking if CVTransferFunctionGetIntegerCodePointForString is unavailable at run time.
func TryCVTransferFunctionGetStringForIntegerCodePoint ¶
func TryCVTransferFunctionGetStringForIntegerCodePoint(transferFunctionCodePoint int32) (corefoundation.CFStringRef, error)
TryCVTransferFunctionGetStringForIntegerCodePoint is like CVTransferFunctionGetStringForIntegerCodePoint but returns an error instead of panicking if CVTransferFunctionGetStringForIntegerCodePoint is unavailable at run time.
func TryCVYCbCrMatrixGetIntegerCodePointForString ¶
func TryCVYCbCrMatrixGetIntegerCodePointForString(yCbCrMatrixString corefoundation.CFStringRef) (int32, error)
TryCVYCbCrMatrixGetIntegerCodePointForString is like CVYCbCrMatrixGetIntegerCodePointForString but returns an error instead of panicking if CVYCbCrMatrixGetIntegerCodePointForString is unavailable at run time.
func TryCVYCbCrMatrixGetStringForIntegerCodePoint ¶
func TryCVYCbCrMatrixGetStringForIntegerCodePoint(yCbCrMatrixCodePoint int32) (corefoundation.CFStringRef, error)
TryCVYCbCrMatrixGetStringForIntegerCodePoint is like CVYCbCrMatrixGetStringForIntegerCodePoint but returns an error instead of panicking if CVYCbCrMatrixGetStringForIntegerCodePoint is unavailable at run time.
Types ¶
type CVAttachmentMode ¶
type CVAttachmentMode uint32
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
CVBufferRef is a reference to a Core Video buffer.
See: https://developer.apple.com/documentation/CoreVideo/CVBuffer
func CVBufferRetain ¶
func CVBufferRetain(buffer CVBufferRef) CVBufferRef
CVBufferRetain retains a Core Video buffer.
It panics if CVBufferRetain is unavailable at run time; use TryCVBufferRetain to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVBufferRetain
func TryCVBufferRetain ¶
func TryCVBufferRetain(buffer CVBufferRef) (CVBufferRef, error)
TryCVBufferRetain is like CVBufferRetain but returns an error instead of panicking if CVBufferRetain is unavailable at run time.
type CVDisplayLinkOutputCallback ¶
type CVDisplayLinkOutputCallback = func(displayLink CVDisplayLinkRef, inNow *CVTimeStamp, inOutputTime *CVTimeStamp, flagsIn uint64, flagsOut *uint64, displayLinkContext unsafe.Pointer) int32
CVDisplayLinkOutputCallback is a type for a display link callback function that the system invokes when it’s time for the app to output a video frame.
See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkOutputCallback
type CVDisplayLinkOutputHandler ¶
type CVDisplayLinkOutputHandler = func(*CVDisplayLinkRef, *CVTimeStamp, *CVTimeStamp, uint64, *uint64) int32
See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkOutputHandler
type CVDisplayLinkRef ¶
type CVDisplayLinkRef uintptr
CVDisplayLinkRef is a reference to a display link object.
See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLink
func CVDisplayLinkRetain
deprecated
func CVDisplayLinkRetain(displayLink CVDisplayLinkRef) CVDisplayLinkRef
CVDisplayLinkRetain retains a display link.
It panics if CVDisplayLinkRetain is unavailable at run time; use TryCVDisplayLinkRetain to get an error instead.
Deprecated: Deprecated since macOS 15.0.
See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkRetain
func TryCVDisplayLinkRetain ¶
func TryCVDisplayLinkRetain(displayLink CVDisplayLinkRef) (CVDisplayLinkRef, error)
TryCVDisplayLinkRetain is like CVDisplayLinkRetain but returns an error instead of panicking if CVDisplayLinkRetain is unavailable at run time.
type CVFillExtendedPixelsCallBack ¶
type CVFillExtendedPixelsCallBack = func(pixelBuffer CVBufferRef, refCon unsafe.Pointer) uint8
CVFillExtendedPixelsCallBack is defines a pointer to a custom extended pixel-fill function, which is called whenever the system needs to pad a buffer holding your custom pixel format.
See: https://developer.apple.com/documentation/CoreVideo/CVFillExtendedPixelsCallBack
type CVFillExtendedPixelsCallBackData ¶
type CVFillExtendedPixelsCallBackData struct {
Version int // The version of this fill algorithm.
// C: CVFillExtendedPixelsCallBack (unsigned char (*)(struct __CVBuffer *, void *))
FillCallBack uintptr
RefCon unsafe.Pointer // A pointer to application-defined data that is passed to your custom pixel fill function.
}
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
CVImageBufferRef is a reference to a Core Video image buffer.
See: https://developer.apple.com/documentation/CoreVideo/CVImageBuffer
type CVMetalBufferCacheRef ¶
type CVMetalBufferCacheRef uintptr
See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCache
type CVMetalBufferRef ¶
type CVMetalBufferRef uintptr
See: https://developer.apple.com/documentation/CoreVideo/CVMetalBuffer
type CVMetalTextureCacheRef ¶
type CVMetalTextureCacheRef uintptr
CVMetalTextureCacheRef is a reference to a Core Video Metal texture cache.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCache
type CVMetalTextureRef ¶
type CVMetalTextureRef uintptr
CVMetalTextureRef is a reference to a CoreVideo Metal texture-based image buffer.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalTexture
type CVOpenGLBufferPoolRef ¶
type CVOpenGLBufferPoolRef uintptr
CVOpenGLBufferPoolRef is a reference to an OpenGL buffer pool object.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPool
func CVOpenGLBufferPoolRetain
deprecated
func CVOpenGLBufferPoolRetain(openGLBufferPool CVOpenGLBufferPoolRef) CVOpenGLBufferPoolRef
CVOpenGLBufferPoolRetain retains an OpenGL buffer pool.
It panics if CVOpenGLBufferPoolRetain is unavailable at run time; use TryCVOpenGLBufferPoolRetain to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolRetain
func TryCVOpenGLBufferPoolRetain ¶
func TryCVOpenGLBufferPoolRetain(openGLBufferPool CVOpenGLBufferPoolRef) (CVOpenGLBufferPoolRef, error)
TryCVOpenGLBufferPoolRetain is like CVOpenGLBufferPoolRetain but returns an error instead of panicking if CVOpenGLBufferPoolRetain is unavailable at run time.
type CVOpenGLBufferRef ¶
type CVOpenGLBufferRef uintptr
CVOpenGLBufferRef is a reference to a Core Video OpenGL buffer object.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBuffer
func CVOpenGLBufferRetain
deprecated
func CVOpenGLBufferRetain(buffer CVOpenGLBufferRef) CVOpenGLBufferRef
CVOpenGLBufferRetain retains a Core Video OpenGL buffer.
It panics if CVOpenGLBufferRetain is unavailable at run time; use TryCVOpenGLBufferRetain to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferRetain
func TryCVOpenGLBufferRetain ¶
func TryCVOpenGLBufferRetain(buffer CVOpenGLBufferRef) (CVOpenGLBufferRef, error)
TryCVOpenGLBufferRetain is like CVOpenGLBufferRetain but returns an error instead of panicking if CVOpenGLBufferRetain is unavailable at run time.
type CVOpenGLTextureCacheRef ¶
type CVOpenGLTextureCacheRef uintptr
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCache
func CVOpenGLTextureCacheRetain
deprecated
func CVOpenGLTextureCacheRetain(textureCache CVOpenGLTextureCacheRef) CVOpenGLTextureCacheRef
CVOpenGLTextureCacheRetain retains a texture cache object.
It panics if CVOpenGLTextureCacheRetain is unavailable at run time; use TryCVOpenGLTextureCacheRetain to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheRetain
func TryCVOpenGLTextureCacheRetain ¶
func TryCVOpenGLTextureCacheRetain(textureCache CVOpenGLTextureCacheRef) (CVOpenGLTextureCacheRef, error)
TryCVOpenGLTextureCacheRetain is like CVOpenGLTextureCacheRetain but returns an error instead of panicking if CVOpenGLTextureCacheRetain is unavailable at run time.
type CVOpenGLTextureRef ¶
type CVOpenGLTextureRef uintptr
CVOpenGLTextureRef is a reference to an OpenGL texture-based image buffer object.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTexture
func CVOpenGLTextureRetain
deprecated
func CVOpenGLTextureRetain(texture CVOpenGLTextureRef) CVOpenGLTextureRef
CVOpenGLTextureRetain retains a Core Video OpenGL texture.
It panics if CVOpenGLTextureRetain is unavailable at run time; use TryCVOpenGLTextureRetain to get an error instead.
Deprecated: Deprecated since macOS 10.14.
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureRetain
func TryCVOpenGLTextureRetain ¶
func TryCVOpenGLTextureRetain(texture CVOpenGLTextureRef) (CVOpenGLTextureRef, error)
TryCVOpenGLTextureRetain is like CVOpenGLTextureRetain but returns an error instead of panicking if CVOpenGLTextureRetain is unavailable at run time.
type CVOptionFlags ¶
type CVOptionFlags = uint64
CVOptionFlags is the flags to be used for the display link output callback function.
See: https://developer.apple.com/documentation/CoreVideo/CVOptionFlags
type CVPixelBufferLockFlags ¶
type CVPixelBufferLockFlags uint64
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferLockFlags
const ( // KCVPixelBufferLock_ReadOnly: A read-only buffer. KCVPixelBufferLock_ReadOnly CVPixelBufferLockFlags = 0x1 )
func (CVPixelBufferLockFlags) String ¶
func (e CVPixelBufferLockFlags) String() string
type CVPixelBufferPoolFlushFlags ¶
type CVPixelBufferPoolFlushFlags uint64
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 ¶
func (e CVPixelBufferPoolFlushFlags) String() string
type CVPixelBufferPoolRef ¶
type CVPixelBufferPoolRef uintptr
CVPixelBufferPoolRef is a reference to a pixel buffer pool object.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPool
func CVPixelBufferPoolRetain ¶
func CVPixelBufferPoolRetain(pixelBufferPool CVPixelBufferPoolRef) CVPixelBufferPoolRef
CVPixelBufferPoolRetain retains the pixel buffer pool that you specify.
It panics if CVPixelBufferPoolRetain is unavailable at run time; use TryCVPixelBufferPoolRetain to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolRetain
func TryCVPixelBufferPoolRetain ¶
func TryCVPixelBufferPoolRetain(pixelBufferPool CVPixelBufferPoolRef) (CVPixelBufferPoolRef, error)
TryCVPixelBufferPoolRetain is like CVPixelBufferPoolRetain but returns an error instead of panicking if CVPixelBufferPoolRetain is unavailable at run time.
type CVPixelBufferRef ¶
type CVPixelBufferRef uintptr
CVPixelBufferRef is a reference to a Core Video pixel buffer object.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBuffer
func CVPixelBufferRetain ¶
func CVPixelBufferRetain(texture CVPixelBufferRef) CVPixelBufferRef
CVPixelBufferRetain retains a pixel buffer.
It panics if CVPixelBufferRetain is unavailable at run time; use TryCVPixelBufferRetain to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferRetain
func TryCVPixelBufferRetain ¶
func TryCVPixelBufferRetain(texture CVPixelBufferRef) (CVPixelBufferRef, error)
TryCVPixelBufferRetain is like CVPixelBufferRetain but returns an error instead of panicking if CVPixelBufferRetain is unavailable at run time.
type CVPixelBufferReleaseBytesCallback ¶
type CVPixelBufferReleaseBytesCallback = func(releaseRefCon unsafe.Pointer, baseAddress unsafe.Pointer)
CVPixelBufferReleaseBytesCallback is a type that defines a release callback function.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferReleaseBytesCallback
type CVPixelBufferReleasePlanarBytesCallback ¶
type CVPixelBufferReleasePlanarBytesCallback = func(releaseRefCon unsafe.Pointer, dataPtr unsafe.Pointer, dataSize uint, numberOfPlanes uint, planeAddresses unsafe.Pointer)
CVPixelBufferReleasePlanarBytesCallback is defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by [CVPixelBufferCreateWithPlanarBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)] is released.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferReleasePlanarBytesCallback
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 [1]CVPlanarComponentInfo // An array containing a [CVPlanarComponentInfo](<https://developer.apple.com/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](<https://developer.apple.com/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Y component of the buffer.
ComponentInfoCbCr CVPlanarComponentInfo // A [CVPlanarComponentInfo](<https://developer.apple.com/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](<https://developer.apple.com/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Y component of the buffer.
ComponentInfoCb CVPlanarComponentInfo // A [CVPlanarComponentInfo](<https://developer.apple.com/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Cb component of the buffer.
ComponentInfoCr CVPlanarComponentInfo // A [CVPlanarComponentInfo](<https://developer.apple.com/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
CVReturn is a Core Video error type return value.
See: https://developer.apple.com/documentation/CoreVideo/CVReturn
const ( // KCVReturnAllocationFailed: Memory allocation for a buffer or buffer pool failed. KCVReturnAllocationFailed CVReturn = -6662 // KCVReturnDisplayLinkAlreadyRunning: The specified display link is already running. KCVReturnDisplayLinkAlreadyRunning CVReturn = -6671 // KCVReturnDisplayLinkCallbacksNotSet: No callback registered for the specified display link. KCVReturnDisplayLinkCallbacksNotSet CVReturn = -6673 // KCVReturnDisplayLinkNotRunning: The specified display link is not running. KCVReturnDisplayLinkNotRunning CVReturn = -6672 // KCVReturnError: An otherwise undefined error occurred. KCVReturnError CVReturn = -6660 // KCVReturnFirst: Placeholder to mark the beginning of Core Video result codes (not returned by any functions). KCVReturnFirst CVReturn = -6660 // KCVReturnInvalidArgument: Invalid function parameter. KCVReturnInvalidArgument CVReturn = -6661 // KCVReturnInvalidDisplay: The display specified when creating a display link is invalid. KCVReturnInvalidDisplay CVReturn = -6670 // KCVReturnInvalidPixelBufferAttributes: A buffer cannot be created with the specified attributes. KCVReturnInvalidPixelBufferAttributes CVReturn = -6682 // KCVReturnInvalidPixelFormat: The buffer does not support the specified pixel format. KCVReturnInvalidPixelFormat CVReturn = -6680 // KCVReturnInvalidPoolAttributes: A buffer pool cannot be created with the specified attributes. KCVReturnInvalidPoolAttributes CVReturn = -6691 // KCVReturnInvalidSize: The buffer cannot support the requested buffer size (usually too big). KCVReturnInvalidSize CVReturn = -6681 // KCVReturnLast: Placeholder to mark the end of Core Video result codes (not returned by any functions). KCVReturnLast CVReturn = -6699 // KCVReturnPixelBufferNotMetalCompatible: The pixel buffer is not compatible with Metal due to an unsupported buffer size, pixel format, or attribute. KCVReturnPixelBufferNotMetalCompatible CVReturn = -6684 // KCVReturnPixelBufferNotOpenGLCompatible: The pixel buffer is not compatible with OpenGL due to an unsupported buffer size, pixel format, or attribute. KCVReturnPixelBufferNotOpenGLCompatible CVReturn = -6683 // KCVReturnPoolAllocationFailed: Allocation for a buffer pool failed, most likely due to a lack of resources. KCVReturnPoolAllocationFailed CVReturn = -6690 // KCVReturnRetry: A scan hasn’t completely traversed the [CVBufferPool] due to a concurrent operation. KCVReturnRetry CVReturn = -6692 // KCVReturnSuccess: Indicates the operation completed successfully. KCVReturnSuccess CVReturn = 0 KCVReturnUnsupported CVReturn = -6663 // KCVReturnWouldExceedAllocationThreshold: Allocation for a pixel buffer failed because the threshold value set for the kCVPixelBufferPoolAllocationThresholdKey key in the CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:) function would be surpassed. KCVReturnWouldExceedAllocationThreshold CVReturn = -6689 )
func CVDisplayLinkCreateWithActiveCGDisplays
deprecated
func CVDisplayLinkCreateWithActiveCGDisplays(displayLinkOut *CVDisplayLinkRef) CVReturn
CVDisplayLinkCreateWithActiveCGDisplays creates a display link capable of being used with all active displays.
It panics if CVDisplayLinkCreateWithActiveCGDisplays is unavailable at run time; use TryCVDisplayLinkCreateWithActiveCGDisplays to get an error instead.
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.
It panics if CVDisplayLinkCreateWithCGDisplay is unavailable at run time; use TryCVDisplayLinkCreateWithCGDisplay to get an error instead.
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.
It panics if CVDisplayLinkCreateWithCGDisplays is unavailable at run time; use TryCVDisplayLinkCreateWithCGDisplays to get an error instead.
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 uint32, displayLinkOut *CVDisplayLinkRef) CVReturn
CVDisplayLinkCreateWithOpenGLDisplayMask creates a display link from an OpenGL display mask.
It panics if CVDisplayLinkCreateWithOpenGLDisplayMask is unavailable at run time; use TryCVDisplayLinkCreateWithOpenGLDisplayMask to get an error instead.
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.
It panics if CVDisplayLinkGetCurrentTime is unavailable at run time; use TryCVDisplayLinkGetCurrentTime to get an error instead.
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.
It panics if CVDisplayLinkSetCurrentCGDisplay is unavailable at run time; use TryCVDisplayLinkSetCurrentCGDisplay to get an error instead.
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.
It panics if CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext is unavailable at run time; use TryCVDisplayLinkSetCurrentCGDisplayFromOpenGLContext to get an error instead.
Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
func CVDisplayLinkSetOutputCallback
deprecated
func CVDisplayLinkSetOutputCallback(displayLink CVDisplayLinkRef, callback CVDisplayLinkOutputCallback, userInfo unsafe.Pointer) CVReturn
CVDisplayLinkSetOutputCallback sets the renderer output callback function.
It panics if CVDisplayLinkSetOutputCallback is unavailable at run time; use TryCVDisplayLinkSetOutputCallback to get an error instead.
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.
It panics if CVDisplayLinkSetOutputHandler is unavailable at run time; use TryCVDisplayLinkSetOutputHandler to get an error instead.
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.
It panics if CVDisplayLinkStart is unavailable at run time; use TryCVDisplayLinkStart to get an error instead.
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.
It panics if CVDisplayLinkStop is unavailable at run time; use TryCVDisplayLinkStop to get an error instead.
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.
It panics if CVDisplayLinkTranslateTime is unavailable at run time; use TryCVDisplayLinkTranslateTime to get an error instead.
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 CVMetalBufferCacheCreate ¶
func CVMetalBufferCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, metalDevice metal.MTLDeviceObject, cacheOut *CVMetalBufferCacheRef) CVReturn
CVMetalBufferCacheCreate.
It panics if CVMetalBufferCacheCreate is unavailable at run time; use TryCVMetalBufferCacheCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCacheCreate(_:_:_:_:)
func CVMetalBufferCacheCreateBufferFromImage ¶
func CVMetalBufferCacheCreateBufferFromImage(allocator corefoundation.CFAllocatorRef, bufferCache CVMetalBufferCacheRef, imageBuffer CVImageBufferRef, bufferOut *CVMetalBufferRef) CVReturn
CVMetalBufferCacheCreateBufferFromImage.
It panics if CVMetalBufferCacheCreateBufferFromImage is unavailable at run time; use TryCVMetalBufferCacheCreateBufferFromImage to get an error instead.
func CVMetalTextureCacheCreate ¶
func CVMetalTextureCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, metalDevice metal.MTLDeviceObject, textureAttributes corefoundation.CFDictionaryRef, cacheOut *CVMetalTextureCacheRef) CVReturn
CVMetalTextureCacheCreate creates a new texture cache.
It panics if CVMetalTextureCacheCreate is unavailable at run time; use TryCVMetalTextureCacheCreate to get an error instead.
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.
It panics if CVMetalTextureCacheCreateTextureFromImage is unavailable at run time; use TryCVMetalTextureCacheCreateTextureFromImage to get an error instead.
func CVOpenGLBufferAttach
deprecated
func CVOpenGLBufferAttach(openGLBuffer CVOpenGLBufferRef, cglContext unsafe.Pointer, face uint32, level int32, screen int32) CVReturn
CVOpenGLBufferAttach attaches an OpenGL context to a Core Video OpenGL buffer.
It panics if CVOpenGLBufferAttach is unavailable at run time; use TryCVOpenGLBufferAttach to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferAttach(_:_:_:_:_:)
func CVOpenGLBufferCreate
deprecated
func CVOpenGLBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, attributes corefoundation.CFDictionaryRef, bufferOut *CVOpenGLBufferRef) CVReturn
CVOpenGLBufferCreate creates a new Core Video OpenGL buffer that can be used for OpenGL rendering purposes
It panics if CVOpenGLBufferCreate is unavailable at run time; use TryCVOpenGLBufferCreate to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferCreate(_:_:_:_:_:)
func CVOpenGLBufferPoolCreate
deprecated
func CVOpenGLBufferPoolCreate(allocator corefoundation.CFAllocatorRef, poolAttributes corefoundation.CFDictionaryRef, openGLBufferAttributes corefoundation.CFDictionaryRef, poolOut *CVOpenGLBufferPoolRef) CVReturn
CVOpenGLBufferPoolCreate creates a new OpenGL buffer pool.
It panics if CVOpenGLBufferPoolCreate is unavailable at run time; use TryCVOpenGLBufferPoolCreate to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolCreate(_:_:_:_:)
func CVOpenGLBufferPoolCreateOpenGLBuffer
deprecated
func CVOpenGLBufferPoolCreateOpenGLBuffer(allocator corefoundation.CFAllocatorRef, openGLBufferPool CVOpenGLBufferPoolRef, openGLBufferOut *CVOpenGLBufferRef) CVReturn
CVOpenGLBufferPoolCreateOpenGLBuffer creates a new OpenGL buffer from an OpenGL buffer pool.
It panics if CVOpenGLBufferPoolCreateOpenGLBuffer is unavailable at run time; use TryCVOpenGLBufferPoolCreateOpenGLBuffer to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolCreateOpenGLBuffer(_:_:_:)
func CVOpenGLTextureCacheCreate
deprecated
func CVOpenGLTextureCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, cglContext unsafe.Pointer, cglPixelFormat unsafe.Pointer, textureAttributes corefoundation.CFDictionaryRef, cacheOut *CVOpenGLTextureCacheRef) CVReturn
CVOpenGLTextureCacheCreate creates a new texture cache.
It panics if CVOpenGLTextureCacheCreate is unavailable at run time; use TryCVOpenGLTextureCacheCreate to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheCreate(_:_:_:_:_:_:)
func CVOpenGLTextureCacheCreateTextureFromImage
deprecated
func CVOpenGLTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVOpenGLTextureCacheRef, sourceImage CVImageBufferRef, attributes corefoundation.CFDictionaryRef, textureOut *CVOpenGLTextureRef) CVReturn
CVOpenGLTextureCacheCreateTextureFromImage creates a CVOpenGLTexture object from an existing CVImageBuffer.
It panics if CVOpenGLTextureCacheCreateTextureFromImage is unavailable at run time; use TryCVOpenGLTextureCacheCreateTextureFromImage to get an error instead.
Deprecated: Deprecated since macOS 10.14. OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
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.
It panics if CVPixelBufferCreate is unavailable at run time; use TryCVPixelBufferCreate to get an error instead.
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.
It panics if CVPixelBufferCreateResolvedAttributesDictionary is unavailable at run time; use TryCVPixelBufferCreateResolvedAttributesDictionary to get an error instead.
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.
It panics if CVPixelBufferCreateWithBytes is unavailable at run time; use TryCVPixelBufferCreateWithBytes to get an error instead.
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.
It panics if CVPixelBufferCreateWithIOSurface is unavailable at run time; use TryCVPixelBufferCreateWithIOSurface to get an error instead.
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.
It panics if CVPixelBufferCreateWithPlanarBytes is unavailable at run time; use TryCVPixelBufferCreateWithPlanarBytes to get an error instead.
func CVPixelBufferFillExtendedPixels ¶
func CVPixelBufferFillExtendedPixels(pixelBuffer CVPixelBufferRef) CVReturn
CVPixelBufferFillExtendedPixels fills the extended pixels of the pixel buffer.
It panics if CVPixelBufferFillExtendedPixels is unavailable at run time; use TryCVPixelBufferFillExtendedPixels to get an error instead.
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.
It panics if CVPixelBufferLockBaseAddress is unavailable at run time; use TryCVPixelBufferLockBaseAddress to get an error instead.
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.
It panics if CVPixelBufferPoolCreate is unavailable at run time; use TryCVPixelBufferPoolCreate to get an error instead.
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.
It panics if CVPixelBufferPoolCreatePixelBuffer is unavailable at run time; use TryCVPixelBufferPoolCreatePixelBuffer to get an error instead.
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.
It panics if CVPixelBufferPoolCreatePixelBufferWithAuxAttributes is unavailable at run time; use TryCVPixelBufferPoolCreatePixelBufferWithAuxAttributes to get an error instead.
func CVPixelBufferUnlockBaseAddress ¶
func CVPixelBufferUnlockBaseAddress(pixelBuffer CVPixelBufferRef, unlockFlags CVPixelBufferLockFlags) CVReturn
CVPixelBufferUnlockBaseAddress unlocks the base address of the pixel buffer.
It panics if CVPixelBufferUnlockBaseAddress is unavailable at run time; use TryCVPixelBufferUnlockBaseAddress to get an error instead.
See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferUnlockBaseAddress(_:_:)
func TryCVDisplayLinkCreateWithActiveCGDisplays ¶
func TryCVDisplayLinkCreateWithActiveCGDisplays(displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
TryCVDisplayLinkCreateWithActiveCGDisplays is like CVDisplayLinkCreateWithActiveCGDisplays but returns an error instead of panicking if CVDisplayLinkCreateWithActiveCGDisplays is unavailable at run time.
func TryCVDisplayLinkCreateWithCGDisplay ¶
func TryCVDisplayLinkCreateWithCGDisplay(displayID uint32, displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
TryCVDisplayLinkCreateWithCGDisplay is like CVDisplayLinkCreateWithCGDisplay but returns an error instead of panicking if CVDisplayLinkCreateWithCGDisplay is unavailable at run time.
func TryCVDisplayLinkCreateWithCGDisplays ¶
func TryCVDisplayLinkCreateWithCGDisplays(displayArray *uint32, count int, displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
TryCVDisplayLinkCreateWithCGDisplays is like CVDisplayLinkCreateWithCGDisplays but returns an error instead of panicking if CVDisplayLinkCreateWithCGDisplays is unavailable at run time.
func TryCVDisplayLinkCreateWithOpenGLDisplayMask ¶
func TryCVDisplayLinkCreateWithOpenGLDisplayMask(mask uint32, displayLinkOut *CVDisplayLinkRef) (CVReturn, error)
TryCVDisplayLinkCreateWithOpenGLDisplayMask is like CVDisplayLinkCreateWithOpenGLDisplayMask but returns an error instead of panicking if CVDisplayLinkCreateWithOpenGLDisplayMask is unavailable at run time.
func TryCVDisplayLinkGetCurrentTime ¶
func TryCVDisplayLinkGetCurrentTime(displayLink CVDisplayLinkRef, outTime *CVTimeStamp) (CVReturn, error)
TryCVDisplayLinkGetCurrentTime is like CVDisplayLinkGetCurrentTime but returns an error instead of panicking if CVDisplayLinkGetCurrentTime is unavailable at run time.
func TryCVDisplayLinkSetCurrentCGDisplay ¶
func TryCVDisplayLinkSetCurrentCGDisplay(displayLink CVDisplayLinkRef, displayID uint32) (CVReturn, error)
TryCVDisplayLinkSetCurrentCGDisplay is like CVDisplayLinkSetCurrentCGDisplay but returns an error instead of panicking if CVDisplayLinkSetCurrentCGDisplay is unavailable at run time.
func TryCVDisplayLinkSetCurrentCGDisplayFromOpenGLContext ¶
func TryCVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink CVDisplayLinkRef, cglContext unsafe.Pointer, cglPixelFormat unsafe.Pointer) (CVReturn, error)
TryCVDisplayLinkSetCurrentCGDisplayFromOpenGLContext is like CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext but returns an error instead of panicking if CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext is unavailable at run time.
func TryCVDisplayLinkSetOutputCallback ¶
func TryCVDisplayLinkSetOutputCallback(displayLink CVDisplayLinkRef, callback CVDisplayLinkOutputCallback, userInfo unsafe.Pointer) (CVReturn, error)
TryCVDisplayLinkSetOutputCallback is like CVDisplayLinkSetOutputCallback but returns an error instead of panicking if CVDisplayLinkSetOutputCallback is unavailable at run time.
func TryCVDisplayLinkSetOutputHandler ¶
func TryCVDisplayLinkSetOutputHandler(displayLink CVDisplayLinkRef, handler CVDisplayLinkOutputHandler) (CVReturn, error)
TryCVDisplayLinkSetOutputHandler is like CVDisplayLinkSetOutputHandler but returns an error instead of panicking if CVDisplayLinkSetOutputHandler is unavailable at run time.
func TryCVDisplayLinkStart ¶
func TryCVDisplayLinkStart(displayLink CVDisplayLinkRef) (CVReturn, error)
TryCVDisplayLinkStart is like CVDisplayLinkStart but returns an error instead of panicking if CVDisplayLinkStart is unavailable at run time.
func TryCVDisplayLinkStop ¶
func TryCVDisplayLinkStop(displayLink CVDisplayLinkRef) (CVReturn, error)
TryCVDisplayLinkStop is like CVDisplayLinkStop but returns an error instead of panicking if CVDisplayLinkStop is unavailable at run time.
func TryCVDisplayLinkTranslateTime ¶
func TryCVDisplayLinkTranslateTime(displayLink CVDisplayLinkRef, inTime *CVTimeStamp, outTime *CVTimeStamp) (CVReturn, error)
TryCVDisplayLinkTranslateTime is like CVDisplayLinkTranslateTime but returns an error instead of panicking if CVDisplayLinkTranslateTime is unavailable at run time.
func TryCVMetalBufferCacheCreate ¶
func TryCVMetalBufferCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, metalDevice metal.MTLDeviceObject, cacheOut *CVMetalBufferCacheRef) (CVReturn, error)
TryCVMetalBufferCacheCreate is like CVMetalBufferCacheCreate but returns an error instead of panicking if CVMetalBufferCacheCreate is unavailable at run time.
func TryCVMetalBufferCacheCreateBufferFromImage ¶
func TryCVMetalBufferCacheCreateBufferFromImage(allocator corefoundation.CFAllocatorRef, bufferCache CVMetalBufferCacheRef, imageBuffer CVImageBufferRef, bufferOut *CVMetalBufferRef) (CVReturn, error)
TryCVMetalBufferCacheCreateBufferFromImage is like CVMetalBufferCacheCreateBufferFromImage but returns an error instead of panicking if CVMetalBufferCacheCreateBufferFromImage is unavailable at run time.
func TryCVMetalTextureCacheCreate ¶
func TryCVMetalTextureCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, metalDevice metal.MTLDeviceObject, textureAttributes corefoundation.CFDictionaryRef, cacheOut *CVMetalTextureCacheRef) (CVReturn, error)
TryCVMetalTextureCacheCreate is like CVMetalTextureCacheCreate but returns an error instead of panicking if CVMetalTextureCacheCreate is unavailable at run time.
func TryCVMetalTextureCacheCreateTextureFromImage ¶
func TryCVMetalTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVMetalTextureCacheRef, sourceImage CVImageBufferRef, textureAttributes corefoundation.CFDictionaryRef, pixelFormat metal.MTLPixelFormat, width uintptr, height uintptr, planeIndex uintptr, textureOut *CVMetalTextureRef) (CVReturn, error)
TryCVMetalTextureCacheCreateTextureFromImage is like CVMetalTextureCacheCreateTextureFromImage but returns an error instead of panicking if CVMetalTextureCacheCreateTextureFromImage is unavailable at run time.
func TryCVOpenGLBufferAttach ¶
func TryCVOpenGLBufferAttach(openGLBuffer CVOpenGLBufferRef, cglContext unsafe.Pointer, face uint32, level int32, screen int32) (CVReturn, error)
TryCVOpenGLBufferAttach is like CVOpenGLBufferAttach but returns an error instead of panicking if CVOpenGLBufferAttach is unavailable at run time.
func TryCVOpenGLBufferCreate ¶
func TryCVOpenGLBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, attributes corefoundation.CFDictionaryRef, bufferOut *CVOpenGLBufferRef) (CVReturn, error)
TryCVOpenGLBufferCreate is like CVOpenGLBufferCreate but returns an error instead of panicking if CVOpenGLBufferCreate is unavailable at run time.
func TryCVOpenGLBufferPoolCreate ¶
func TryCVOpenGLBufferPoolCreate(allocator corefoundation.CFAllocatorRef, poolAttributes corefoundation.CFDictionaryRef, openGLBufferAttributes corefoundation.CFDictionaryRef, poolOut *CVOpenGLBufferPoolRef) (CVReturn, error)
TryCVOpenGLBufferPoolCreate is like CVOpenGLBufferPoolCreate but returns an error instead of panicking if CVOpenGLBufferPoolCreate is unavailable at run time.
func TryCVOpenGLBufferPoolCreateOpenGLBuffer ¶
func TryCVOpenGLBufferPoolCreateOpenGLBuffer(allocator corefoundation.CFAllocatorRef, openGLBufferPool CVOpenGLBufferPoolRef, openGLBufferOut *CVOpenGLBufferRef) (CVReturn, error)
TryCVOpenGLBufferPoolCreateOpenGLBuffer is like CVOpenGLBufferPoolCreateOpenGLBuffer but returns an error instead of panicking if CVOpenGLBufferPoolCreateOpenGLBuffer is unavailable at run time.
func TryCVOpenGLTextureCacheCreate ¶
func TryCVOpenGLTextureCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, cglContext unsafe.Pointer, cglPixelFormat unsafe.Pointer, textureAttributes corefoundation.CFDictionaryRef, cacheOut *CVOpenGLTextureCacheRef) (CVReturn, error)
TryCVOpenGLTextureCacheCreate is like CVOpenGLTextureCacheCreate but returns an error instead of panicking if CVOpenGLTextureCacheCreate is unavailable at run time.
func TryCVOpenGLTextureCacheCreateTextureFromImage ¶
func TryCVOpenGLTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVOpenGLTextureCacheRef, sourceImage CVImageBufferRef, attributes corefoundation.CFDictionaryRef, textureOut *CVOpenGLTextureRef) (CVReturn, error)
TryCVOpenGLTextureCacheCreateTextureFromImage is like CVOpenGLTextureCacheCreateTextureFromImage but returns an error instead of panicking if CVOpenGLTextureCacheCreateTextureFromImage is unavailable at run time.
func TryCVPixelBufferCreate ¶
func TryCVPixelBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, pixelFormatType uint32, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) (CVReturn, error)
TryCVPixelBufferCreate is like CVPixelBufferCreate but returns an error instead of panicking if CVPixelBufferCreate is unavailable at run time.
func TryCVPixelBufferCreateResolvedAttributesDictionary ¶
func TryCVPixelBufferCreateResolvedAttributesDictionary(allocator corefoundation.CFAllocatorRef, attributes corefoundation.CFArrayRef, resolvedDictionaryOut *corefoundation.CFDictionaryRef) (CVReturn, error)
TryCVPixelBufferCreateResolvedAttributesDictionary is like CVPixelBufferCreateResolvedAttributesDictionary but returns an error instead of panicking if CVPixelBufferCreateResolvedAttributesDictionary is unavailable at run time.
func TryCVPixelBufferCreateWithBytes ¶
func TryCVPixelBufferCreateWithBytes(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, error)
TryCVPixelBufferCreateWithBytes is like CVPixelBufferCreateWithBytes but returns an error instead of panicking if CVPixelBufferCreateWithBytes is unavailable at run time.
func TryCVPixelBufferCreateWithIOSurface ¶
func TryCVPixelBufferCreateWithIOSurface(allocator corefoundation.CFAllocatorRef, surface unsafe.Pointer, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) (CVReturn, error)
TryCVPixelBufferCreateWithIOSurface is like CVPixelBufferCreateWithIOSurface but returns an error instead of panicking if CVPixelBufferCreateWithIOSurface is unavailable at run time.
func TryCVPixelBufferCreateWithPlanarBytes ¶
func TryCVPixelBufferCreateWithPlanarBytes(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, error)
TryCVPixelBufferCreateWithPlanarBytes is like CVPixelBufferCreateWithPlanarBytes but returns an error instead of panicking if CVPixelBufferCreateWithPlanarBytes is unavailable at run time.
func TryCVPixelBufferFillExtendedPixels ¶
func TryCVPixelBufferFillExtendedPixels(pixelBuffer CVPixelBufferRef) (CVReturn, error)
TryCVPixelBufferFillExtendedPixels is like CVPixelBufferFillExtendedPixels but returns an error instead of panicking if CVPixelBufferFillExtendedPixels is unavailable at run time.
func TryCVPixelBufferLockBaseAddress ¶
func TryCVPixelBufferLockBaseAddress(pixelBuffer CVPixelBufferRef, lockFlags CVPixelBufferLockFlags) (CVReturn, error)
TryCVPixelBufferLockBaseAddress is like CVPixelBufferLockBaseAddress but returns an error instead of panicking if CVPixelBufferLockBaseAddress is unavailable at run time.
func TryCVPixelBufferPoolCreate ¶
func TryCVPixelBufferPoolCreate(allocator corefoundation.CFAllocatorRef, poolAttributes corefoundation.CFDictionaryRef, pixelBufferAttributes corefoundation.CFDictionaryRef, poolOut *CVPixelBufferPoolRef) (CVReturn, error)
TryCVPixelBufferPoolCreate is like CVPixelBufferPoolCreate but returns an error instead of panicking if CVPixelBufferPoolCreate is unavailable at run time.
func TryCVPixelBufferPoolCreatePixelBuffer ¶
func TryCVPixelBufferPoolCreatePixelBuffer(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, pixelBufferOut *CVPixelBufferRef) (CVReturn, error)
TryCVPixelBufferPoolCreatePixelBuffer is like CVPixelBufferPoolCreatePixelBuffer but returns an error instead of panicking if CVPixelBufferPoolCreatePixelBuffer is unavailable at run time.
func TryCVPixelBufferPoolCreatePixelBufferWithAuxAttributes ¶
func TryCVPixelBufferPoolCreatePixelBufferWithAuxAttributes(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, auxAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) (CVReturn, error)
TryCVPixelBufferPoolCreatePixelBufferWithAuxAttributes is like CVPixelBufferPoolCreatePixelBufferWithAuxAttributes but returns an error instead of panicking if CVPixelBufferPoolCreatePixelBufferWithAuxAttributes is unavailable at run time.
func TryCVPixelBufferUnlockBaseAddress ¶
func TryCVPixelBufferUnlockBaseAddress(pixelBuffer CVPixelBufferRef, unlockFlags CVPixelBufferLockFlags) (CVReturn, error)
TryCVPixelBufferUnlockBaseAddress is like CVPixelBufferUnlockBaseAddress but returns an error instead of panicking if CVPixelBufferUnlockBaseAddress is unavailable at run time.
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 uint32
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 uint32
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](<https://developer.apple.com/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
var ( // KCVIndefiniteTime is an unknown or indefinite time. For example, [CVDisplayLinkGetNominalOutputVideoRefreshPeriod(_:)] returns `kCVIndefiniteTime` if the display link specified is not valid. // // See: https://developer.apple.com/documentation/CoreVideo/kCVIndefiniteTime KCVIndefiniteTime CVTime // KCVZeroTime is zero time or duration. For example, [CVDisplayLinkGetOutputVideoLatency(_:)] returns `kCVZeroTime` for zero video latency. // // See: https://developer.apple.com/documentation/CoreVideo/kCVZeroTime KCVZeroTime CVTime )
func CVDisplayLinkGetNominalOutputVideoRefreshPeriod
deprecated
func CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) CVTime
CVDisplayLinkGetNominalOutputVideoRefreshPeriod retrieves the nominal refresh period of a display link.
It panics if CVDisplayLinkGetNominalOutputVideoRefreshPeriod is unavailable at run time; use TryCVDisplayLinkGetNominalOutputVideoRefreshPeriod to get an error instead.
Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
func CVDisplayLinkGetOutputVideoLatency
deprecated
func CVDisplayLinkGetOutputVideoLatency(displayLink CVDisplayLinkRef) CVTime
CVDisplayLinkGetOutputVideoLatency retrieves the nominal latency of a display link.
It panics if CVDisplayLinkGetOutputVideoLatency is unavailable at run time; use TryCVDisplayLinkGetOutputVideoLatency to get an error instead.
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(_:)
func TryCVDisplayLinkGetNominalOutputVideoRefreshPeriod ¶
func TryCVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) (CVTime, error)
TryCVDisplayLinkGetNominalOutputVideoRefreshPeriod is like CVDisplayLinkGetNominalOutputVideoRefreshPeriod but returns an error instead of panicking if CVDisplayLinkGetNominalOutputVideoRefreshPeriod is unavailable at run time.
func TryCVDisplayLinkGetOutputVideoLatency ¶
func TryCVDisplayLinkGetOutputVideoLatency(displayLink CVDisplayLinkRef) (CVTime, error)
TryCVDisplayLinkGetOutputVideoLatency is like CVDisplayLinkGetOutputVideoLatency but returns an error instead of panicking if CVDisplayLinkGetOutputVideoLatency is unavailable at run time.
type CVTimeFlags ¶
type CVTimeFlags int32
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 uint64
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 = 196608 // 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 = 3 // 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 uint32
const ( // KCVPixelFormatType_128RGBAFloat: 128-bit RGBA IEEE float, 32-bit little-endian samples. KCVPixelFormatType_128RGBAFloat KCVPixelFormatType = 'R'<<24 | 'G'<<16 | 'f'<<8 | 'A' // 'RGfA' KCVPixelFormatType_14Bayer_BGGR KCVPixelFormatType = 'b'<<24 | 'g'<<16 | 'g'<<8 | '4' // 'bgg4' KCVPixelFormatType_14Bayer_GBRG KCVPixelFormatType = 'g'<<24 | 'b'<<16 | 'r'<<8 | '4' // 'gbr4' KCVPixelFormatType_14Bayer_GRBG KCVPixelFormatType = 'g'<<24 | 'r'<<16 | 'b'<<8 | '4' // 'grb4' KCVPixelFormatType_14Bayer_RGGB KCVPixelFormatType = 'r'<<24 | 'g'<<16 | 'g'<<8 | '4' // 'rgg4' // KCVPixelFormatType_16BE555: 16-bit BE RGB 555. KCVPixelFormatType_16BE555 KCVPixelFormatType = 0x10 // KCVPixelFormatType_16BE565: 16-bit BE RGB 565. KCVPixelFormatType_16BE565 KCVPixelFormatType = 'B'<<24 | '5'<<16 | '6'<<8 | '5' // 'B565' // KCVPixelFormatType_16Gray: 16-bit Grayscale, 16-bit big-endian samples, black is zero. KCVPixelFormatType_16Gray KCVPixelFormatType = 'b'<<24 | '1'<<16 | '6'<<8 | 'g' // 'b16g' // KCVPixelFormatType_16LE555: 16-bit LE RGB 555. KCVPixelFormatType_16LE555 KCVPixelFormatType = 'L'<<24 | '5'<<16 | '5'<<8 | '5' // 'L555' // KCVPixelFormatType_16LE5551: 16-bit LE RGB 5551. KCVPixelFormatType_16LE5551 KCVPixelFormatType = '5'<<24 | '5'<<16 | '5'<<8 | '1' // '5551' // KCVPixelFormatType_16LE565: 16-bit LE RGB 565. KCVPixelFormatType_16LE565 KCVPixelFormatType = 'L'<<24 | '5'<<16 | '6'<<8 | '5' // 'L565' KCVPixelFormatType_16VersatileBayer KCVPixelFormatType = 'b'<<24 | 'p'<<16 | '1'<<8 | '6' // 'bp16' // KCVPixelFormatType_1IndexedGray_WhiteIsZero: 1 bit indexed gray, white is zero. KCVPixelFormatType_1IndexedGray_WhiteIsZero KCVPixelFormatType = 0x21 // KCVPixelFormatType_1Monochrome: 1 bit indexed. KCVPixelFormatType_1Monochrome KCVPixelFormatType = 0x1 // KCVPixelFormatType_24BGR: 24-bit BGR. KCVPixelFormatType_24BGR KCVPixelFormatType = '2'<<24 | '4'<<16 | 'B'<<8 | 'G' // '24BG' // KCVPixelFormatType_24RGB: 24-bit RGB. KCVPixelFormatType_24RGB KCVPixelFormatType = 0x18 // KCVPixelFormatType_2Indexed: 2-bit indexed. KCVPixelFormatType_2Indexed KCVPixelFormatType = 0x2 // KCVPixelFormatType_2IndexedGray_WhiteIsZero: 2-bit indexed gray, white is zero. KCVPixelFormatType_2IndexedGray_WhiteIsZero KCVPixelFormatType = 0x22 // KCVPixelFormatType_30RGB: 30-bit RGB, 10-bit big-endian samples, 2 unused padding bits (at least significant end). KCVPixelFormatType_30RGB KCVPixelFormatType = 'R'<<24 | '1'<<16 | '0'<<8 | 'k' // 'R10k' KCVPixelFormatType_30RGBLEPackedWideGamut KCVPixelFormatType = 'w'<<24 | '3'<<16 | '0'<<8 | 'r' // 'w30r' KCVPixelFormatType_30RGBLE_8A_BiPlanar KCVPixelFormatType = 'b'<<24 | '3'<<16 | 'a'<<8 | '8' // 'b3a8' KCVPixelFormatType_30RGB_r210 KCVPixelFormatType = 'r'<<24 | '2'<<16 | '1'<<8 | '0' // 'r210' // KCVPixelFormatType_32ABGR: 32-bit ABGR. KCVPixelFormatType_32ABGR KCVPixelFormatType = 'A'<<24 | 'B'<<16 | 'G'<<8 | 'R' // 'ABGR' // KCVPixelFormatType_32ARGB: 32-bit ARGB. KCVPixelFormatType_32ARGB KCVPixelFormatType = 0x20 // KCVPixelFormatType_32AlphaGray: 32-bit AlphaGray, 16-bit big-endian samples, black is zero. KCVPixelFormatType_32AlphaGray KCVPixelFormatType = 'b'<<24 | '3'<<16 | '2'<<8 | 'a' // 'b32a' // KCVPixelFormatType_32BGRA: 32-bit BGRA. KCVPixelFormatType_32BGRA KCVPixelFormatType = 'B'<<24 | 'G'<<16 | 'R'<<8 | 'A' // 'BGRA' // KCVPixelFormatType_32RGBA: 32-bit RGBA. KCVPixelFormatType_32RGBA KCVPixelFormatType = 'R'<<24 | 'G'<<16 | 'B'<<8 | 'A' // 'RGBA' KCVPixelFormatType_40ARGBLEWideGamut KCVPixelFormatType = 'w'<<24 | '4'<<16 | '0'<<8 | 'a' // 'w40a' KCVPixelFormatType_40ARGBLEWideGamutPremultiplied KCVPixelFormatType = 'w'<<24 | '4'<<16 | '0'<<8 | 'm' // 'w40m' KCVPixelFormatType_420YpCbCr10BiPlanarFullRange KCVPixelFormatType = 'x'<<24 | 'f'<<16 | '2'<<8 | '0' // 'xf20' KCVPixelFormatType_420YpCbCr10BiPlanarVideoRange KCVPixelFormatType = 'x'<<24 | '4'<<16 | '2'<<8 | '0' // 'x420' // KCVPixelFormatType_420YpCbCr8BiPlanarFullRange: Bi-Planar Component Y’CbCr 8-bit 4:2:0, full-range (luma=[0,255] chroma=[1,255]). KCVPixelFormatType_420YpCbCr8BiPlanarFullRange KCVPixelFormatType = '4'<<24 | '2'<<16 | '0'<<8 | 'f' // '420f' // KCVPixelFormatType_420YpCbCr8BiPlanarVideoRange: Bi-Planar Component Y’CbCr 8-bit 4:2:0, video-range (luma=[16,235] chroma=[16,240]). KCVPixelFormatType_420YpCbCr8BiPlanarVideoRange KCVPixelFormatType = '4'<<24 | '2'<<16 | '0'<<8 | 'v' // '420v' // KCVPixelFormatType_420YpCbCr8Planar: Planar Component Y’CbCr 8-bit 4:2:0. KCVPixelFormatType_420YpCbCr8Planar KCVPixelFormatType = 'y'<<24 | '4'<<16 | '2'<<8 | '0' // 'y420' // KCVPixelFormatType_420YpCbCr8PlanarFullRange: Planar Component Y’CbCr 8-bit 4:2:0, full range. KCVPixelFormatType_420YpCbCr8PlanarFullRange KCVPixelFormatType = 'f'<<24 | '4'<<16 | '2'<<8 | '0' // 'f420' KCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar KCVPixelFormatType = 'v'<<24 | '0'<<16 | 'a'<<8 | '8' // 'v0a8' // KCVPixelFormatType_422YpCbCr10: Component Y’CbCr 10-bit 4:2:2. KCVPixelFormatType_422YpCbCr10 KCVPixelFormatType = 'v'<<24 | '2'<<16 | '1'<<8 | '0' // 'v210' KCVPixelFormatType_422YpCbCr10BiPlanarFullRange KCVPixelFormatType = 'x'<<24 | 'f'<<16 | '2'<<8 | '2' // 'xf22' KCVPixelFormatType_422YpCbCr10BiPlanarVideoRange KCVPixelFormatType = 'x'<<24 | '4'<<16 | '2'<<8 | '2' // 'x422' // KCVPixelFormatType_422YpCbCr16: Component Y’CbCr 10,12,14,16-bit 4:2:2. KCVPixelFormatType_422YpCbCr16 KCVPixelFormatType = 'v'<<24 | '2'<<16 | '1'<<8 | '6' // 'v216' KCVPixelFormatType_422YpCbCr16BiPlanarVideoRange KCVPixelFormatType = 's'<<24 | 'v'<<16 | '2'<<8 | '2' // 'sv22' // KCVPixelFormatType_422YpCbCr8: Component Y’CbCr 8-bit 4:2:2, ordered Cb Y’0 Cr Y’1. KCVPixelFormatType_422YpCbCr8 KCVPixelFormatType = '2'<<24 | 'v'<<16 | 'u'<<8 | 'y' // '2vuy' KCVPixelFormatType_422YpCbCr8BiPlanarFullRange KCVPixelFormatType = '4'<<24 | '2'<<16 | '2'<<8 | 'f' // '422f' KCVPixelFormatType_422YpCbCr8BiPlanarVideoRange KCVPixelFormatType = '4'<<24 | '2'<<16 | '2'<<8 | 'v' // '422v' // KCVPixelFormatType_422YpCbCr8FullRange: Component Y’CbCr 8-bit 4:2:2, full range, ordered Y’0 Cb Y’1 Cr. KCVPixelFormatType_422YpCbCr8FullRange KCVPixelFormatType = 'y'<<24 | 'u'<<16 | 'v'<<8 | 'f' // 'yuvf' // KCVPixelFormatType_422YpCbCr8_yuvs: Component Y’CbCr 8-bit 4:2:2, ordered Y’0 Cb Y’1 Cr. KCVPixelFormatType_422YpCbCr8_yuvs KCVPixelFormatType = 'y'<<24 | 'u'<<16 | 'v'<<8 | 's' // 'yuvs' // 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 = 'a'<<24 | '2'<<16 | 'v'<<8 | 'y' // 'a2vy' // 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 = 'y'<<24 | '4'<<16 | '1'<<8 | '6' // 'y416' // 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 = 'y'<<24 | '4'<<16 | '0'<<8 | '8' // 'y408' KCVPixelFormatType_4444AYpCbCrFloat KCVPixelFormatType = 'r'<<24 | '4'<<16 | 'f'<<8 | 'l' // 'r4fl' // KCVPixelFormatType_4444YpCbCrA8: Component Y’CbCrA 8-bit 4:4:4:4, ordered Cb Y’ Cr A. KCVPixelFormatType_4444YpCbCrA8 KCVPixelFormatType = 'v'<<24 | '4'<<16 | '0'<<8 | '8' // 'v408' // KCVPixelFormatType_4444YpCbCrA8R: Component Y’CbCrA 8-bit 4:4:4:4, rendering format. KCVPixelFormatType_4444YpCbCrA8R KCVPixelFormatType = 'r'<<24 | '4'<<16 | '0'<<8 | '8' // 'r408' // KCVPixelFormatType_444YpCbCr10: Component Y’CbCr 10-bit 4:4:4. KCVPixelFormatType_444YpCbCr10 KCVPixelFormatType = 'v'<<24 | '4'<<16 | '1'<<8 | '0' // 'v410' KCVPixelFormatType_444YpCbCr10BiPlanarFullRange KCVPixelFormatType = 'x'<<24 | 'f'<<16 | '4'<<8 | '4' // 'xf44' KCVPixelFormatType_444YpCbCr10BiPlanarVideoRange KCVPixelFormatType = 'x'<<24 | '4'<<16 | '4'<<8 | '4' // 'x444' KCVPixelFormatType_444YpCbCr16BiPlanarVideoRange KCVPixelFormatType = 's'<<24 | 'v'<<16 | '4'<<8 | '4' // 'sv44' KCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar KCVPixelFormatType = 's'<<24 | '4'<<16 | 'a'<<8 | 's' // 's4as' // KCVPixelFormatType_444YpCbCr8: Component Y’CbCr 8-bit 4:4:4. KCVPixelFormatType_444YpCbCr8 KCVPixelFormatType = 'v'<<24 | '3'<<16 | '0'<<8 | '8' // 'v308' KCVPixelFormatType_444YpCbCr8BiPlanarFullRange KCVPixelFormatType = '4'<<24 | '4'<<16 | '4'<<8 | 'f' // '444f' KCVPixelFormatType_444YpCbCr8BiPlanarVideoRange KCVPixelFormatType = '4'<<24 | '4'<<16 | '4'<<8 | 'v' // '444v' // KCVPixelFormatType_48RGB: 48-bit RGB, 16-bit big-endian samples. KCVPixelFormatType_48RGB KCVPixelFormatType = 'b'<<24 | '4'<<16 | '8'<<8 | 'r' // 'b48r' // KCVPixelFormatType_4Indexed: 4-bit indexed. KCVPixelFormatType_4Indexed KCVPixelFormatType = 0x4 // KCVPixelFormatType_4IndexedGray_WhiteIsZero: 4-bit indexed gray, white is zero. KCVPixelFormatType_4IndexedGray_WhiteIsZero KCVPixelFormatType = 0x24 // KCVPixelFormatType_64ARGB: 64-bit ARGB, 16-bit big-endian samples. KCVPixelFormatType_64ARGB KCVPixelFormatType = 'b'<<24 | '6'<<16 | '4'<<8 | 'a' // 'b64a' // KCVPixelFormatType_64RGBAHalf: 64-bit RGBA IEEE half-precision float, 16-bit little-endian samples. KCVPixelFormatType_64RGBAHalf KCVPixelFormatType = 'R'<<24 | 'G'<<16 | 'h'<<8 | 'A' // 'RGhA' KCVPixelFormatType_64RGBALE KCVPixelFormatType = 'l'<<24 | '6'<<16 | '4'<<8 | 'r' // 'l64r' KCVPixelFormatType_64RGBA_DownscaledProResRAW KCVPixelFormatType = 'b'<<24 | 'p'<<16 | '6'<<8 | '4' // 'bp64' // KCVPixelFormatType_8Indexed: 8-bit indexed. KCVPixelFormatType_8Indexed KCVPixelFormatType = 0x8 // KCVPixelFormatType_8IndexedGray_WhiteIsZero: 8-bit indexed gray, white is zero. KCVPixelFormatType_8IndexedGray_WhiteIsZero KCVPixelFormatType = 0x28 KCVPixelFormatType_96VersatileBayerPacked12 KCVPixelFormatType = 'b'<<24 | 't'<<16 | 'p'<<8 | '2' // 'btp2' KCVPixelFormatType_ARGB2101010LEPacked KCVPixelFormatType = 'l'<<24 | '1'<<16 | '0'<<8 | 'r' // 'l10r' KCVPixelFormatType_DepthFloat16 KCVPixelFormatType = 'h'<<24 | 'd'<<16 | 'e'<<8 | 'p' // 'hdep' KCVPixelFormatType_DepthFloat32 KCVPixelFormatType = 'f'<<24 | 'd'<<16 | 'e'<<8 | 'p' // 'fdep' KCVPixelFormatType_DisparityFloat16 KCVPixelFormatType = 'h'<<24 | 'd'<<16 | 'i'<<8 | 's' // 'hdis' KCVPixelFormatType_DisparityFloat32 KCVPixelFormatType = 'f'<<24 | 'd'<<16 | 'i'<<8 | 's' // 'fdis' KCVPixelFormatType_OneComponent10 KCVPixelFormatType = 'L'<<24 | '0'<<16 | '1'<<8 | '0' // 'L010' KCVPixelFormatType_OneComponent12 KCVPixelFormatType = 'L'<<24 | '0'<<16 | '1'<<8 | '2' // 'L012' KCVPixelFormatType_OneComponent16 KCVPixelFormatType = 'L'<<24 | '0'<<16 | '1'<<8 | '6' // 'L016' // KCVPixelFormatType_OneComponent16Half: 6-bit one component IEEE half-precision float, 16-bit little-endian samples. KCVPixelFormatType_OneComponent16Half KCVPixelFormatType = 'L'<<24 | '0'<<16 | '0'<<8 | 'h' // 'L00h' // KCVPixelFormatType_OneComponent32Float: 32-bit one component IEEE float, 32-bit little-endian samples. KCVPixelFormatType_OneComponent32Float KCVPixelFormatType = 'L'<<24 | '0'<<16 | '0'<<8 | 'f' // 'L00f' // KCVPixelFormatType_OneComponent8: 8-bit one component, black is zero. KCVPixelFormatType_OneComponent8 KCVPixelFormatType = 'L'<<24 | '0'<<16 | '0'<<8 | '8' // 'L008' KCVPixelFormatType_TwoComponent16 KCVPixelFormatType = '2'<<24 | 'C'<<16 | '1'<<8 | '6' // '2C16' // KCVPixelFormatType_TwoComponent16Half: 16-bit two component IEEE half-precision float, 16-bit little-endian samples. KCVPixelFormatType_TwoComponent16Half KCVPixelFormatType = '2'<<24 | 'C'<<16 | '0'<<8 | 'h' // '2C0h' // KCVPixelFormatType_TwoComponent32Float: 32-bit two component IEEE float, 32-bit little-endian samples. KCVPixelFormatType_TwoComponent32Float KCVPixelFormatType = '2'<<24 | 'C'<<16 | '0'<<8 | 'f' // '2C0f' // KCVPixelFormatType_TwoComponent8: 8-bit two component, black is zero. KCVPixelFormatType_TwoComponent8 KCVPixelFormatType = '2'<<24 | 'C'<<16 | '0'<<8 | '8' // '2C08' )
func (KCVPixelFormatType) String ¶
func (e KCVPixelFormatType) String() string
type KcvpixelformattypeLossless ¶
type KcvpixelformattypeLossless uint32
const ( KCVPixelFormatType_Lossless_30RGBLEPackedWideGamut KcvpixelformattypeLossless = '&'<<24 | 'w'<<16 | '3'<<8 | 'r' // '&w3r' KCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar KcvpixelformattypeLossless = '&'<<24 | 'b'<<16 | '3'<<8 | '8' // '&b38' KCVPixelFormatType_Lossless_32BGRA KcvpixelformattypeLossless = '&'<<24 | 'B'<<16 | 'G'<<8 | 'A' // '&BGA' KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange KcvpixelformattypeLossless = '&'<<24 | 'x'<<16 | 'f'<<8 | '0' // '&xf0' KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossless = '&'<<24 | 'x'<<16 | 'v'<<8 | '0' // '&xv0' KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange KcvpixelformattypeLossless = '&'<<24 | '8'<<16 | 'f'<<8 | '0' // '&8f0' KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange KcvpixelformattypeLossless = '&'<<24 | '8'<<16 | 'v'<<8 | '0' // '&8v0' KCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossless = '&'<<24 | 'x'<<16 | 'v'<<8 | '2' // '&xv2' KCVPixelFormatType_Lossless_64RGBAHalf KcvpixelformattypeLossless = '&'<<24 | 'R'<<16 | 'h'<<8 | 'A' // '&RhA' )
func (KcvpixelformattypeLossless) String ¶
func (e KcvpixelformattypeLossless) String() string
type KcvpixelformattypeLossy ¶
type KcvpixelformattypeLossy uint32
const ( KCVPixelFormatType_Lossy_32BGRA KcvpixelformattypeLossy = '-'<<24 | 'B'<<16 | 'G'<<8 | 'A' // '-BGA' KCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossy = '-'<<24 | 'x'<<16 | 'v'<<8 | '0' // '-xv0' KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange KcvpixelformattypeLossy = '-'<<24 | '8'<<16 | 'f'<<8 | '0' // '-8f0' KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange KcvpixelformattypeLossy = '-'<<24 | '8'<<16 | 'v'<<8 | '0' // '-8v0' KCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossy = '-'<<24 | 'x'<<16 | 'v'<<8 | '2' // '-xv2' )
func (KcvpixelformattypeLossy) String ¶
func (e KcvpixelformattypeLossy) String() string
type KcvversatilebayerBayerpattern ¶
type KcvversatilebayerBayerpattern uint32
const ( KCVVersatileBayer_BayerPattern_BGGR KcvversatilebayerBayerpattern = 3 KCVVersatileBayer_BayerPattern_GBRG KcvversatilebayerBayerpattern = 2 KCVVersatileBayer_BayerPattern_GRBG KcvversatilebayerBayerpattern = 1 KCVVersatileBayer_BayerPattern_RGGB KcvversatilebayerBayerpattern = 0 )
func (KcvversatilebayerBayerpattern) String ¶
func (e KcvversatilebayerBayerpattern) String() string