corevideo

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package corevideo provides purego-based Go bindings for the macOS CoreVideo framework.

Apple documentation: https://developer.apple.com/documentation/corevideo

Index

Constants

View Source
const (
	KCVPixelFormatType_128RGBAFloat                        = 1380410945
	KCVPixelFormatType_14Bayer_BGGR                        = 1650943796
	KCVPixelFormatType_14Bayer_GBRG                        = 1734505012
	KCVPixelFormatType_14Bayer_GRBG                        = 1735549492
	KCVPixelFormatType_14Bayer_RGGB                        = 1919379252
	KCVPixelFormatType_16BE555                             = 16
	KCVPixelFormatType_16BE565                             = 1110783541
	KCVPixelFormatType_16Gray                              = 1647392359
	KCVPixelFormatType_16LE555                             = 1278555445
	KCVPixelFormatType_16LE5551                            = 892679473
	KCVPixelFormatType_16LE565                             = 1278555701
	KCVPixelFormatType_16VersatileBayer                    = 1651519798
	KCVPixelFormatType_1IndexedGray_WhiteIsZero            = 33
	KCVPixelFormatType_1Monochrome                         = 1
	KCVPixelFormatType_24BGR                               = 842285639
	KCVPixelFormatType_24RGB                               = 24
	KCVPixelFormatType_2Indexed                            = 2
	KCVPixelFormatType_2IndexedGray_WhiteIsZero            = 34
	KCVPixelFormatType_30RGB                               = 1378955371
	KCVPixelFormatType_30RGBLEPackedWideGamut              = 1999843442
	KCVPixelFormatType_30RGBLE_8A_BiPlanar                 = 1647534392
	KCVPixelFormatType_30RGB_r210                          = 1915892016
	KCVPixelFormatType_32ABGR                              = 1094862674
	KCVPixelFormatType_32ARGB                              = 32
	KCVPixelFormatType_32AlphaGray                         = 1647522401
	KCVPixelFormatType_32BGRA                              = 1111970369
	KCVPixelFormatType_32RGBA                              = 1380401729
	KCVPixelFormatType_40ARGBLEWideGamut                   = 1999908961
	KCVPixelFormatType_40ARGBLEWideGamutPremultiplied      = 1999908973
	KCVPixelFormatType_420YpCbCr10BiPlanarFullRange        = 2019963440
	KCVPixelFormatType_420YpCbCr10BiPlanarVideoRange       = 2016686640
	KCVPixelFormatType_420YpCbCr8BiPlanarFullRange         = 875704422
	KCVPixelFormatType_420YpCbCr8BiPlanarVideoRange        = 875704438
	KCVPixelFormatType_420YpCbCr8Planar                    = 2033463856
	KCVPixelFormatType_420YpCbCr8PlanarFullRange           = 1714696752
	KCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar   = 1982882104
	KCVPixelFormatType_422YpCbCr10                         = 1983000880
	KCVPixelFormatType_422YpCbCr10BiPlanarFullRange        = 2019963442
	KCVPixelFormatType_422YpCbCr10BiPlanarVideoRange       = 2016686642
	KCVPixelFormatType_422YpCbCr16                         = 1983000886
	KCVPixelFormatType_422YpCbCr16BiPlanarVideoRange       = 1937125938
	KCVPixelFormatType_422YpCbCr8                          = 846624121
	KCVPixelFormatType_422YpCbCr8BiPlanarFullRange         = 875704934
	KCVPixelFormatType_422YpCbCr8BiPlanarVideoRange        = 875704950
	KCVPixelFormatType_422YpCbCr8FullRange                 = 2037741158
	KCVPixelFormatType_422YpCbCr8_yuvs                     = 2037741171
	KCVPixelFormatType_422YpCbCr_4A_8BiPlanar              = 1630697081
	KCVPixelFormatType_4444AYpCbCr16                       = 2033463606
	KCVPixelFormatType_4444AYpCbCr8                        = 2033463352
	KCVPixelFormatType_4444AYpCbCrFloat                    = 1916036716
	KCVPixelFormatType_4444YpCbCrA8                        = 1983131704
	KCVPixelFormatType_4444YpCbCrA8R                       = 1916022840
	KCVPixelFormatType_444YpCbCr10                         = 1983131952
	KCVPixelFormatType_444YpCbCr10BiPlanarFullRange        = 2019963956
	KCVPixelFormatType_444YpCbCr10BiPlanarVideoRange       = 2016687156
	KCVPixelFormatType_444YpCbCr16BiPlanarVideoRange       = 1937126452
	KCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar = 1932812659
	KCVPixelFormatType_444YpCbCr8                          = 1983066168
	KCVPixelFormatType_444YpCbCr8BiPlanarFullRange         = 875836518
	KCVPixelFormatType_444YpCbCr8BiPlanarVideoRange        = 875836534
	KCVPixelFormatType_48RGB                               = 1647589490
	KCVPixelFormatType_4Indexed                            = 4
	KCVPixelFormatType_4IndexedGray_WhiteIsZero            = 36
	KCVPixelFormatType_64ARGB                              = 1647719521
	KCVPixelFormatType_64RGBAHalf                          = 1380411457
	KCVPixelFormatType_64RGBALE                            = 1815491698
	KCVPixelFormatType_64RGBA_DownscaledProResRAW          = 1651521076
	KCVPixelFormatType_8Indexed                            = 8
	KCVPixelFormatType_8IndexedGray_WhiteIsZero            = 40
	KCVPixelFormatType_96VersatileBayerPacked12            = 1651798066
	KCVPixelFormatType_ARGB2101010LEPacked                 = 1815162994
	KCVPixelFormatType_DepthFloat16                        = 1751410032
	KCVPixelFormatType_DepthFloat32                        = 1717855600
	KCVPixelFormatType_DisparityFloat16                    = 1751411059
	KCVPixelFormatType_DisparityFloat32                    = 1717856627
	KCVPixelFormatType_OneComponent10                      = 1278226736
	KCVPixelFormatType_OneComponent12                      = 1278226738
	KCVPixelFormatType_OneComponent16                      = 1278226742
	KCVPixelFormatType_OneComponent16Half                  = 1278226536
	KCVPixelFormatType_OneComponent32Float                 = 1278226534
	KCVPixelFormatType_OneComponent8                       = 1278226488
	KCVPixelFormatType_TwoComponent16                      = 843264310
	KCVPixelFormatType_TwoComponent16Half                  = 843264104
	KCVPixelFormatType_TwoComponent32Float                 = 843264102
	KCVPixelFormatType_TwoComponent8                       = 843264056
)
View Source
const (
	KCVPixelFormatType_Lossless_30RGBLEPackedWideGamut              = 645346162
	KCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar                 = 643969848
	KCVPixelFormatType_Lossless_32BGRA                              = 641877825
	KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange  = 645424688
	KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange = 645428784
	KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange         = 641230384
	KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange        = 641234480
	KCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange = 645428786
	KCVPixelFormatType_Lossless_64RGBAHalf                          = 642934849
)
View Source
const (
	KCVPixelFormatType_Lossy_32BGRA                              = 759318337
	KCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange = 762869296
	KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange         = 758670896
	KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange        = 758674992
	KCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange = 762869298
)
View Source
const (
	KCVReturnAllocationFailed               = -6662
	KCVReturnDisplayLinkAlreadyRunning      = -6671
	KCVReturnDisplayLinkCallbacksNotSet     = -6673
	KCVReturnDisplayLinkNotRunning          = -6672
	KCVReturnError                          = -6660
	KCVReturnFirst                          = -6660
	KCVReturnInvalidArgument                = -6661
	KCVReturnInvalidDisplay                 = -6670
	KCVReturnInvalidPixelBufferAttributes   = -6682
	KCVReturnInvalidPixelFormat             = -6680
	KCVReturnInvalidPoolAttributes          = -6691
	KCVReturnInvalidSize                    = -6681
	KCVReturnLast                           = -6699
	KCVReturnPixelBufferNotMetalCompatible  = -6684
	KCVReturnPixelBufferNotOpenGLCompatible = -6683
	KCVReturnPoolAllocationFailed           = -6690
	KCVReturnRetry                          = -6692
	KCVReturnSuccess                        = 0
	KCVReturnUnsupported                    = -6663
	KCVReturnWouldExceedAllocationThreshold = -6689
)
View Source
const (
	KCVVersatileBayer_BayerPattern_BGGR = 3
	KCVVersatileBayer_BayerPattern_GBRG = 2
	KCVVersatileBayer_BayerPattern_GRBG = 1
	KCVVersatileBayer_BayerPattern_RGGB = 0
)

Variables

This section is empty.

Functions

func CVBufferCopyAttachment

func CVBufferCopyAttachment(buffer unsafe.Pointer, key unsafe.Pointer, attachmentMode *CVAttachmentMode) unsafe.Pointer

@function CVBufferCopyAttachment @abstract Returns a retained specific attachment of a CVBuffer object. It is the caller’s responsibility to release the returned value. @discussion You can attach any CF object to a CVBuffer object to store additional information. CVBufferCopyAttachment retrieves a retained attachment identified by a key. @param buffer Target CVBuffer object. @param key Key in form of a CFString identifying the desired attachment. @param attachmentMode Returns the mode of the attachment, if desired. May be NULL. @result If found the attachment object, return the value; otherwize, return NULL.

func CVBufferCopyAttachments

func CVBufferCopyAttachments(buffer unsafe.Pointer, attachmentMode CVAttachmentMode) unsafe.Pointer

@function CVBufferCopyAttachments @abstract Returns a copy of all attachments of a CVBuffer object. It is the caller’s responsibility to release the returned dictionary. @discussion CVBufferCopyAttachments is a convenience call that returns a copy of all attachments with their corresponding keys in a CFDictionary. @param buffer Target CVBuffer object. @result A CFDictionary with all buffer attachments identified by their keys. If no attachment is present or invalid attachment mode, returns NULL

func CVBufferGetAttachment

func CVBufferGetAttachment(buffer unsafe.Pointer, key unsafe.Pointer, attachmentMode *CVAttachmentMode) unsafe.Pointer

@function CVBufferGetAttachment @abstract Returns a specific attachment of a CVBuffer object @discussion You can attach any CF object to a CVBuffer object to store additional information. CVBufferGetAttachment retrieves an attachement identified by a key. @param buffer Target CVBuffer object. @param key Key in form of a CFString identifying the desired attachment. @param attachmentMode Returns the mode of the attachment, if desired. May be NULL. @result If found the attachment object Deprecated: since macOS 12.0.

func CVBufferGetAttachments

func CVBufferGetAttachments(buffer unsafe.Pointer, attachmentMode CVAttachmentMode) unsafe.Pointer

@function CVBufferGetAttachments @abstract Returns all attachments of a CVBuffer object @discussion CVBufferGetAttachments is a convenience call that returns all attachments with their corresponding keys in a CFDictionary. @param buffer Target CVBuffer object. @result A CFDictionary with all buffer attachments identified by there keys. If no attachment is present, the dictionary is empty. Returns NULL for invalid attachment mode. Deprecated: since macOS 12.0.

func CVBufferHasAttachment

func CVBufferHasAttachment(buffer unsafe.Pointer, key unsafe.Pointer) uint8

@function CVBufferHasAttachment @abstract Returns true if an attachment with the passed key is present on a CVBuffer object. @param buffer Target CVBuffer object. @param key Key in form of a CFString identifying the desired attachment. @result True if an attachment with this key is present, otherwise false.

func CVBufferPropagateAttachments

func CVBufferPropagateAttachments(sourceBuffer unsafe.Pointer, destinationBuffer unsafe.Pointer)

@function CVBufferPropagateAttachments @abstract Copy all propagatable attachments from one buffer to another. @discussion CVBufferPropagateAttachments is a convenience call that copies all attachments with a mode of kCVAttachmentMode_ShouldPropagate from one buffer to another. @param sourceBuffer CVBuffer to copy attachments from. @param destinationBuffer CVBuffer to copy attachments to.

func CVBufferRelease

func CVBufferRelease(buffer unsafe.Pointer)

@function CVBufferRelease @abstract Release a CVBuffer object @discussion Like CFRetain CVBufferRetain decrements the retain count of a CVBuffer object. If that count consequently becomes zero the memory allocated to the object is deallocated and the object is destroyed. In contrast to the CF call it is NULL safe. @param buffer A CVBuffer object that you want to release.

func CVBufferRemoveAllAttachments

func CVBufferRemoveAllAttachments(buffer unsafe.Pointer)

@function CVBufferRemoveAllAttachments @abstract Removes all attachments of a CVBuffer object @discussion While CVBufferRemoveAttachment removes a specific attachement identified by a key CVBufferRemoveAllAttachments removes all attachments of a buffer and decrements their retain counts. @param buffer Target CVBuffer object.

func CVBufferRemoveAttachment

func CVBufferRemoveAttachment(buffer unsafe.Pointer, key unsafe.Pointer)

@function CVBufferRemoveAttachment @abstract Removes a specific attachment of a CVBuffer object @discussion CVBufferRemoveAttachment removes an attachement identified by a key. If found the attachement is removed and the retain count decremented. @param buffer Target CVBuffer object. @param key Key in form of a CFString identifying the desired attachment.

func CVBufferRetain

func CVBufferRetain(buffer unsafe.Pointer) unsafe.Pointer

@function CVBufferRetain @abstract Retains a CVBuffer object @discussion Like CFRetain CVBufferRetain increments the retain count of a CVBuffer object. In contrast to the CF call it is NULL safe. @param buffer A CVBuffer object that you want to retain. @result A CVBuffer object that is the same as the passed in buffer.

func CVBufferSetAttachment

func CVBufferSetAttachment(buffer unsafe.Pointer, key unsafe.Pointer, value unsafe.Pointer, attachmentMode CVAttachmentMode)

@function CVBufferSetAttachment @abstract Sets or adds a attachment of a CVBuffer object @discussion You can attach any CF object to a CVBuffer object to store additional information. CVBufferGetAttachment stores an attachement identified by a key. If the key doesn't exist, the attachment will be added. If the key does exist, the existing attachment will be replaced. In bouth cases the retain count of the attachment will be incremented. The value can be any CFType but nil has no defined behavior. @param buffer Target CVBuffer object. @param key Key in form of a CFString identifying the desired attachment. @param value Attachment in form af a CF object. @param attachmentMode Specifies which attachment mode is desired for this attachment. A particular attachment key may only exist in a single mode at a time.

func CVBufferSetAttachments

func CVBufferSetAttachments(buffer unsafe.Pointer, theAttachments unsafe.Pointer, attachmentMode CVAttachmentMode)

@function CVBufferSetAttachments @abstract Sets a set of attachments for a CVBuffer @discussion CVBufferSetAttachments is a convenience call that in turn calls CVBufferSetAttachment for each key and value in the given dictionary. All key value pairs must be in the root level of the dictionary. @param buffer Target CVBuffer object.

func CVColorPrimariesGetIntegerCodePointForString

func CVColorPrimariesGetIntegerCodePointForString(colorPrimariesString unsafe.Pointer) int

func CVColorPrimariesGetStringForIntegerCodePoint

func CVColorPrimariesGetStringForIntegerCodePoint(colorPrimariesCodePoint int) unsafe.Pointer

func CVDisplayLinkCreateWithActiveCGDisplays

func CVDisplayLinkCreateWithActiveCGDisplays(displayLinkOut unsafe.Pointer) int32

@function CVDisplayLinkCreateWithActiveCGDisplays @abstract Convenience function to create a CVDisplayLink capable of being used with all active CGDisplays @param displayLinkOut The newly created CVDisplayLink @result kCVReturnSuccess if the device was created, or failure

func CVDisplayLinkCreateWithCGDisplay

func CVDisplayLinkCreateWithCGDisplay(displayID uint32, displayLinkOut unsafe.Pointer) int32

@function CVDisplayLinkCreateWithCGDisplay @abstract Convenience call to create a CVDisplayLink for a single CGDirectDisplay. @discussion Use this call to create a CVDisplayLink for a single CGDirectDisplay. @param displayID CGDirectDisplayID of the target display @param displayLinkOut The new display link will be returned here @result returns kCVReturnSuccess on success.

func CVDisplayLinkCreateWithCGDisplays

func CVDisplayLinkCreateWithCGDisplays(displayArray *uint32, count int, displayLinkOut unsafe.Pointer) int32

@function CVDisplayLinkCreateWithCGDisplays @abstract General call to create a CVDisplayLink @discussion Use this call to create a CVDisplayLink for a set of displays indentified by the CGDirectDisplayIDs. @param displayArray array of CGDirectDisplayIDs @param count number of displays in the displayArray @param displayLinkOut The new display link will be returned here @result returns kCVReturnSuccess on success.

func CVDisplayLinkCreateWithOpenGLDisplayMask

func CVDisplayLinkCreateWithOpenGLDisplayMask(mask uint32, displayLinkOut unsafe.Pointer) int32

@function CVDisplayLinkCreateWithOpenGLDisplayMask @abstract Convenience call to create a CVDisplayLink from an OpenGL display mask. @discussion Use this call to create a CVDisplayLink for a CGOpenGLDisplayMask. @param mask CGOpenGLDisplayMask describing the display @param displayLinkOut The new display link will be returned here @result returns kCVReturnSuccess on success.

func CVDisplayLinkGetActualOutputVideoRefreshPeriod

func CVDisplayLinkGetActualOutputVideoRefreshPeriod(displayLink unsafe.Pointer) float64

@function CVDisplayLinkGetActualOutputVideoRefreshPeriod @abstract Retrieves the actual output refresh period of a display as measured by the host timebase. @discussion This call returns the actual output refresh period (in seconds) as computed relative to the host's timebase. @param displayLink The CVDisplayLink to get the refresh period from. @result A double containing the actual refresh period. This value may be zero if the device is not running, or is otherwise unavailable.

func CVDisplayLinkGetCurrentCGDisplay

func CVDisplayLinkGetCurrentCGDisplay(displayLink unsafe.Pointer) uint32

@function CVDisplayLinkGetCurrentCGDisplay @abstract Gets the current display of a DisplayLink @discussion (description) @param displayLink target CVDisplayLinkRef @result CGDirectDisplayID

func CVDisplayLinkGetCurrentTime

func CVDisplayLinkGetCurrentTime(displayLink unsafe.Pointer, outTime *CVTimeStamp) int32

@function CVDisplayLinkGetCurrentTime @abstract Retrieves the current ("now") time of a given CVDisplayLink @discussion This call may be used to get the current time of a running CVDisplayLink, outside of the output callback. @param displayLink The CVDisplayLink to get the current time from. @param outTime A pointer to a CVTimeStamp struct. This struct's version field must currently be set correctly (currently 0) to indicate which version of the timestamp struct is desired. @result kCVReturnSuccess if the current time could be retrieved, otherwise an error indicating why the operation failed.

func CVDisplayLinkGetTypeID

func CVDisplayLinkGetTypeID() uint

func CVDisplayLinkIsRunning

func CVDisplayLinkIsRunning(displayLink unsafe.Pointer) uint8

@function CVDisplayLinkIsRunning @abstract Retrieves the running state of a CVDisplayLink. @discussion This call queries the running state of the given CVDisplayLink. @param displayLink The CVDisplayLink to get the running state from. @result A boolean describing the running state. It returns true if it is running and false if it is not running or the CVDisplayLink is invalid.

func CVDisplayLinkRelease

func CVDisplayLinkRelease(displayLink unsafe.Pointer)

@function CVDisplayLinkRelease @abstract Releases the CVDisplayLink @discussion Use this call to release a CVDisplayLink. @param displayLink target CVDisplayLinkRef. NULL safe.

func CVDisplayLinkRetain

func CVDisplayLinkRetain(displayLink unsafe.Pointer) unsafe.Pointer

@function CVDisplayLinkRetain @abstract Retains the CVDisplayLink @discussion Use this call to retain a CVDisplayLink. @param displayLink target CVDisplayLinkRef. NULL safe. @result If successfull the passed in dislplayLink

func CVDisplayLinkSetCurrentCGDisplay

func CVDisplayLinkSetCurrentCGDisplay(displayLink unsafe.Pointer, displayID uint32) int32

@function CVDisplayLinkSetCurrentCGDisplay @abstract Sets the current display of a DisplayLink @discussion It is safe to call this with a running display link, but be aware that there will likely be a timestamp discontinuity in the video time stamp @param displayLink target CVDisplayLinkRef @param displayID target CGDirectDisplayID @result CVReturn. kCVReturnSuccess if successfull.

func CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext

func CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink unsafe.Pointer, cglContext unsafe.Pointer, cglPixelFormat unsafe.Pointer) int32

@function CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext @abstract Convenience function to select a CVDisplayLink most optimal for the current renderer of the passed in OpenGL context @param displayLink The CVDisplayLink for which you want to set the current CGDisplay @param cglContext The OpenGL context to retrieve the current renderer from. @param cglPixelFormat The OpenGL pixel format used to create the passed in OpenGL context @result kCVReturnSuccess if a device was found, or failure.

func CVDisplayLinkSetOutputCallback

func CVDisplayLinkSetOutputCallback(displayLink unsafe.Pointer, callback unsafe.Pointer, userInfo unsafe.Pointer) int32

@function CVDisplayLinkSetOutputCallback @abstract Set the renderer output callback function @discussion The DisplayLink will invoke this callback whenever it wants you to output a frame. @param displayLink target CVDisplayLinkRef @param callback CVDisplayLinkOutputCallback function @param userInfo User data for the callback to identify the context. @result CVReturn. kCVReturnSuccess if successfull.

func CVDisplayLinkSetOutputHandler

func CVDisplayLinkSetOutputHandler(displayLink unsafe.Pointer, handler func(unsafe.Pointer, *CVTimeStamp, *CVTimeStamp, uint64, *uint64) int32) int32

func CVDisplayLinkStart

func CVDisplayLinkStart(displayLink unsafe.Pointer) int32

@function CVDisplayLinkStart @abstract Start timer for DisplayLink @discussion This call should not be made from inside the CVDisplayLinkOutputCallback @param displayLink target CVDisplayLinkRef @result CVReturn. kCVReturnSuccess if successfull. kCVReturnDisplayLinkCallbacksNotSet The DisplayLink cannot be started until the output callback is set.

func CVDisplayLinkStop

func CVDisplayLinkStop(displayLink unsafe.Pointer) int32

@function CVDisplayLinkStop @abstract Stop timer for DisplayLink @discussion (description) @param displayLink target CVDisplayLinkRef @result CVReturn. kCVReturnSuccess if successfull.

func CVDisplayLinkTranslateTime

func CVDisplayLinkTranslateTime(displayLink unsafe.Pointer, inTime *CVTimeStamp, outTime *CVTimeStamp) int32

@function CVDisplayLinkTranslateTime @abstract Translates the time in the CVDisplayLink's time base from one representation to another. Note that the device has to be running for this call to succeed. @param displayLink The CVDisplayLink who's timebase should be used to do the translation. @param inTime A CVTimeStamp containing the source time to be translated. @param outTime A CVTimeStamp into which the target time will be written. This struct's version field must currently be set correctly (currently 0) to indicate which version of the timestamp struct is desired. As well, the flags field should be used to specify which representations to translate to. @result kCVReturnSuccess if the time could be translated, otherwise an error indicating why the operation failed.

func CVGetCurrentHostTime

func CVGetCurrentHostTime() uint64

@function CVGetCurrentHostTime @abstract Retrieve the current value of the host time base. @discussion On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API may be used interchangeably. @result The current host time.

func CVGetHostClockFrequency

func CVGetHostClockFrequency() float64

@function CVGetHostClockFrequency @abstract Retrieve the frequency of the host time base. @discussion On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API may be used interchangeably. @result The current host frequency.

func CVGetHostClockMinimumTimeDelta

func CVGetHostClockMinimumTimeDelta() uint32

@function CVGetHostClockMinimumTimeDelta @abstract Retrieve the smallest possible increment in the host time base. @result The smallest valid increment in the host time base.

func CVImageBufferCreateColorSpaceFromAttachments

func CVImageBufferCreateColorSpaceFromAttachments(attachments unsafe.Pointer) unsafe.Pointer

@function CVImageBufferCreateColorSpaceFromAttachments @abstract Attempts to synthesize a CGColorSpace from an image buffer's attachments. @param attachments A CFDictionary of attachments for an image buffer, obtained using CVBufferCopyAttachments(). @result A CGColorSpaceRef representing the color space of the buffer. Returns NULL if the attachments dictionary does not contain the information required to synthesize a CGColorSpace. @discussion To generate a CGColorSpace, the attachments dictionary should include values for either: 1. kCVImageBufferICCProfile 2. kCVImageBufferColorPrimariesKey, kCVImageBufferTransferFunctionKey, and kCVImageBufferYCbCrMatrixKey (and possibly kCVImageBufferGammaLevelKey) The client is responsible for releasing the CGColorSpaceRef when it is done with it (CGColorSpaceRelease() or CFRelease())

func CVImageBufferGetCleanRect

func CVImageBufferGetCleanRect(imageBuffer unsafe.Pointer) corefoundation.CGRect

@function CVImageBufferGetCleanRect @abstract Returns the source rectangle of a CVImageBuffer that represents the clean aperture of the buffer in encoded pixels. For example, an NTSC DV frame would return a CGRect with an origin of 8,0 and a size of 704,480. Note that the origin of this rect always the lower left corner. This is the same coordinate system as used by CoreImage. @param imageBuffer A CVImageBuffer that you wish to retrieve the display size from. @result A CGSize returning the nominal display size of the buffer Returns zero rect if called with a non-CVImageBufferRef type or NULL.

func CVImageBufferGetColorSpace

func CVImageBufferGetColorSpace(imageBuffer unsafe.Pointer) unsafe.Pointer

@function CVImageBufferGetColorSpace @abstract Returns the color space of a CVImageBuffer. @param imageBuffer A CVImageBuffer that you wish to retrieve the color space from. @result A CGColorSpaceRef representing the color space of the buffer. Returns NULL if called with a non-CVImageBufferRef type or NULL.

func CVImageBufferGetDisplaySize

func CVImageBufferGetDisplaySize(imageBuffer unsafe.Pointer) corefoundation.CGSize

@function CVImageBufferGetDisplaySize @abstract Returns the nominal output display size (in square pixels) of a CVImageBuffer. For example, for an NTSC DV frame this would be 640x480 @param imageBuffer A CVImageBuffer that you wish to retrieve the display size from. @result A CGSize returning the nominal display size of the buffer Returns zero size if called with a non-CVImageBufferRef type or NULL.

func CVImageBufferGetEncodedSize

func CVImageBufferGetEncodedSize(imageBuffer unsafe.Pointer) corefoundation.CGSize

@function CVImageBufferGetEncodedSize @abstract Returns the full encoded dimensions of a CVImageBuffer. For example, for an NTSC DV frame this would be 720x480 @param imageBuffer A CVImageBuffer that you wish to retrieve the encoded size from. @result A CGSize returning the full encoded size of the buffer Returns zero size if called with a non-CVImageBufferRef type or NULL.

func CVImageBufferIsFlipped

func CVImageBufferIsFlipped(imageBuffer unsafe.Pointer) uint8

@function CVImageBufferIsFlipped @abstract Returns whether the image is flipped vertically or not. @param imageBuffer target @result True if 0,0 in the texture is upper left, false if 0,0 is lower left.

func CVIsCompressedPixelFormatAvailable

func CVIsCompressedPixelFormatAvailable(pixelFormatType uint) uint8

@function CVIsCompressedPixelFormatAvailable @abstract Checks if a compressed pixel format is supported on the current platform. @param pixelFormatType compressed pixel format. @result True if pixel format is supported on the current platform.

func CVMetalBufferCacheCreate

func CVMetalBufferCacheCreate(allocator unsafe.Pointer, cacheAttributes unsafe.Pointer, metalDevice metal.MTLDevice, cacheOut unsafe.Pointer) int32

@function CVMetalBufferCacheCreate @abstract Creates a new Buffer Cache. @param allocator The CFAllocatorRef to use for allocating the cache. May be NULL. @param cacheAttributes A CFDictionaryRef containing the attributes of the cache itself. May be NULL. @param metalDevice The Metal device for which the buffer objects will be created. @param cacheOut The newly created buffer cache will be placed here @result Returns kCVReturnSuccess on success

func CVMetalBufferCacheCreateBufferFromImage

func CVMetalBufferCacheCreateBufferFromImage(allocator unsafe.Pointer, bufferCache unsafe.Pointer, imageBuffer unsafe.Pointer, bufferOut unsafe.Pointer) int32

@function CVMetalBufferCacheCreateBuffer @abstract Creates a CVMetalBuffer object from an existing CVImageBuffer @param allocator The CFAllocatorRef to use for allocating the CVMetalBuffer object. May be NULL. @param bufferCache The buffer cache object that will manage the buffer. @param buffer The CVImageBuffer that you want to create a CVMetalBuffer from. @param bufferOut The newly created buffer object will be placed here. @result Returns kCVReturnSuccess on success @discussion Creates or returns a cached CVMetalBuffer object mapped to the CVImageBuffer. This creates a live binding between the CVImageBuffer and underlying CVMetalBuffer buffer object. IMPORTANT NOTE: Clients should retain CVMetalBuffer objects until they are done using the images in them. Retaining a CVMetalBuffer is your way to indicate that you're still using the image in the buffer, and that it should not be recycled yet.

func CVMetalBufferCacheFlush

func CVMetalBufferCacheFlush(bufferCache unsafe.Pointer, options uint64)

@function CVMetalBufferCacheFlush @abstract Performs internal housekeeping/recycling operations @discussion This call must be made periodically to give the buffer cache a chance to do internal housekeeping operations. @param bufferCache The buffer cache object to flush @param options Currently unused, set to 0.

func CVMetalBufferCacheGetTypeID

func CVMetalBufferCacheGetTypeID() uint

func CVMetalBufferGetBuffer

func CVMetalBufferGetBuffer(buffer unsafe.Pointer) metal.MTLBuffer

@function CVMetalBufferGetBuffer @abstract Returns the Metal MTLBuffer object of the CVMetalBufferRef @param buffer Target CVMetalBuffer @result Metal buffer

func CVMetalBufferGetTypeID

func CVMetalBufferGetTypeID() uint

func CVMetalTextureCacheCreate

func CVMetalTextureCacheCreate(allocator unsafe.Pointer, cacheAttributes unsafe.Pointer, metalDevice metal.MTLDevice, textureAttributes unsafe.Pointer, cacheOut unsafe.Pointer) int32

@function CVMetalTextureCacheCreate @abstract Creates a new Texture Cache. @param allocator The CFAllocatorRef to use for allocating the cache. May be NULL. @param cacheAttributes A CFDictionaryRef containing the attributes of the cache itself. May be NULL. @param metalDevice The Metal device for which the texture objects will be created. @param textureAttributes A CFDictionaryRef containing the attributes to be used for creating the CVMetalTexture objects. May be NULL. @param cacheOut The newly created texture cache will be placed here @result Returns kCVReturnSuccess on success

func CVMetalTextureCacheCreateTextureFromImage

func CVMetalTextureCacheCreateTextureFromImage(allocator unsafe.Pointer, textureCache unsafe.Pointer, sourceImage unsafe.Pointer, textureAttributes unsafe.Pointer, pixelFormat metal.MTLPixelFormat, width uint, height uint, planeIndex uint, textureOut unsafe.Pointer) int32

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

func CVMetalTextureCacheFlush

func CVMetalTextureCacheFlush(textureCache unsafe.Pointer, options uint64)

@function CVMetalTextureCacheFlush @abstract Performs internal housekeeping/recycling operations @discussion This call must be made periodically to give the texture cache a chance to do internal housekeeping operations. @param textureCache The texture cache object to flush @param options Currently unused, set to 0.

func CVMetalTextureCacheGetTypeID

func CVMetalTextureCacheGetTypeID() uint

func CVMetalTextureGetCleanTexCoords

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

@function CVMetalTextureGetCleanTexCoords @abstract Returns convenient normalized texture coordinates for the part of the image that should be displayed @discussion This function automatically takes into account whether or not the texture is flipped. @param image Target CVMetalTexture @param lowerLeft - array of two floats where the s and t normalized texture coordinates of the lower left corner of the image will be stored @param lowerRight - array of two floats where the s and t normalized texture coordinates of the lower right corner of the image will be stored @param upperRight - array of two floats where the s and t normalized texture coordinates of the upper right corner of the image will be stored @param upperLeft - array of two floats where the s and t normalized texture coordinates of the upper right corner of the image will be stored

func CVMetalTextureGetTexture

func CVMetalTextureGetTexture(image unsafe.Pointer) metal.MTLTexture

@function CVMetalTextureGetTexture @abstract Returns the Metal MTLTexture object of the CVMetalTextureRef @param image Target CVMetalTexture @result Metal texture

func CVMetalTextureGetTypeID

func CVMetalTextureGetTypeID() uint

func CVMetalTextureIsFlipped

func CVMetalTextureIsFlipped(image unsafe.Pointer) uint8

@function CVMetalTextureIsFlipped @abstract Returns whether the image is flipped vertically or not. @param image Target CVMetalTexture @result True if 0,0 in the texture is upper left, false if 0,0 is lower left

func CVOpenGLBufferAttach

func CVOpenGLBufferAttach(openGLBuffer unsafe.Pointer, cglContext unsafe.Pointer, face uint32, level int32, screen int32) int32

@function CVOpenGLBufferAttach @param openGLBuffer The buffer you wish to attach a GL context to @param cglContext The CGLContextObj you wish to attach @param face The target GL face enum (0 for non cube maps) @param level The mipmap level index you wish to attach to @param screen The virtual screen number you want to use @result kCVReturnSuccess if the attachment succeeded

func CVOpenGLBufferCreate

func CVOpenGLBufferCreate(allocator unsafe.Pointer, width uint, height uint, attributes unsafe.Pointer, bufferOut unsafe.Pointer) int32

@function CVOpenGLBufferCreate @abstract Create a new CVOpenGLBuffer that may be used for OpenGL rendering purposes @param width The width of the buffer in pixels @param height The height of the buffer in pixels @param attributes A CFDictionaryRef containing other desired attributes of the buffer (texture target, internal format, max mipmap level, etc.). May be NULL. Defaults are GL_TEXTURE_RECTANGLE_EXT, GL_RGBA, and 0 for kCVOpenGLBufferTarget, kCVOpenGLBufferInternalFormat and kCVOpenGLBufferMaximumMipmapLevel, respectively. @param bufferOut The newly created buffer will be placed here. @result kCVReturnSuccess if the attachment succeeded

func CVOpenGLBufferGetAttributes

func CVOpenGLBufferGetAttributes(openGLBuffer unsafe.Pointer) unsafe.Pointer

@function CVOpenGLBufferGetAttributes @param openGLBuffer Target OpenGL Buffer. @result CVOpenGLBuffer attributes dictionary, NULL if not set.

func CVOpenGLBufferGetTypeID

func CVOpenGLBufferGetTypeID() uint

func CVOpenGLBufferPoolCreate

func CVOpenGLBufferPoolCreate(allocator unsafe.Pointer, poolAttributes unsafe.Pointer, openGLBufferAttributes unsafe.Pointer, poolOut unsafe.Pointer) int32

@function CVOpenGLBufferPoolCreate @abstract Creates a new OpenGL Buffer pool. @discussion Equivalent to CFRelease, but NULL safe @param allocator The CFAllocatorRef to use for allocating this buffer pool. May be NULL. @param poolAttributes A CFDictionaryRef containing the attributes to be used for the pool itself. @param openGLBufferAttributes A CFDictionaryRef containing the attributes to be used for creating new OpenGLBuffers within the pool. @param poolOut The newly created pool will be placed here @result Returns kCVReturnSuccess on success

func CVOpenGLBufferPoolCreateOpenGLBuffer

func CVOpenGLBufferPoolCreateOpenGLBuffer(allocator unsafe.Pointer, openGLBufferPool unsafe.Pointer, openGLBufferOut unsafe.Pointer) int32

@function CVOpenGLBufferPoolCreateOpenGLBuffer @abstract Creates a new OpenGLBuffer object from the pool. @discussion The function creates a new CVOpenGLBuffer with the default attachments using the OpenGL buffer attributes specifed during pool creation. @param allocator The CFAllocatorRef to use for creating the OpenGL buffer. May be NULL. @param openGLBufferPool The CVOpenGLBufferPool that should create the new CVOpenGLBuffer. @param openGLBufferOut The newly created OpenGL buffer will be placed here @result Returns kCVReturnSuccess on success

func CVOpenGLBufferPoolGetAttributes

func CVOpenGLBufferPoolGetAttributes(pool unsafe.Pointer) unsafe.Pointer

@function CVOpenGLBufferPoolGetOpenGLBufferAttributes @abstract Returns the pool attributes dictionary for a CVOpenGLBufferPool @param pool The CVOpenGLBufferPoolRef to retrieve the attributes from @result Returns the pool attributes dictionary, or NULL on failure.

func CVOpenGLBufferPoolGetOpenGLBufferAttributes

func CVOpenGLBufferPoolGetOpenGLBufferAttributes(pool unsafe.Pointer) unsafe.Pointer

@function CVOpenGLBufferPoolGetOpenGLBufferAttributes @abstract Returns the attributes of OpenGL buffers that will be created from this pool. @discussion This function is provided for those cases where you may need to know some information about the buffers that will be created up front. @param pool The CVOpenGLBufferPoolRef to retrieve the attributes from @result Returns the OpenGL buffer attributes dictionary, or NULL on failure.

func CVOpenGLBufferPoolGetTypeID

func CVOpenGLBufferPoolGetTypeID() uint

func CVOpenGLBufferPoolRelease

func CVOpenGLBufferPoolRelease(openGLBufferPool unsafe.Pointer)

@function CVOpenGLBufferPoolRelease @abstract Releases a CVOpenGLBufferPoolRef object @discussion Equivalent to CFRelease, but NULL safe @param buffer A CVOpenGLBufferPoolRef object that you want to release.

func CVOpenGLBufferPoolRetain

func CVOpenGLBufferPoolRetain(openGLBufferPool unsafe.Pointer) unsafe.Pointer

@function CVOpenGLBufferPoolRetain @abstract Retains a CVOpenGLBufferPoolRef object @discussion Equivalent to CFRetain, but NULL safe @param buffer A CVOpenGLBufferPoolRef object that you want to retain. @result A CVOpenGLBufferPoolRef object that is the same as the passed in buffer.

func CVOpenGLBufferRelease

func CVOpenGLBufferRelease(buffer unsafe.Pointer)

@function CVOpenGLBufferRelease @abstract Releases a CVOpenGLBuffer object @discussion Equivalent to CFRelease, but NULL safe @param buffer A CVOpenGLBuffer object that you want to release.

func CVOpenGLBufferRetain

func CVOpenGLBufferRetain(buffer unsafe.Pointer) unsafe.Pointer

@function CVOpenGLBufferRetain @abstract Retains a CVOpenGLBuffer object @discussion Equivalent to CFRetain, but NULL safe @param buffer A CVOpenGLBuffer object that you want to retain. @result A CVOpenGLBuffer object that is the same as the passed in buffer.

func CVOpenGLTextureCacheCreate

func CVOpenGLTextureCacheCreate(allocator unsafe.Pointer, cacheAttributes unsafe.Pointer, cglContext unsafe.Pointer, cglPixelFormat unsafe.Pointer, textureAttributes unsafe.Pointer, cacheOut unsafe.Pointer) int32

@function CVOpenGLTextureCacheCreate @abstract Creates a new Texture Cache. @param allocator The CFAllocatorRef to use for allocating the cache. May be NULL. @param cacheAttributes A CFDictionaryRef containing the attributes of the cache itself. May be NULL. @param cglContext The OpenGL context into which the texture objects will be created @param cglPixelFormat The OpenGL pixel format object used to create the passed in OpenGL context @param textureAttributes A CFDictionaryRef containing the attributes to be used for creating the CVOpenGLTexture objects. May be NULL. @param cacheOut The newly created texture cache will be placed here @result Returns kCVReturnSuccess on success

func CVOpenGLTextureCacheCreateTextureFromImage

func CVOpenGLTextureCacheCreateTextureFromImage(allocator unsafe.Pointer, textureCache unsafe.Pointer, sourceImage unsafe.Pointer, attributes unsafe.Pointer, textureOut unsafe.Pointer) int32

@function CVOpenGLTextureCacheCreateTextureFromImage @abstract Creates a CVOpenGLTexture object from an existing CVImageBuffer @param allocator The CFAllocatorRef to use for allocating the CVOpenGLTexture object. May be NULL. @param textureCache The texture cache object that will manage the texture @param sourceImage The CVImageBuffer that you want to create a CVOpenGLTexture from. @param attributes For Future use only! - The desired buffer attributes for the CVOpenGLTexture. @param textureOut The newly created texture object will be placed here. @result Returns kCVReturnSuccess on success

func CVOpenGLTextureCacheFlush

func CVOpenGLTextureCacheFlush(textureCache unsafe.Pointer, options uint64)

@function CVOpenGLTextureCacheFlush @abstract Performs internal housekeeping/recycling operations @discussion This call must be made periodically to give the texture cache a chance to make OpenGL calls on the OpenGL context used to create it in order to do housekeeping operations. @param textureCache The texture cache object to flush @param options Currently unused, set to 0. @result Returns kCVReturnSuccess on success

func CVOpenGLTextureCacheGetTypeID

func CVOpenGLTextureCacheGetTypeID() uint

func CVOpenGLTextureCacheRelease

func CVOpenGLTextureCacheRelease(textureCache unsafe.Pointer)

@function CVOpenGLTextureCacheRelease @abstract Releases a CVOpenGLTextureCache object @discussion Equivalent to CFRelease, but NULL safe @param buffer A CVOpenGLTextureCache object that you want to release.

func CVOpenGLTextureCacheRetain

func CVOpenGLTextureCacheRetain(textureCache unsafe.Pointer) unsafe.Pointer

@function CVOpenGLTextureCacheRetain @abstract Retains a CVOpenGLTextureCache object @discussion Equivalent to CFRetain, but NULL safe @param buffer A CVOpenGLTextureCache object that you want to retain. @result A CVOpenGLTextureCache object that is the same as the passed in buffer.

func CVOpenGLTextureGetCleanTexCoords

func CVOpenGLTextureGetCleanTexCoords(image unsafe.Pointer, lowerLeft *float32, lowerRight *float32, upperRight *float32, upperLeft *float32)

@function CVOpenGLTextureGetCleanTexCoords @abstract Returns convenient texture coordinates for the part of the image that should be displayed @discussion This function automatically takes into account whether or not the texture is flipped. @param image Target CVOpenGLTexture @param lowerLeft - array of two GLfloats where the s and t texture coordinates of the lower left corner of the image will be stored @param lowerRight - array of two GLfloats where the s and t texture coordinates of the lower right corner of the image will be stored @param upperRight - array of two GLfloats where the s and t texture coordinates of the upper right corner of the image will be stored @param upperLeft - array of two GLfloats where the s and t texture coordinates of the upper right corner of the image will be stored

func CVOpenGLTextureGetName

func CVOpenGLTextureGetName(image unsafe.Pointer) uint32

@function CVOpenGLTextureGetName @abstract Returns the texture target name of the CVOpenGLTexture @param image Target CVOpenGLTexture @result OpenGL texture target name

func CVOpenGLTextureGetTarget

func CVOpenGLTextureGetTarget(image unsafe.Pointer) uint32

@function CVOpenGLTextureGetTarget @abstract Returns the texture target (eg. 2D vs. rect texture extension) of the CVOpenGLTexture @param image Target CVOpenGLTexture @result OpenGL texture target

func CVOpenGLTextureGetTypeID

func CVOpenGLTextureGetTypeID() uint

func CVOpenGLTextureIsFlipped

func CVOpenGLTextureIsFlipped(image unsafe.Pointer) uint8

@function CVOpenGLTextureIsFlipped @abstract Returns whether the image is flipped vertically or not. @param image Target CVOpenGLTexture @result True if 0,0 in the texture is upper left, false if 0,0 is lower left

func CVOpenGLTextureRelease

func CVOpenGLTextureRelease(texture unsafe.Pointer)

@function CVOpenGLTextureRelease @abstract Releases a CVOpenGLTexture object @discussion Equivalent to CFRelease, but NULL safe @param buffer A CVOpenGLTexture object that you want to release.

func CVOpenGLTextureRetain

func CVOpenGLTextureRetain(texture unsafe.Pointer) unsafe.Pointer

@function CVOpenGLTextureRetain @abstract Retains a CVOpenGLTexture object @discussion Equivalent to CFRetain, but NULL safe @param buffer A CVOpenGLTexture object that you want to retain. @result A CVOpenGLTexture object that is the same as the passed in buffer.

func CVPixelBufferCopyCreationAttributes

func CVPixelBufferCopyCreationAttributes(pixelBuffer unsafe.Pointer) unsafe.Pointer

@function CVPixelBufferCopyCreationAttributes @abstract Returns a copy of pixelBufferAttributes dictionary used to create the PixelBuffer. @discussion Can be used to create similar pixelbuffers. @param pixelBuffer Target PixelBuffer.

func CVPixelBufferCreate

func CVPixelBufferCreate(allocator unsafe.Pointer, width uint, height uint, pixelFormatType uint, pixelBufferAttributes unsafe.Pointer, pixelBufferOut unsafe.Pointer) int32

@function CVPixelBufferCreate @abstract Call to create a single PixelBuffer for a given size and pixelFormatType. @discussion Creates a single PixelBuffer for a given size and pixelFormatType. It allocates the necessary memory based on the pixel dimensions, pixelFormatType and extended pixels described in the pixelBufferAttributes. Not all parameters of the pixelBufferAttributes will be used here. @param width Width of the PixelBuffer in pixels. @param height Height of the PixelBuffer in pixels. @param pixelFormatType Pixel format indentified by its respective OSType. @param pixelBufferAttributes A dictionary with additional attributes for a pixel buffer. This parameter is optional. See BufferAttributeKeys for more details. @param pixelBufferOut The new pixel buffer will be returned here @result returns kCVReturnSuccess on success.

func CVPixelBufferCreateResolvedAttributesDictionary

func CVPixelBufferCreateResolvedAttributesDictionary(allocator unsafe.Pointer, attributes unsafe.Pointer, resolvedDictionaryOut unsafe.Pointer) int32

@function CVPixelBufferCreateResolvedAttributesDictionary @abstract Takes a CFArray of CFDictionary objects describing various pixel buffer attributes and tries to resolve them into a single dictionary. @discussion This is useful when you need to resolve multiple requirements between different potential clients of a buffer. @param attributes CFArray of CFDictionaries containing kCVPixelBuffer key/value pairs. @param resolvedDictionaryOut The resulting dictionary will be placed here. @result Return value that may be useful in discovering why resolution failed.

func CVPixelBufferCreateWithBytes

func CVPixelBufferCreateWithBytes(allocator unsafe.Pointer, width uint, height uint, pixelFormatType uint, baseAddress unsafe.Pointer, bytesPerRow uint, releaseCallback unsafe.Pointer, releaseRefCon unsafe.Pointer, pixelBufferAttributes unsafe.Pointer, pixelBufferOut unsafe.Pointer) int32

@function CVPixelBufferCreateWithBytes @abstract Call to create a single PixelBuffer for a given size and pixelFormatType based on a passed in piece of memory. @discussion Creates a single PixelBuffer for a given size and pixelFormatType. Not all parameters of the pixelBufferAttributes will be used here. It requires a release callback function that will be called, when the PixelBuffer gets destroyed so that the owner of the pixels can free the memory. @param width Width of the PixelBuffer in pixels @param height Height of the PixelBuffer in pixels @param pixelFormatType Pixel format indentified by its respective OSType. @param baseAddress Address of the memory storing the pixels. @param bytesPerRow Row bytes of the pixel storage memory. @param releaseCallback CVPixelBufferReleaseBytePointerCallback function that gets called when the PixelBuffer gets destroyed. @param releaseRefCon User data identifying the PixelBuffer for the release callback. @param pixelBufferAttributes A dictionary with additional attributes for a a pixel buffer. This parameter is optional. See PixelBufferAttributes for more details. @param pixelBufferOut The new pixel buffer will be returned here @result returns kCVReturnSuccess on success.

func CVPixelBufferCreateWithIOSurface

func CVPixelBufferCreateWithIOSurface(allocator unsafe.Pointer, surface unsafe.Pointer, pixelBufferAttributes unsafe.Pointer, pixelBufferOut unsafe.Pointer) int32

@function CVPixelBufferCreateWithIOSurface @abstract Call to create a single CVPixelBuffer for a passed-in IOSurface. @discussion The CVPixelBuffer will retain the IOSurface. IMPORTANT NOTE: If you are using IOSurface to share CVPixelBuffers between processes and those CVPixelBuffers are allocated via a CVPixelBufferPool, it is important that the CVPixelBufferPool does not reuse CVPixelBuffers whose IOSurfaces are still in use in other processes. CoreVideo and IOSurface will take care of this for if you use IOSurfaceCreateMachPort and IOSurfaceLookupFromMachPort, but NOT if you pass IOSurfaceIDs. @param surface The IOSurface to wrap. @param pixelBufferAttributes A dictionary with additional attributes for a a pixel buffer. This parameter is optional. See PixelBufferAttributes for more details. @param pixelBufferOut The new pixel buffer will be returned here @result returns kCVReturnSuccess on success.

func CVPixelBufferCreateWithPlanarBytes

func CVPixelBufferCreateWithPlanarBytes(allocator unsafe.Pointer, width uint, height uint, pixelFormatType uint, dataPtr unsafe.Pointer, dataSize uint, numberOfPlanes uint, planeBaseAddress unsafe.Pointer, planeWidth *uint, planeHeight *uint, planeBytesPerRow *uint, releaseCallback unsafe.Pointer, releaseRefCon unsafe.Pointer, pixelBufferAttributes unsafe.Pointer, pixelBufferOut unsafe.Pointer) int32

@function CVPixelBufferCreateWithPlanarBytes @abstract Call to create a single PixelBuffer in planar format for a given size and pixelFormatType based on a passed in piece of memory. @discussion Creates a single PixelBuffer for a given size and pixelFormatType. Not all parameters of the pixelBufferAttributes will be used here. It requires a release callback function that will be called, when the PixelBuffer gets destroyed so that the owner of the pixels can free the memory. @param width Width of the PixelBuffer in pixels @param height Height of the PixelBuffer in pixels @param pixelFormatType Pixel format indentified by its respective OSType. @param dataPtr Pass a pointer to a plane descriptor block, or NULL. @param dataSize pass size if planes are contiguous, NULL if not. @param numberOfPlanes Number of planes. @param planeBaseAddress Array of base addresses for the planes. @param planeWidth Array of plane widths. @param planeHeight Array of plane heights. @param planeBytesPerRow Array of plane bytesPerRow values. @param releaseCallback CVPixelBufferReleaseBytePointerCallback function that gets called when the PixelBuffer gets destroyed. @param releaseRefCon User data identifying the PixelBuffer for the release callback. @param pixelBufferAttributes A dictionary with additional attributes for a a pixel buffer. This parameter is optional. See PixelBufferAttributes for more details. @param pixelBufferOut The new pixel buffer will be returned here @result returns kCVReturnSuccess on success.

func CVPixelBufferFillExtendedPixels

func CVPixelBufferFillExtendedPixels(pixelBuffer unsafe.Pointer) int32

@function CVPixelBufferFillExtendedPixels @abstract Fills the extended pixels of the PixelBuffer. This function replicates edge pixels to fill the entire extended region of the image. @param pixelBuffer Target PixelBuffer.

func CVPixelBufferGetBaseAddress

func CVPixelBufferGetBaseAddress(pixelBuffer unsafe.Pointer) unsafe.Pointer

@function CVPixelBufferGetBaseAddress @abstract Returns the base address of the PixelBuffer. @discussion Retrieving the base address for a PixelBuffer requires that the buffer base address be locked via a successful call to CVPixelBufferLockBaseAddress. @param pixelBuffer Target PixelBuffer. @result Base address of the pixels. For chunky buffers, this will return a pointer to the pixel at 0,0 in the buffer For planar buffers this will return a pointer to a PlanarComponentInfo struct (defined in QuickTime).

func CVPixelBufferGetBaseAddressOfPlane

func CVPixelBufferGetBaseAddressOfPlane(pixelBuffer unsafe.Pointer, planeIndex uint) unsafe.Pointer

@function CVPixelBufferGetBaseAddressOfPlane @abstract Returns the base address of the plane at planeIndex in the PixelBuffer. @discussion Retrieving the base address for a PixelBuffer requires that the buffer base address be locked via a successful call to CVPixelBufferLockBaseAddress. On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior. @param pixelBuffer Target PixelBuffer. @param planeIndex Identifying the plane. @result Base address of the plane, or NULL for non-planar CVPixelBufferRefs.

func CVPixelBufferGetBytesPerRow

func CVPixelBufferGetBytesPerRow(pixelBuffer unsafe.Pointer) uint

@function CVPixelBufferGetBytesPerRow @abstract Returns the rowBytes of the PixelBuffer. @param pixelBuffer Target PixelBuffer. @result Bytes per row of the image data. For planar buffers this will return a rowBytes value such that bytesPerRow * height will cover the entire image including all planes.

func CVPixelBufferGetBytesPerRowOfPlane

func CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer unsafe.Pointer, planeIndex uint) uint

@function CVPixelBufferGetBytesPerRowOfPlane @abstract Returns the row bytes of the plane at planeIndex in the PixelBuffer. @discussion On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior. @param pixelBuffer Target PixelBuffer. @param planeIndex Identifying the plane. @result Row bytes of the plane, or NULL for non-planar CVPixelBufferRefs.

func CVPixelBufferGetDataSize

func CVPixelBufferGetDataSize(pixelBuffer unsafe.Pointer) uint

@function CVPixelBufferGetDataSize @abstract Returns the data size for contigous planes of the PixelBuffer. @param pixelBuffer Target PixelBuffer. @result Data size used in CVPixelBufferCreateWithPlanarBytes.

func CVPixelBufferGetExtendedPixels

func CVPixelBufferGetExtendedPixels(pixelBuffer unsafe.Pointer, extraColumnsOnLeft *uint, extraColumnsOnRight *uint, extraRowsOnTop *uint, extraRowsOnBottom *uint)

@function CVPixelBufferGetExtendedPixels @abstract Returns the size of extended pixels of the PixelBuffer. @discussion On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior. @param pixelBuffer Target PixelBuffer. @param extraColumnsOnLeft Returns the pixel row padding to the left. May be NULL. @param extraRowsOnTop Returns the pixel row padding to the top. May be NULL. @param extraColumnsOnRight Returns the pixel row padding to the right. May be NULL. @param extraRowsOnBottom Returns the pixel row padding to the bottom. May be NULL.

func CVPixelBufferGetHeight

func CVPixelBufferGetHeight(pixelBuffer unsafe.Pointer) uint

@function CVPixelBufferGetHeight @abstract Returns the height of the PixelBuffer. @param pixelBuffer Target PixelBuffer. @result Height in pixels.

func CVPixelBufferGetHeightOfPlane

func CVPixelBufferGetHeightOfPlane(pixelBuffer unsafe.Pointer, planeIndex uint) uint

@function CVPixelBufferGetHeightOfPlane @abstract Returns the height of the plane at planeIndex in the PixelBuffer. @discussion On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior. @param pixelBuffer Target PixelBuffer. @param planeIndex Identifying the plane. @result Height in pixels, or 0 for non-planar CVPixelBufferRefs.

func CVPixelBufferGetIOSurface

func CVPixelBufferGetIOSurface(pixelBuffer unsafe.Pointer) unsafe.Pointer

@function CVPixelBufferGetIOSurface @abstract Returns the IOSurface backing the pixel buffer, or NULL if it is not backed by an IOSurface. @param pixelBuffer Target PixelBuffer.

func CVPixelBufferGetPixelFormatType

func CVPixelBufferGetPixelFormatType(pixelBuffer unsafe.Pointer) uint

@function CVPixelBufferGetPixelFormatType @abstract Returns the PixelFormatType of the PixelBuffer. @param pixelBuffer Target PixelBuffer. @result OSType identifying the pixel format by its type.

func CVPixelBufferGetPlaneCount

func CVPixelBufferGetPlaneCount(pixelBuffer unsafe.Pointer) uint

@function CVPixelBufferGetPlaneCount @abstract Returns number of planes of the PixelBuffer. @param pixelBuffer Target PixelBuffer. @result Number of planes. Returns 0 for non-planar CVPixelBufferRefs.

func CVPixelBufferGetTypeID

func CVPixelBufferGetTypeID() uint

func CVPixelBufferGetWidth

func CVPixelBufferGetWidth(pixelBuffer unsafe.Pointer) uint

@function CVPixelBufferGetWidth @abstract Returns the width of the PixelBuffer. @param pixelBuffer Target PixelBuffer. @result Width in pixels.

func CVPixelBufferGetWidthOfPlane

func CVPixelBufferGetWidthOfPlane(pixelBuffer unsafe.Pointer, planeIndex uint) uint

@function CVPixelBufferGetWidthOfPlane @abstract Returns the width of the plane at planeIndex in the PixelBuffer. @discussion On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior. @param pixelBuffer Target PixelBuffer. @param planeIndex Identifying the plane. @result Width in pixels, or 0 for non-planar CVPixelBufferRefs.

func CVPixelBufferIsCompatibleWithAttributes

func CVPixelBufferIsCompatibleWithAttributes(pixelBuffer unsafe.Pointer, attributes unsafe.Pointer) uint8

@function CVPixelBufferIsCompatibleWithAttributes @abstract Returns true if given pixel buffer is compatible with pixelBufferAttributes dictionary. @param pixelBuffer PixelBuffer to check for compatibility. @param attributes Creation attributes which pixel buffer should have.

func CVPixelBufferIsPlanar

func CVPixelBufferIsPlanar(pixelBuffer unsafe.Pointer) uint8

@function CVPixelBufferIsPlanar @abstract Returns if the PixelBuffer is planar. @param pixelBuffer Target PixelBuffer. @result True if the PixelBuffer was created using CVPixelBufferCreateWithPlanarBytes.

func CVPixelBufferLockBaseAddress

func CVPixelBufferLockBaseAddress(pixelBuffer unsafe.Pointer, lockFlags CVPixelBufferLockFlags) int32

@function CVPixelBufferLockBaseAddress @abstract Description Locks the BaseAddress of the PixelBuffer to ensure that the memory is accessible. @discussion This API ensures that the CVPixelBuffer is accessible in system memory. This should only be called if the base address is going to be used and the pixel data will be accessed by the CPU. @param pixelBuffer Target PixelBuffer. @param lockFlags See CVPixelBufferLockFlags. @result kCVReturnSuccess if the lock succeeded, or error code on failure

func CVPixelBufferPoolCreate

func CVPixelBufferPoolCreate(allocator unsafe.Pointer, poolAttributes unsafe.Pointer, pixelBufferAttributes unsafe.Pointer, poolOut unsafe.Pointer) int32

@function CVPixelBufferPoolCreate @abstract Creates a new Pixel Buffer pool. @param allocator The CFAllocatorRef to use for allocating this buffer pool. May be NULL. @param attributes A CFDictionaryRef containing the attributes to be used for creating new PixelBuffers within the pool. @param poolOut The newly created pool will be placed here @result Returns kCVReturnSuccess on success

func CVPixelBufferPoolCreatePixelBuffer

func CVPixelBufferPoolCreatePixelBuffer(allocator unsafe.Pointer, pixelBufferPool unsafe.Pointer, pixelBufferOut unsafe.Pointer) int32

@function CVPixelBufferPoolCreatePixelBuffer @abstract Creates a new PixelBuffer object from the pool. @discussion The function creates a new (attachment-free) CVPixelBuffer using the pixel buffer attributes specifed during pool creation. @param allocator The CFAllocatorRef to use for creating the pixel buffer. May be NULL. @param pool The CVPixelBufferPool that should create the new CVPixelBuffer. @param pixelBufferOut The newly created pixel buffer will be placed here @result Returns kCVReturnSuccess on success

func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes

func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(allocator unsafe.Pointer, pixelBufferPool unsafe.Pointer, auxAttributes unsafe.Pointer, pixelBufferOut unsafe.Pointer) int32

func CVPixelBufferPoolFlush

func CVPixelBufferPoolFlush(pool unsafe.Pointer, options CVPixelBufferPoolFlushFlags)

@function CVPixelBufferPoolFlush @abstract Frees as many buffers from the pool as possible. @discussion By default, this function will free all aged out buffers. Setting the kCVPixelBufferPoolFlushExcessBuffers flag will cause this call to free all unused buffers regardless of age. @param pool The CVPixelBufferPool to be flushed. @param options Set to kCVPixelBufferPoolFlushExcessBuffers to free all unused buffers regardless of their age.

func CVPixelBufferPoolGetAttributes

func CVPixelBufferPoolGetAttributes(pool unsafe.Pointer) unsafe.Pointer

@function CVPixelBufferPoolGetAttributes @abstract Returns the pool attributes dictionary for a CVPixelBufferPool @param pool The CVPixelBufferPoolRef to retrieve the attributes from @result Returns the pool attributes dictionary, or NULL on failure.

func CVPixelBufferPoolGetPixelBufferAttributes

func CVPixelBufferPoolGetPixelBufferAttributes(pool unsafe.Pointer) unsafe.Pointer

@function CVPixelBufferPoolGetPixelBufferAttributes @abstract Returns the attributes of pixel buffers that will be created from this pool. @discussion This function is provided for those cases where you may need to know some information about the buffers that will be created up front. @param pool The CVPixelBufferPoolRef to retrieve the attributes from @result Returns the pixel buffer attributes dictionary, or NULL on failure.

func CVPixelBufferPoolGetTypeID

func CVPixelBufferPoolGetTypeID() uint

func CVPixelBufferPoolRelease

func CVPixelBufferPoolRelease(pixelBufferPool unsafe.Pointer)

@function CVPixelBufferPoolRelease @abstract Releases a CVPixelBufferPoolRef object @discussion Equivalent to CFRelease, but NULL safe @param buffer A CVPixelBufferPoolRef object that you want to release.

func CVPixelBufferPoolRetain

func CVPixelBufferPoolRetain(pixelBufferPool unsafe.Pointer) unsafe.Pointer

@function CVPixelBufferPoolRetain @abstract Retains a CVPixelBufferPoolRef object @discussion Equivalent to CFRetain, but NULL safe @param buffer A CVPixelBufferPoolRef object that you want to retain. @result A CVPixelBufferPoolRef object that is the same as the passed in buffer.

func CVPixelBufferRelease

func CVPixelBufferRelease(texture unsafe.Pointer)

@function CVPixelBufferRelease @abstract Releases a CVPixelBuffer object @discussion Equivalent to CFRelease, but NULL safe @param texture A CVPixelBuffer object that you want to release.

func CVPixelBufferRetain

func CVPixelBufferRetain(texture unsafe.Pointer) unsafe.Pointer

@function CVPixelBufferRetain @abstract Retains a CVPixelBuffer object @discussion Equivalent to CFRetain, but NULL safe @param texture A CVPixelBuffer object that you want to retain. @result A CVPixelBuffer object that is the same as the passed in buffer.

func CVPixelBufferUnlockBaseAddress

func CVPixelBufferUnlockBaseAddress(pixelBuffer unsafe.Pointer, unlockFlags CVPixelBufferLockFlags) int32

@function CVPixelBufferUnlockBaseAddress @abstract Description Unlocks the BaseAddress of the PixelBuffer. @param pixelBuffer Target PixelBuffer. @param unlockFlags See CVPixelBufferLockFlags. @result kCVReturnSuccess if the unlock succeeded, or error code on failure

func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes

func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(allocator unsafe.Pointer) unsafe.Pointer

func CVPixelFormatDescriptionCreateWithPixelFormatType

func CVPixelFormatDescriptionCreateWithPixelFormatType(allocator unsafe.Pointer, pixelFormat uint) unsafe.Pointer

func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType

func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description unsafe.Pointer, pixelFormat uint)

func CVPixelFormatTypeCopyFourCharCodeString

func CVPixelFormatTypeCopyFourCharCodeString(pixelFormat uint) unsafe.Pointer

@function CVPixelFormatTypeCopyFourCharCodeString @abstract Creates a string with a formatted representation of a pixel format @param pixelFormat The pixel format to convert @result A string with a user displayable conversion of a pixel format.

func CVTransferFunctionGetIntegerCodePointForString

func CVTransferFunctionGetIntegerCodePointForString(transferFunctionString unsafe.Pointer) int

func CVTransferFunctionGetStringForIntegerCodePoint

func CVTransferFunctionGetStringForIntegerCodePoint(transferFunctionCodePoint int) unsafe.Pointer

func CVYCbCrMatrixGetIntegerCodePointForString

func CVYCbCrMatrixGetIntegerCodePointForString(yCbCrMatrixString unsafe.Pointer) int

func CVYCbCrMatrixGetStringForIntegerCodePoint

func CVYCbCrMatrixGetStringForIntegerCodePoint(yCbCrMatrixCodePoint int) unsafe.Pointer

func KCVBufferMovieTimeKey

func KCVBufferMovieTimeKey() uintptr

func KCVBufferNonPropagatedAttachmentsKey

func KCVBufferNonPropagatedAttachmentsKey() uintptr

func KCVBufferPropagatedAttachmentsKey

func KCVBufferPropagatedAttachmentsKey() uintptr

func KCVBufferTimeScaleKey

func KCVBufferTimeScaleKey() uintptr

func KCVBufferTimeValueKey

func KCVBufferTimeValueKey() uintptr

func KCVImageBufferAlphaChannelIsOpaque

func KCVImageBufferAlphaChannelIsOpaque() uintptr

func KCVImageBufferAlphaChannelModeKey

func KCVImageBufferAlphaChannelModeKey() uintptr

func KCVImageBufferAlphaChannelMode_PremultipliedAlpha

func KCVImageBufferAlphaChannelMode_PremultipliedAlpha() uintptr

func KCVImageBufferAlphaChannelMode_StraightAlpha

func KCVImageBufferAlphaChannelMode_StraightAlpha() uintptr

func KCVImageBufferAmbientViewingEnvironmentKey

func KCVImageBufferAmbientViewingEnvironmentKey() uintptr

func KCVImageBufferCGColorSpaceKey

func KCVImageBufferCGColorSpaceKey() uintptr

func KCVImageBufferChromaLocationBottomFieldKey

func KCVImageBufferChromaLocationBottomFieldKey() uintptr

func KCVImageBufferChromaLocationTopFieldKey

func KCVImageBufferChromaLocationTopFieldKey() uintptr

func KCVImageBufferChromaLocation_Bottom

func KCVImageBufferChromaLocation_Bottom() uintptr

func KCVImageBufferChromaLocation_BottomLeft

func KCVImageBufferChromaLocation_BottomLeft() uintptr

func KCVImageBufferChromaLocation_Center

func KCVImageBufferChromaLocation_Center() uintptr

func KCVImageBufferChromaLocation_DV420

func KCVImageBufferChromaLocation_DV420() uintptr

func KCVImageBufferChromaLocation_Left

func KCVImageBufferChromaLocation_Left() uintptr

func KCVImageBufferChromaLocation_Top

func KCVImageBufferChromaLocation_Top() uintptr

func KCVImageBufferChromaLocation_TopLeft

func KCVImageBufferChromaLocation_TopLeft() uintptr

func KCVImageBufferChromaSubsamplingKey

func KCVImageBufferChromaSubsamplingKey() uintptr

func KCVImageBufferChromaSubsampling_411

func KCVImageBufferChromaSubsampling_411() uintptr

func KCVImageBufferChromaSubsampling_420

func KCVImageBufferChromaSubsampling_420() uintptr

func KCVImageBufferChromaSubsampling_422

func KCVImageBufferChromaSubsampling_422() uintptr

func KCVImageBufferCleanApertureHeightKey

func KCVImageBufferCleanApertureHeightKey() uintptr

func KCVImageBufferCleanApertureHorizontalOffsetKey

func KCVImageBufferCleanApertureHorizontalOffsetKey() uintptr

func KCVImageBufferCleanApertureKey

func KCVImageBufferCleanApertureKey() uintptr

func KCVImageBufferCleanApertureVerticalOffsetKey

func KCVImageBufferCleanApertureVerticalOffsetKey() uintptr

func KCVImageBufferCleanApertureWidthKey

func KCVImageBufferCleanApertureWidthKey() uintptr

func KCVImageBufferColorPrimariesKey deprecated

func KCVImageBufferColorPrimariesKey() uintptr

Deprecated: kCVImageBufferYCbCrMatrix_P3_D65 no longer supported.

func KCVImageBufferColorPrimaries_DCI_P3

func KCVImageBufferColorPrimaries_DCI_P3() uintptr

func KCVImageBufferColorPrimaries_EBU_3213

func KCVImageBufferColorPrimaries_EBU_3213() uintptr

func KCVImageBufferColorPrimaries_ITU_R_709_2 deprecated

func KCVImageBufferColorPrimaries_ITU_R_709_2() uintptr

Deprecated: kCVImageBufferYCbCrMatrix_P3_D65 no longer supported.

func KCVImageBufferColorPrimaries_ITU_R_2020

func KCVImageBufferColorPrimaries_ITU_R_2020() uintptr

func KCVImageBufferColorPrimaries_P3_D65

func KCVImageBufferColorPrimaries_P3_D65() uintptr

func KCVImageBufferColorPrimaries_P22

func KCVImageBufferColorPrimaries_P22() uintptr

func KCVImageBufferColorPrimaries_SMPTE_C

func KCVImageBufferColorPrimaries_SMPTE_C() uintptr

func KCVImageBufferContentLightLevelInfoKey

func KCVImageBufferContentLightLevelInfoKey() uintptr

func KCVImageBufferDisplayDimensionsKey

func KCVImageBufferDisplayDimensionsKey() uintptr

func KCVImageBufferDisplayHeightKey

func KCVImageBufferDisplayHeightKey() uintptr

func KCVImageBufferDisplayMaskRectangleKey

func KCVImageBufferDisplayMaskRectangleKey() uintptr

@constant kCVImageBufferDisplayMaskRectangleKey @abstract Specifies the rectangular display area within the image. The left, width, top and height are specified relative to a reference raster width and height that should be scaled to the image buffer dimensions. @discussion Value is a dictionary containing these keys for the raster rectangle: kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey kCVImageBufferDisplayMaskRectangle_RectangleLeftKey kCVImageBufferDisplayMaskRectangle_RectangleWidthKey kCVImageBufferDisplayMaskRectangle_RectangleTopKey kCVImageBufferDisplayMaskRectangle_RectangleHeightKey

func KCVImageBufferDisplayMaskRectangleStereoLeftKey

func KCVImageBufferDisplayMaskRectangleStereoLeftKey() uintptr

@constant kCVImageBufferDisplayMaskRectangleStereoLeftKey @abstract Specifies the rectangular display area within the left eye view of stereo images, using the same keys as with kCVImageBufferDisplayMaskRectangleKey. To address window violations in stereo video, points insetting the left and right edges of the rectangle are supported through additional keys, allowing the description of the "extended raster rectangle". @discussion Value is a dictionary containing these keys for the extended raster rectangle: kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey kCVImageBufferDisplayMaskRectangle_RectangleLeftKey kCVImageBufferDisplayMaskRectangle_RectangleWidthKey kCVImageBufferDisplayMaskRectangle_RectangleTopKey kCVImageBufferDisplayMaskRectangle_RectangleHeightKey kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey

func KCVImageBufferDisplayMaskRectangleStereoRightKey

func KCVImageBufferDisplayMaskRectangleStereoRightKey() uintptr

@constant kCVImageBufferDisplayMaskRectangleStereoRightKey @abstract Specifies the rectangular display area within the right eye view of stereo images, using the same keys as with kCVImageBufferDisplayMaskRectangleKey. To address window violations in stereo video, points insetting the left and right edges of the rectangle are supported through additional keys, allowing the description of the "extended raster rectangle". @discussion Value is a dictionary containing these keys for the extended raster rectangle: kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey kCVImageBufferDisplayMaskRectangle_RectangleLeftKey kCVImageBufferDisplayMaskRectangle_RectangleWidthKey kCVImageBufferDisplayMaskRectangle_RectangleTopKey kCVImageBufferDisplayMaskRectangle_RectangleHeightKey kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey

func KCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey

func KCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey @abstract Specifies inset points on the left vertical edge of the rectangle. The points are CFArray of unsigned 16-bit integer CFNumber pairs alternating between inset X and inset Y. Inset X is an unsigned offset from left edge (0) towards the right edge (width). Inset Y is an unsigned offset from top edge (0) towards the bottom edge (height)

func KCVImageBufferDisplayMaskRectangle_RectangleHeightKey

func KCVImageBufferDisplayMaskRectangle_RectangleHeightKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_RectangleHeightKey @abstract Specifies the height of the rectangle starting at rectangle's top offset toward the rectangle's bottom edge. The height value is a CFNumber of unsigned 16-bit integer.

func KCVImageBufferDisplayMaskRectangle_RectangleLeftKey

func KCVImageBufferDisplayMaskRectangle_RectangleLeftKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_RectangleLeftKey @abstract Specifies the horizontal pixel offset of the rectangle from the left of the bounding raster. The left offset value is a CFNumber of unsigned 16-bit integer that is less than the reference raster width value.

func KCVImageBufferDisplayMaskRectangle_RectangleTopKey

func KCVImageBufferDisplayMaskRectangle_RectangleTopKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_RectangleTopKey @abstract Specifies the vertical pixel offset of the rectangle from the top of the bounding raster. The top offset value is a CFNumber of unsigned 16-bit integer that is less than the reference raster height value.

func KCVImageBufferDisplayMaskRectangle_RectangleWidthKey

func KCVImageBufferDisplayMaskRectangle_RectangleWidthKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_RectangleWidthKey @abstract Specifies the width of the rectangle starting at rectangle's left offset toward the rectangle's right edge. The width value is a CFNumber of unsigned 16-bit integer.

func KCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey

func KCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey @abstract Specifies the height in pixels of the 2D coordinate system to define the rectangle. 0,0 origin is the top-left. The raster height value is a CFNumber of unsigned 16-bit integer. Usually matches the height of the video or the output device.

func KCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey

func KCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey @abstract Specifies the width in pixels of the 2D coordinate system to define the rectangle. 0,0 origin is the top-left. The raster width value is a CFNumber of unsigned 16-bit integer. Usually matches the width of the video or the output device.

func KCVImageBufferDisplayMaskRectangle_RightEdgePointsKey

func KCVImageBufferDisplayMaskRectangle_RightEdgePointsKey() uintptr

@constant kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey @abstract Specifies inset points on the right vertical edge of the rectangle. The points are CFArray of unsigned 16-bit integer CFNumber pairs alternating between inset X and inset Y. Inset X is an unsigned offset from right edge (0) towards the left edge (width). Inset Y is an unsigned offset from top edge (0) towards the bottom edge (height)

func KCVImageBufferDisplayWidthKey

func KCVImageBufferDisplayWidthKey() uintptr

func KCVImageBufferFieldCountKey

func KCVImageBufferFieldCountKey() uintptr

func KCVImageBufferFieldDetailKey

func KCVImageBufferFieldDetailKey() uintptr

func KCVImageBufferFieldDetailSpatialFirstLineEarly

func KCVImageBufferFieldDetailSpatialFirstLineEarly() uintptr

func KCVImageBufferFieldDetailSpatialFirstLineLate

func KCVImageBufferFieldDetailSpatialFirstLineLate() uintptr

func KCVImageBufferFieldDetailTemporalBottomFirst

func KCVImageBufferFieldDetailTemporalBottomFirst() uintptr

func KCVImageBufferFieldDetailTemporalTopFirst

func KCVImageBufferFieldDetailTemporalTopFirst() uintptr

func KCVImageBufferGammaLevelKey

func KCVImageBufferGammaLevelKey() uintptr

func KCVImageBufferICCProfileKey

func KCVImageBufferICCProfileKey() uintptr

func KCVImageBufferLogTransferFunctionKey

func KCVImageBufferLogTransferFunctionKey() uintptr

@constant kCVImageBufferLogTransferFunctionKey Indicates that the transfer function or gamma of the content is a log format and identifies the specific log curve. @discussion The value is a CFString holding fully specified reverse DNS identifier. Log is a specific video format usually processed in a camera's ISP. A Log video format usually defines: Scene-referred color primaries designed to preserve the chromaticity range captured by a camera sensor. In cinematography, "scene-referred" color primaries refers to a color space designed to accurately preserve the chromaticity and dynamic range directly captured by a camera sensor. A specific gamma curve (or transfer characteristic) tailored to capturing the full dynamic range from the sensor. This gamma curve is usually shaped like a log curve (hence the name Log). A set of matrix transforms to go from RGB to Y'CbCr (Y'CbCr being the most common format used to store the bits compressed into a file). As described above, a Log video format defines a whole color space (even though the “log” part of the name comes only from the “transfer characteristic” or gamma curve) Content captured in Apple Log will have this key set to kCVImageBufferLogTransferFunction_AppleLog or kCVImageBufferLogTransferFunction_AppleLog2. @constant kCVImageBufferLogTransferFunction_AppleLog Indicates the Apple Log identifier. @constant kCVImageBufferLogTransferFunction_AppleLog2 Indicates the Apple Log 2 identifier. To use Apple Log 2, set other color attachments as follows: kCVImageBufferColorPrimariesKey = undefined or absent kCVImageBufferTransferFunctionKey = undefined or absent kCVImageBufferYCbCrMatrixKey = kCVImageBufferYCbCrMatrix_ITU_R_2020 https://developer.apple.com/download/all/?q=Apple%20log%20profile @discussion You can download the Apple Log Profile White Paper from the Apple Developer Downloads website.

func KCVImageBufferLogTransferFunction_AppleLog

func KCVImageBufferLogTransferFunction_AppleLog() uintptr

func KCVImageBufferLogTransferFunction_AppleLog2

func KCVImageBufferLogTransferFunction_AppleLog2() uintptr

func KCVImageBufferMasteringDisplayColorVolumeKey

func KCVImageBufferMasteringDisplayColorVolumeKey() uintptr

func KCVImageBufferPixelAspectRatioHorizontalSpacingKey

func KCVImageBufferPixelAspectRatioHorizontalSpacingKey() uintptr

func KCVImageBufferPixelAspectRatioKey

func KCVImageBufferPixelAspectRatioKey() uintptr

func KCVImageBufferPixelAspectRatioVerticalSpacingKey

func KCVImageBufferPixelAspectRatioVerticalSpacingKey() uintptr

func KCVImageBufferPostDecodeProcessingFrameMetadataKey

func KCVImageBufferPostDecodeProcessingFrameMetadataKey() uintptr

func KCVImageBufferPostDecodeProcessingSequenceMetadataKey

func KCVImageBufferPostDecodeProcessingSequenceMetadataKey() uintptr

func KCVImageBufferPreferredCleanApertureKey

func KCVImageBufferPreferredCleanApertureKey() uintptr

func KCVImageBufferRegionOfInterestKey

func KCVImageBufferRegionOfInterestKey() uintptr

@constant kCVImageBufferRegionOfInterestKey @abstract Specifies region of interest that image statistics cover. @discussion This value should be a CGRect dictionary created by CGRectCreateDictionaryRepresentation(). The origin in the CGRect represents the x,y coordinate within the CVPixelBuffer where region of interest is located.

func KCVImageBufferSceneIlluminationKey

func KCVImageBufferSceneIlluminationKey() uintptr

func KCVImageBufferTransferFunctionKey

func KCVImageBufferTransferFunctionKey() uintptr

func KCVImageBufferTransferFunction_EBU_3213

func KCVImageBufferTransferFunction_EBU_3213() uintptr

func KCVImageBufferTransferFunction_ITU_R_709_2

func KCVImageBufferTransferFunction_ITU_R_709_2() uintptr

func KCVImageBufferTransferFunction_ITU_R_2020

func KCVImageBufferTransferFunction_ITU_R_2020() uintptr

func KCVImageBufferTransferFunction_ITU_R_2100_HLG

func KCVImageBufferTransferFunction_ITU_R_2100_HLG() uintptr

func KCVImageBufferTransferFunction_Linear

func KCVImageBufferTransferFunction_Linear() uintptr

func KCVImageBufferTransferFunction_SMPTE_240M_1995

func KCVImageBufferTransferFunction_SMPTE_240M_1995() uintptr

func KCVImageBufferTransferFunction_SMPTE_C

func KCVImageBufferTransferFunction_SMPTE_C() uintptr

func KCVImageBufferTransferFunction_SMPTE_ST_428_1

func KCVImageBufferTransferFunction_SMPTE_ST_428_1() uintptr

func KCVImageBufferTransferFunction_SMPTE_ST_2084_PQ

func KCVImageBufferTransferFunction_SMPTE_ST_2084_PQ() uintptr

func KCVImageBufferTransferFunction_UseGamma

func KCVImageBufferTransferFunction_UseGamma() uintptr

func KCVImageBufferTransferFunction_sRGB

func KCVImageBufferTransferFunction_sRGB() uintptr

func KCVImageBufferYCbCrMatrixKey

func KCVImageBufferYCbCrMatrixKey() uintptr

func KCVImageBufferYCbCrMatrix_DCI_P3 deprecated

func KCVImageBufferYCbCrMatrix_DCI_P3() uintptr

Deprecated: kCVImageBufferYCbCrMatrix_DCI_P3 no longer supported.

func KCVImageBufferYCbCrMatrix_ITU_R_601_4

func KCVImageBufferYCbCrMatrix_ITU_R_601_4() uintptr

func KCVImageBufferYCbCrMatrix_ITU_R_709_2

func KCVImageBufferYCbCrMatrix_ITU_R_709_2() uintptr

func KCVImageBufferYCbCrMatrix_ITU_R_2020 deprecated

func KCVImageBufferYCbCrMatrix_ITU_R_2020() uintptr

Deprecated: kCVImageBufferYCbCrMatrix_P3_D65 no longer supported.

func KCVImageBufferYCbCrMatrix_P3_D65 deprecated

func KCVImageBufferYCbCrMatrix_P3_D65() uintptr

Deprecated: kCVImageBufferYCbCrMatrix_P3_D65 no longer supported.

func KCVImageBufferYCbCrMatrix_SMPTE_240M_1995

func KCVImageBufferYCbCrMatrix_SMPTE_240M_1995() uintptr

func KCVMetalBufferCacheMaximumBufferAgeKey

func KCVMetalBufferCacheMaximumBufferAgeKey() uintptr

func KCVMetalTextureCacheMaximumTextureAgeKey

func KCVMetalTextureCacheMaximumTextureAgeKey() uintptr

func KCVMetalTextureStorageMode

func KCVMetalTextureStorageMode() uintptr

@discussion kCVMetalTextureStorageMode is a property that can be placed on a CVMetalTextureCache to instruct the MTLTextureStorageMode of the created MTLTexture. Values for this can can be read from MTLTexture.h

func KCVMetalTextureUsage

func KCVMetalTextureUsage() uintptr

@discussion kCVMetalTextureUsage is a property that can be placed on a CVMetalTextureCache to instruct the MTLTextureUsage of the created MTLTexture. Values for this can can be read from MTLTexture.h

func KCVOpenGLBufferHeight

func KCVOpenGLBufferHeight() uintptr

func KCVOpenGLBufferInternalFormat

func KCVOpenGLBufferInternalFormat() uintptr

func KCVOpenGLBufferMaximumMipmapLevel

func KCVOpenGLBufferMaximumMipmapLevel() uintptr

func KCVOpenGLBufferPoolMaximumBufferAgeKey

func KCVOpenGLBufferPoolMaximumBufferAgeKey() uintptr

func KCVOpenGLBufferPoolMinimumBufferCountKey

func KCVOpenGLBufferPoolMinimumBufferCountKey() uintptr

func KCVOpenGLBufferTarget

func KCVOpenGLBufferTarget() uintptr

func KCVOpenGLBufferWidth

func KCVOpenGLBufferWidth() uintptr

func KCVOpenGLTextureCacheChromaSamplingModeAutomatic

func KCVOpenGLTextureCacheChromaSamplingModeAutomatic() uintptr

func KCVOpenGLTextureCacheChromaSamplingModeBestPerformance

func KCVOpenGLTextureCacheChromaSamplingModeBestPerformance() uintptr

func KCVOpenGLTextureCacheChromaSamplingModeHighestQuality

func KCVOpenGLTextureCacheChromaSamplingModeHighestQuality() uintptr

func KCVOpenGLTextureCacheChromaSamplingModeKey

func KCVOpenGLTextureCacheChromaSamplingModeKey() uintptr

func KCVPixelBufferBytesPerRowAlignmentKey

func KCVPixelBufferBytesPerRowAlignmentKey() uintptr

func KCVPixelBufferCGBitmapContextCompatibilityKey

func KCVPixelBufferCGBitmapContextCompatibilityKey() uintptr

func KCVPixelBufferCGImageCompatibilityKey

func KCVPixelBufferCGImageCompatibilityKey() uintptr

func KCVPixelBufferExtendedPixelsBottomKey

func KCVPixelBufferExtendedPixelsBottomKey() uintptr

func KCVPixelBufferExtendedPixelsLeftKey

func KCVPixelBufferExtendedPixelsLeftKey() uintptr

func KCVPixelBufferExtendedPixelsRightKey

func KCVPixelBufferExtendedPixelsRightKey() uintptr

func KCVPixelBufferExtendedPixelsTopKey

func KCVPixelBufferExtendedPixelsTopKey() uintptr

func KCVPixelBufferHeightKey

func KCVPixelBufferHeightKey() uintptr

func KCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey

func KCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey() uintptr

func KCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey

func KCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey() uintptr

func KCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey

func KCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey() uintptr

func KCVPixelBufferIOSurfacePropertiesKey

func KCVPixelBufferIOSurfacePropertiesKey() uintptr

func KCVPixelBufferIOSurfacePurgeableKey

func KCVPixelBufferIOSurfacePurgeableKey() uintptr

@const kCVPixelBufferIOSurfacePurgeableKey @abstract Key sets the IOSurface backed memory allocation for CVPixelBuffer as purgable and volatile. @discussion A purgeable IOSurface is capable of being switched between non-volatile, volatile and empty states using IOSurfaceSetPurgeable. When in the volatile state, the OS is permitted to instantly change its state to empty and remove all its memory pages. Clients should set the IOSurfaces to the non-volatile state while they are in use and the volatile state when their need and contents is optional/speculative and OK to discard in response to system memory demand. See IOSurfaceSetPurgeable for more details. This key is only effective for CVPixelBuffers that are backed by IOSurface.

func KCVPixelBufferMemoryAllocatorKey

func KCVPixelBufferMemoryAllocatorKey() uintptr

func KCVPixelBufferMetalCompatibilityKey

func KCVPixelBufferMetalCompatibilityKey() uintptr

func KCVPixelBufferOpenGLCompatibilityKey

func KCVPixelBufferOpenGLCompatibilityKey() uintptr

func KCVPixelBufferOpenGLTextureCacheCompatibilityKey

func KCVPixelBufferOpenGLTextureCacheCompatibilityKey() uintptr

func KCVPixelBufferPixelFormatTypeKey

func KCVPixelBufferPixelFormatTypeKey() uintptr

func KCVPixelBufferPlaneAlignmentKey

func KCVPixelBufferPlaneAlignmentKey() uintptr

func KCVPixelBufferPoolAllocationThresholdKey

func KCVPixelBufferPoolAllocationThresholdKey() uintptr

func KCVPixelBufferPoolFreeBufferNotification

func KCVPixelBufferPoolFreeBufferNotification() uintptr

func KCVPixelBufferPoolMaximumBufferAgeKey

func KCVPixelBufferPoolMaximumBufferAgeKey() uintptr

func KCVPixelBufferPoolMinimumBufferCountKey

func KCVPixelBufferPoolMinimumBufferCountKey() uintptr

func KCVPixelBufferProResRAWKey_BlackLevel

func KCVPixelBufferProResRAWKey_BlackLevel() uintptr

@const kCVPixelBufferProResRAWKey_BlackLevel @abstract Buffer attachment key for sensel black level. @discussion Associated attachment is a CFNumber of type kCFNumberSInt32Type. The value is the sensel level corresponding to no light exposure. This attachment is required for buffers with either the bp16 or bp64 format.

func KCVPixelBufferProResRAWKey_ColorMatrix

func KCVPixelBufferProResRAWKey_ColorMatrix() uintptr

@const kCVPixelBufferProResRAWKey_ColorMatrix @abstract Buffer attachment key for color translation matrix. @discussion Associated attachment is CFData containing an array of 9 32-bit floats. The value is a 3x3 matrix which transforms linear RGB pixel values in the camera native color space to CIE 1931 XYZ values relative to the D65 illuminant, where the matrix entries are stored in the CFData in row-major order. This attachment is required for buffers with either the bp16 or bp64 format.

func KCVPixelBufferProResRAWKey_GainFactor

func KCVPixelBufferProResRAWKey_GainFactor() uintptr

@const kCVPixelBufferProResRAWKey_GainFactor @abstract Buffer attachment key for gain factor. @discussion Associated attachment is a CFNumber of type kCFNumberFloat32Type. The value is the overall gain factor for raw conversion. This attachment is required for buffers with either the bp16 or bp64 format.

func KCVPixelBufferProResRAWKey_MetadataExtension

func KCVPixelBufferProResRAWKey_MetadataExtension() uintptr

@const kCVPixelBufferProResRAWKey_MetadataExtension @abstract Buffer attachment key for metadata extension. @discussion Associated attachment is CFData containing ProRes RAW metadata extension. This attachment is optional for buffers with either bp16 or bp64. The CFData contains a big-endian uint32 representing the size of the item in bytes followed by a 4-character code ('psim') followed by a variable-length pascal string identifying the metadata (like a key string) followed by the metadata payload.

func KCVPixelBufferProResRAWKey_RecommendedCrop

func KCVPixelBufferProResRAWKey_RecommendedCrop() uintptr

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

func KCVPixelBufferProResRAWKey_SenselSitingOffsets

func KCVPixelBufferProResRAWKey_SenselSitingOffsets() uintptr

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

func KCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor

func KCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor() uintptr

@const kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor @abstract Buffer attachment key for white balance blue factor. @discussion Associated attachment is a CFNumber of type kCFNumberFloat32Type. The value is the white balance multiplication factor for blue-filtered sensels. This attachment is required for buffers with either the bp16 or bp64 format.

func KCVPixelBufferProResRAWKey_WhiteBalanceCCT

func KCVPixelBufferProResRAWKey_WhiteBalanceCCT() uintptr

@const kCVPixelBufferProResRAWKey_WhiteBalanceCCT @abstract Buffer attachment key for illuminant correlated color temperature. @discussion Associated attachment is a CFNumber of type kCFNumberSInt32Type. The value is the illuminant correlated color temperature (CCT), in kelvins, selected at the time of capture. May be 0, indicating that the CCT is unknown or unspecified. This attachment is optional for buffers with either the bp16 or bp64 format; if not present, the CCT is considered unknown or unspecified.

func KCVPixelBufferProResRAWKey_WhiteBalanceRedFactor

func KCVPixelBufferProResRAWKey_WhiteBalanceRedFactor() uintptr

@const kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor @abstract Buffer attachment key for white balance red factor. @discussion Associated attachment is a CFNumber of type kCFNumberFloat32Type. The value is the white balance multiplication factor for red-filtered sensels. This attachment is required for buffers with either the bp16 or bp64 format.

func KCVPixelBufferProResRAWKey_WhiteLevel

func KCVPixelBufferProResRAWKey_WhiteLevel() uintptr

@const kCVPixelBufferProResRAWKey_WhiteLevel @abstract Buffer attachment key for sensel white level. @discussion Associated attachment is a CFNumber of type kCFNumberSInt32Type. The value is the sensel level corresponding to sensor (or camera A-to-D converter) saturation. This attachment is required for buffers with either the bp16 or bp64 format.

func KCVPixelBufferVersatileBayerKey_BayerPattern

func KCVPixelBufferVersatileBayerKey_BayerPattern() uintptr

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

func KCVPixelBufferWidthKey

func KCVPixelBufferWidthKey() uintptr

func KCVPixelFormatBitsPerBlock

func KCVPixelFormatBitsPerBlock() uintptr

func KCVPixelFormatBitsPerComponent

func KCVPixelFormatBitsPerComponent() uintptr

func KCVPixelFormatBlackBlock

func KCVPixelFormatBlackBlock() uintptr

func KCVPixelFormatBlockHeight

func KCVPixelFormatBlockHeight() uintptr

func KCVPixelFormatBlockHorizontalAlignment

func KCVPixelFormatBlockHorizontalAlignment() uintptr

func KCVPixelFormatBlockVerticalAlignment

func KCVPixelFormatBlockVerticalAlignment() uintptr

func KCVPixelFormatBlockWidth

func KCVPixelFormatBlockWidth() uintptr

func KCVPixelFormatCGBitmapContextCompatibility

func KCVPixelFormatCGBitmapContextCompatibility() uintptr

func KCVPixelFormatCGBitmapInfo

func KCVPixelFormatCGBitmapInfo() uintptr

func KCVPixelFormatCGImageCompatibility

func KCVPixelFormatCGImageCompatibility() uintptr

func KCVPixelFormatCodecType

func KCVPixelFormatCodecType() uintptr

func KCVPixelFormatComponentRange

func KCVPixelFormatComponentRange() uintptr

func KCVPixelFormatComponentRange_FullRange

func KCVPixelFormatComponentRange_FullRange() uintptr

func KCVPixelFormatComponentRange_VideoRange

func KCVPixelFormatComponentRange_VideoRange() uintptr

func KCVPixelFormatComponentRange_WideRange

func KCVPixelFormatComponentRange_WideRange() uintptr

func KCVPixelFormatConstant

func KCVPixelFormatConstant() uintptr

func KCVPixelFormatContainsAlpha

func KCVPixelFormatContainsAlpha() uintptr

func KCVPixelFormatContainsGrayscale

func KCVPixelFormatContainsGrayscale() uintptr

func KCVPixelFormatContainsRGB

func KCVPixelFormatContainsRGB() uintptr

func KCVPixelFormatContainsSenselArray

func KCVPixelFormatContainsSenselArray() uintptr

func KCVPixelFormatContainsYCbCr

func KCVPixelFormatContainsYCbCr() uintptr

func KCVPixelFormatFillExtendedPixelsCallback

func KCVPixelFormatFillExtendedPixelsCallback() uintptr

func KCVPixelFormatFourCC

func KCVPixelFormatFourCC() uintptr

func KCVPixelFormatHorizontalSubsampling

func KCVPixelFormatHorizontalSubsampling() uintptr

func KCVPixelFormatName

func KCVPixelFormatName() uintptr

func KCVPixelFormatOpenGLCompatibility

func KCVPixelFormatOpenGLCompatibility() uintptr

func KCVPixelFormatOpenGLFormat

func KCVPixelFormatOpenGLFormat() uintptr

func KCVPixelFormatOpenGLInternalFormat

func KCVPixelFormatOpenGLInternalFormat() uintptr

func KCVPixelFormatOpenGLType

func KCVPixelFormatOpenGLType() uintptr

func KCVPixelFormatPlanes

func KCVPixelFormatPlanes() uintptr

func KCVPixelFormatQDCompatibility

func KCVPixelFormatQDCompatibility() uintptr

func KCVPixelFormatVerticalSubsampling

func KCVPixelFormatVerticalSubsampling() uintptr

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int64
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

type CVAttachmentMode

type CVAttachmentMode int64

The propagation modes of a Core Video buffer attachment.

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

func (CVAttachmentMode) String

func (e CVAttachmentMode) String() string

type CVBuffer

type CVBuffer struct{}

@typedef CVBufferRef @abstract Base type for all CoreVideo buffers C struct: __CVBuffer CVBuffer is an opaque type.

type CVDisplayLink struct{}

C struct: __CVDisplayLink CVDisplayLink is an opaque type.

type CVFillExtendedPixelsCallBackData

type CVFillExtendedPixelsCallBackData struct {
	Version      int
	FillCallBack unsafe.Pointer
	RefCon       unsafe.Pointer
}

A structure for holding information that describes a custom extended pixel fill algorithm.

type CVMetalBufferCache

type CVMetalBufferCache struct{}

C struct: __CVMetalBufferCache CVMetalBufferCache is an opaque type.

type CVMetalTextureCache

type CVMetalTextureCache struct{}

@typedef CVMetalTextureCacheRef @abstract CoreVideo Metal Texture Cache C struct: __CVMetalTextureCache CVMetalTextureCache is an opaque type.

type CVOpenGLBufferPool

type CVOpenGLBufferPool struct{}

C struct: __CVOpenGLBufferPool CVOpenGLBufferPool is an opaque type.

type CVOpenGLTextureCache

type CVOpenGLTextureCache struct{}

@typedef CVOpenGLTextureCacheRef @abstract CoreVideo OpenGL Texture Cache C struct: __CVOpenGLTextureCache CVOpenGLTextureCache is an opaque type.

type CVPixelBufferLockFlags

type CVPixelBufferLockFlags int64

The flags to pass to CVPixelBufferLockBaseAddress and CVPixelBufferUnlockBaseAddress.

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

func (CVPixelBufferLockFlags) String

func (e CVPixelBufferLockFlags) String() string

type CVPixelBufferPool

type CVPixelBufferPool struct{}

C struct: __CVPixelBufferPool CVPixelBufferPool is an opaque type.

type CVPixelBufferPoolFlushFlags

type CVPixelBufferPoolFlushFlags int64

The flags to pass to flush the pool.

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

func (CVPixelBufferPoolFlushFlags) String

type CVPlanarComponentInfo

type CVPlanarComponentInfo struct {
	Offset   int32
	RowBytes uint32
}

A structure for describing planar components.

type CVPlanarPixelBufferInfo

type CVPlanarPixelBufferInfo struct {
	ComponentInfo [1]CVPlanarComponentInfo
}

A structure for describing planar buffers.

type CVPlanarPixelBufferInfo_YCbCrBiPlanar

type CVPlanarPixelBufferInfo_YCbCrBiPlanar struct {
	ComponentInfoY    CVPlanarComponentInfo
	ComponentInfoCbCr CVPlanarComponentInfo
}

A structure for describing YCbCr biplanar buffers.

type CVPlanarPixelBufferInfo_YCbCrPlanar

type CVPlanarPixelBufferInfo_YCbCrPlanar struct {
	ComponentInfoY  CVPlanarComponentInfo
	ComponentInfoCb CVPlanarComponentInfo
	ComponentInfoCr CVPlanarComponentInfo
}

A structure for describing YCbCr planar buffers.

type CVSMPTETime

type CVSMPTETime struct {
	Subframes       int16
	SubframeDivisor int16
	Counter         uint
	Type            uint
	Flags           uint
	Hours           int16
	Minutes         int16
	Seconds         int16
	Frames          int16
}

A structure for holding an SMPTE time.

type CVSMPTETimeFlags

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

func (CVSMPTETimeFlags) String

func (e CVSMPTETimeFlags) String() string

type CVSMPTETimeType

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

func (CVSMPTETimeType) String

func (e CVSMPTETimeType) String() string

type CVTime

type CVTime struct {
	TimeValue int64
	TimeScale int32
	Flags     int32
}

A structure for reporting Core Video time values.

func CVDisplayLinkGetNominalOutputVideoRefreshPeriod

func CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink unsafe.Pointer) CVTime

@function CVDisplayLinkGetNominalOutputVideoRefreshPeriod @abstract Retrieves the nominal refresh period of a CVDisplayLink. @discussion This call allows one to retrieve the device's "ideal" refresh period. For example, an NTSC output device might report 1001/60000 to represent the exact NTSC vertial refresh rate. @param displayLink The CVDisplayLink to get the refresh period from. @result A CVTime struct that holds the nominal refresh period. This value may be indefinite.

func CVDisplayLinkGetOutputVideoLatency

func CVDisplayLinkGetOutputVideoLatency(displayLink unsafe.Pointer) CVTime

@function CVDisplayLinkGetOutputVideoLatency @abstract Retrieves the nominal latency of a CVDisplayLink. @discussion This call allows one to retrieve the device's built in output latency. An NTSC device with one frame of latency might report back 1001/30000 or 2002/60000, for example. @param displayLink The CVDisplayLink to get the latency period from. @result A CVTime struct that holds the latency. This value may be indefinite.

func KCVIndefiniteTime

func KCVIndefiniteTime() CVTime

func KCVZeroTime

func KCVZeroTime() CVTime

type CVTimeFlags

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

func (CVTimeFlags) String

func (e CVTimeFlags) String() string

type CVTimeStamp

type CVTimeStamp struct {
	Version            uint32
	VideoTimeScale     int32
	VideoTime          int64
	HostTime           uint64
	RateScalar         float64
	VideoRefreshPeriod int64
	SmpteTime          CVSMPTETime
	Flags              uint64
	Reserved           uint64
}

A structure for defining a display timestamp.

type CVTimeStampFlags

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

func (CVTimeStampFlags) String

func (e CVTimeStampFlags) String() string

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type MTLBuffer

type MTLBuffer interface {
}

MTLBuffer wraps the ObjC protocol MTLBuffer.

type MTLDevice

type MTLDevice interface {
}

MTLDevice wraps the ObjC protocol MTLDevice.

type MTLTexture

type MTLTexture interface {
}

MTLTexture wraps the ObjC protocol MTLTexture.

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type PMPageToPaperMappingType

type PMPageToPaperMappingType int64
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

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