Documentation
¶
Overview ¶
Process digital video, including manipulation of individual frames, using a pipeline-based API and support for both Metal and OpenGL.
Index ¶
- type AttachmentMode
- type DisplayLinkOutputCallback
- type DisplayLinkOutputHandler
- type DisplayLinkRef
- type FillExtendedPixelsCallBack
- type ImageBufferRef
- type OptionFlags
- type PixelBufferLockFlags
- type PixelBufferPoolFlushFlags
- type PixelBufferPoolRef
- type PixelBufferRef
- type PixelBufferReleaseBytesCallback
- type PixelBufferReleasePlanarBytesCallback
- type Return
- type SMPTETimeFlags
- type SMPTETimeType
- type TimeFlags
- type TimeStamp
- type TimeStampFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentMode ¶
type AttachmentMode uint32
The propagation modes of a Core Video buffer attachment. Full Topic
const ( KAttachmentMode_ShouldNotPropagate AttachmentMode = 0 KAttachmentMode_ShouldPropagate AttachmentMode = 1 )
type DisplayLinkOutputCallback ¶
type DisplayLinkOutputCallback = func(displayLink DisplayLinkRef, inNow *TimeStamp, inOutputTime *TimeStamp, flagsIn OptionFlags, flagsOut *OptionFlags, displayLinkContext unsafe.Pointer) Return
A type for a display link callback function that the system invokes when it’s time for the app to output a video frame. Full Topic
type DisplayLinkOutputHandler ¶
type DisplayLinkOutputHandler = func(displayLink DisplayLinkRef, inNow *TimeStamp, inOutputTime *TimeStamp, flagsIn OptionFlags, flagsOut *OptionFlags) Return
[Full Topic]
type DisplayLinkRef ¶
type FillExtendedPixelsCallBack ¶
type FillExtendedPixelsCallBack = func(pixelBuffer PixelBufferRef, refCon unsafe.Pointer) bool
Defines a pointer to a custom extended pixel-fill function, which is called whenever the system needs to pad a buffer holding your custom pixel format. Full Topic
type ImageBufferRef ¶
type OptionFlags ¶
type OptionFlags uint64
The flags to be used for the display link output callback function. Full Topic
type PixelBufferLockFlags ¶
type PixelBufferLockFlags OptionFlags
The flags to pass to CVPixelBufferLockBaseAddress and CVPixelBufferUnlockBaseAddress. Full Topic
const (
KPixelBufferLock_ReadOnly PixelBufferLockFlags = 1
)
type PixelBufferPoolFlushFlags ¶
type PixelBufferPoolFlushFlags OptionFlags
The flags to pass to flush the pool. Full Topic
const (
KPixelBufferPoolFlushExcessBuffers PixelBufferPoolFlushFlags = 1
)
type PixelBufferPoolRef ¶
type PixelBufferRef ¶
type PixelBufferReleaseBytesCallback ¶
type PixelBufferReleaseBytesCallback = func(releaseRefCon unsafe.Pointer, baseAddress unsafe.Pointer)
A type that defines a release callback function. Full Topic
type PixelBufferReleasePlanarBytesCallback ¶
type PixelBufferReleasePlanarBytesCallback = func(releaseRefCon unsafe.Pointer, dataPtr unsafe.Pointer, dataSize uint, numberOfPlanes uint, planeAddresses unsafe.Pointer)
Defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by CVPixelBufferCreateWithPlanarBytes is released. Full Topic
type SMPTETimeFlags ¶
type SMPTETimeFlags uint32
[Full Topic]
const ( KSMPTETimeRunning SMPTETimeFlags = 2 KSMPTETimeValid SMPTETimeFlags = 1 )
type SMPTETimeType ¶
type SMPTETimeType uint32
[Full Topic]
const ( KSMPTETimeType24 SMPTETimeType = 0 KSMPTETimeType25 SMPTETimeType = 1 KSMPTETimeType2997 SMPTETimeType = 4 KSMPTETimeType2997Drop SMPTETimeType = 5 KSMPTETimeType30 SMPTETimeType = 3 KSMPTETimeType30Drop SMPTETimeType = 2 KSMPTETimeType5994 SMPTETimeType = 7 KSMPTETimeType60 SMPTETimeType = 6 )
type TimeStampFlags ¶
type TimeStampFlags uint64
[Full Topic]
const ( KTimeStampBottomField TimeStampFlags = 131072 KTimeStampHostTimeValid TimeStampFlags = 2 KTimeStampIsInterlaced TimeStampFlags = 196608 KTimeStampRateScalarValid TimeStampFlags = 16 KTimeStampSMPTETimeValid TimeStampFlags = 4 KTimeStampTopField TimeStampFlags = 65536 KTimeStampVideoHostTimeValid TimeStampFlags = 3 KTimeStampVideoRefreshPeriodValid TimeStampFlags = 8 KTimeStampVideoTimeValid TimeStampFlags = 1 )