coremedia

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Represent time-based audio-visual assets with essential data types.

Apple Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioFormatDescriptionMask

type AudioFormatDescriptionMask uint32

A type for mask bits that represent parts of an audio format description. Full Topic

type AudioFormatDescriptionRef

type AudioFormatDescriptionRef FormatDescriptionRef

type BaseClassVersion

type BaseClassVersion uint
[Full Topic]

type BlockBufferCustomBlockSource

type BlockBufferCustomBlockSource struct {
	Version   uint32
	Pad_cgo_0 [24]byte
}

A structure to support custom memory allocation and deallocation for a block used in a block buffer. Full Topic

type BlockBufferFlags

type BlockBufferFlags uint32

A type for parameters that contain block buffer feature and control flags. Full Topic

type BlockBufferRef

type BlockBufferRef uintptr

A reference to a block buffer object. Full Topic

type BufferCallbacks

type BufferCallbacks struct {
	Version   uint32
	Pad_cgo_0 [64]byte
}

A structure that stores the callbacks that perform buffer operations. Full Topic

type BufferCompareCallback

type BufferCompareCallback = func(buf1 BufferRef, buf2 BufferRef, refcon unsafe.Pointer) corefoundation.ComparisonResult

Callback that compares one CMBuffer with another. Full Topic

type BufferCompareHandler

type BufferCompareHandler = func(buf1 BufferRef, buf2 BufferRef) corefoundation.ComparisonResult
[Full Topic]

type BufferGetBooleanCallback

type BufferGetBooleanCallback = func(buf BufferRef, refcon unsafe.Pointer) bool

Callback that returns a Boolean value from a CMBuffer. Full Topic

type BufferGetBooleanHandler

type BufferGetBooleanHandler = func(buf BufferRef) bool
[Full Topic]

type BufferGetSizeCallback

type BufferGetSizeCallback = func(buf BufferRef, refcon unsafe.Pointer) uint

A client callback that returns a size. Full Topic

type BufferGetSizeHandler

type BufferGetSizeHandler = func(buf BufferRef) uint
[Full Topic]

type BufferGetTimeCallback

type BufferGetTimeCallback = func(buf BufferRef, refcon unsafe.Pointer) Time

Callback that returns a CMTime from a CMBuffer. Full Topic

type BufferGetTimeHandler

type BufferGetTimeHandler = func(buf BufferRef) Time
[Full Topic]

type BufferHandlers

type BufferHandlers struct {
	Version                     uint64
	GetDecodeTimeStamp          uintptr                  // *_Ctype_struct___3
	GetPresentationTimeStamp    uintptr                  // *_Ctype_struct___3
	GetDuration                 uintptr                  // *_Ctype_struct___3
	IsDataReady                 uintptr                  // *_Ctype_struct___4
	Compare                     uintptr                  // *_Ctype_struct___5
	DataBecameReadyNotification corefoundation.StringRef //*_Ctype_struct___CFString
	GetSize                     uintptr                  // *_Ctype_struct___6
}

A structure that stores the handlers that perform buffer operations. Full Topic

type BufferQueueRef

type BufferQueueRef uintptr

A reference to a buffer queue object. Full Topic

type BufferQueueTriggerCallback

type BufferQueueTriggerCallback = func(triggerRefcon unsafe.Pointer, triggerToken unsafe.Pointer)

A callback for the system to invoke when a trigger condition becomes true. Full Topic

type BufferQueueTriggerCondition

type BufferQueueTriggerCondition int32

A type to specify conditions to associate with a buffer queue trigger. Full Topic

type BufferQueueTriggerHandler

type BufferQueueTriggerHandler = func(triggerToken unsafe.Pointer)

A type alias for a trigger handler. Full Topic

type BufferRef

type BufferRef corefoundation.TypeRef

type BufferValidationCallback

type BufferValidationCallback = func(queue BufferQueueRef, buf BufferRef, validationRefCon unsafe.Pointer) uint

A type alias for a callback that tests whether a buffer is in a valid state to add to a queue. Full Topic

type BufferValidationHandler

type BufferValidationHandler = func(queue BufferQueueRef, buf BufferRef) uint

A type alias for a handler that tests whether a buffer is in a valid state to add to a queue. Full Topic

type ClockRef

type ClockRef uintptr

An object that represents a source of time. Full Topic

type ClosedCaptionFormatType

type ClosedCaptionFormatType uint

A closed caption format type. Full Topic

type FormatDescriptionRef

type FormatDescriptionRef uintptr

An object that describes a media format descriptor. Full Topic

type ItemCount

type ItemCount corefoundation.Index

A datatype that represents an item count. Full Topic

type ItemIndex

type ItemIndex corefoundation.Index

A datatype that represents an item index. Full Topic

type MemoryPoolRef

type MemoryPoolRef uintptr

A reference to a memory pool object. Full Topic

type MetadataFormatDescriptionRef

type MetadataFormatDescriptionRef FormatDescriptionRef

type PixelFormatType

type PixelFormatType uint

A pixel format type. Full Topic

type SampleBufferInvalidateCallback

type SampleBufferInvalidateCallback = func(sbuf SampleBufferRef, invalidateRefCon uint64)

Client callback called by coremedia/cmsamplebufferinvalidate. Full Topic

type SampleBufferInvalidateHandler

type SampleBufferInvalidateHandler = func(sbuf SampleBufferRef)

Client callback called by coremedia/cmsamplebufferinvalidate. Full Topic

type SampleBufferMakeDataReadyCallback

type SampleBufferMakeDataReadyCallback = func(sbuf SampleBufferRef, makeDataReadyRefcon unsafe.Pointer) uint

Client callback called by coremedia/cmsamplebuffermakedataready. Full Topic

type SampleBufferMakeDataReadyHandler

type SampleBufferMakeDataReadyHandler = func(sbuf SampleBufferRef) uint

A block the system calls to make the sample buffer ready for use. Full Topic

type SampleBufferRef

type SampleBufferRef uintptr

A reference to an immutable sample buffer object. Full Topic

type SampleTimingInfo

type SampleTimingInfo struct {
	Duration              Time
	PresentationTimeStamp Time
	DecodeTimeStamp       Time
}

A collection of timing information for a sample in a sample buffer. Full Topic

type SimpleQueueRef

type SimpleQueueRef uintptr

A reference to an object that provides a simple lockless queue of elements. Full Topic

type StructVersion

type StructVersion uint
[Full Topic]

type TextDisplayFlags

type TextDisplayFlags uint32

An integer value that describes the display mode flags for text media. Full Topic

type TextFormatType

type TextFormatType uint

A text format type. Full Topic

type TextJustificationValue

type TextJustificationValue int8

An integer value that describes the justification modes for text media. Full Topic

type Time

type Time struct {
	Value     int64
	Timescale int32
	Flags     uint32
	Epoch     int64
}

A structure that represents time. Full Topic

type TimeEpoch

type TimeEpoch int64

An epoch for a time. Full Topic

type TimeFlags

type TimeFlags uint32

A structure that defines the flags for a time value. Full Topic

type TimeMapping

type TimeMapping struct {
	Source TimeRange
	Target TimeRange
}

A structure that maps a segment of a source time range to a target time range. Full Topic

type TimeRange

type TimeRange struct {
	Start    Time
	Duration Time
}

A structure that represents a time range. Full Topic

type TimeRoundingMethod

type TimeRoundingMethod uint32

An enumeration of rounding methods to use when performing time calculations. Full Topic

type TimeScale

type TimeScale int32

An integer timescale. Full Topic

type TimeValue

type TimeValue int64

An integer time value. Full Topic

type TimebaseRef

type TimebaseRef uintptr

A model of a timeline under application control. Full Topic

type VideoCodecType

type VideoCodecType uint

A video codec type. Full Topic

type VideoDimensions

type VideoDimensions struct {
	Width  int32
	Height int32
}

A structure that represents video dimensions. Full Topic

type VideoFormatDescriptionRef

type VideoFormatDescriptionRef FormatDescriptionRef

Jump to

Keyboard shortcuts

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