corevideo

package
v0.5.0-preview Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

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

Full Documentation

Index

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 DisplayLinkRef unsafe.Pointer

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 ImageBufferRef unsafe.Pointer

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 PixelBufferPoolRef unsafe.Pointer

type PixelBufferRef

type PixelBufferRef unsafe.Pointer

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 Return

type Return int32

A Core Video error type return value. 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 TimeFlags

type TimeFlags int32
[Full Topic]
const (
	KTimeIsIndefinite TimeFlags = 1
)

type TimeStamp

type TimeStamp struct{}

todo

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
)

Jump to

Keyboard shortcuts

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