corevideo

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package corevideo provides Go bindings for the CoreVideo framework.

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

Core Video provides a pipeline model for digital video. It simplifies working with video by partitioning the process into discrete steps. This makes it easier for developers to access and manipulate individual frames without having to worry about translating between data types or display synchronization issues. Apps that don’t need to manipulate individual video frames don’t need to use Core Video directly.

Data Processing

Time Management

Metal

  • CVMetalTextureCache: A cache used to create and manage Metal texture objects.
  • CVMetalTexture: A texture-based image buffer that supplies source image data for use with the Metal framework.

OpenGL

  • CVOpenGLTextureCache: A cache used to create and manage OpenGL texture objects.
  • CVOpenGLTexture: A texture-based image buffer that supplies source image data to OpenGL.
  • CVOpenGLBuffer: An image buffer used to store image data in video memory.
  • CVOpenGLBufferPool: A utility object for managing a set of recyclable OpenGL buffer objects.

OpenGL ES

  • CVOpenGLESTextureCache: A cache used to create and manage OpenGL ES texture objects.
  • CVOpenGLESTexture: A texture-based image buffer that supplies source image data to OpenGL ES.

Core Video Error Constants

  • Result Codes: Describes the result codes generated by Core Video operations.
  • Data Types: Common data types used by the Core Video framework. (CVReturn)

Classes

  • CVMetalBufferCache
  • CVReadOnlyPixelBuffer: CVReadOnlyPixelBuffer provides an immutable view of the pixel data held by the pixel buffer.

Protocols

  • CVBufferRepresentable: CVBufferRepresentable protocol is a sealed protocol intended to be implemented by the types in CoreVideo framework.
  • CVImageBufferRepresentable: CVImageBufferRepresentable protocol is a sealed protocol intended to be implemented by the types in CoreVideo framework.
  • CVPixelBufferRepresentable: CVPixelBufferRepresentable protocol is a sealed protocol intended to be implemented by the types in CoreVideo framework.

Variables

  • kCVImageBufferDisplayMaskRectangleKey: Specifies the rectangular display area within the image.
  • kCVImageBufferDisplayMaskRectangleStereoLeftKey: Specifies the rectangular display area within the left-eye view of stereo images, using the same keys as .
  • kCVImageBufferDisplayMaskRectangleStereoRightKey: Specifies the rectangular display area within the right-eye view of stereo images, using the same keys as .
  • kCVImageBufferLogTransferFunction_AppleLog2
  • kCVImageBufferPostDecodeProcessingFrameMetadataKey
  • kCVImageBufferPostDecodeProcessingSequenceMetadataKey
  • kCVImageBufferSceneIlluminationKey
  • kCVMetalBufferCacheMaximumBufferAgeKey
  • kCVPixelBufferIOSurfacePurgeableKey
  • kCVPixelFormatBitsPerComponent
  • kCVPixelFormatType_30RGBLE_8A_BiPlanar
  • kCVPixelFormatType_30RGB_r210
  • kCVPixelFormatType_96VersatileBayerPacked12
  • kCVPixelFormatType_Lossless_30RGBLEPackedWideGamut
  • kCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar
  • kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange
  • kCVPixelFormatType_Lossless_64RGBAHalf

Functions

  • CVMetalBufferCacheCreate(_:_:_:_:)
  • CVMetalBufferCacheCreateBufferFromImage(_:_:_:_:)
  • CVMetalBufferCacheFlush(_:_:)
  • CVMetalBufferCacheGetTypeID()
  • CVMetalBufferGetBuffer(_:)
  • CVMetalBufferGetTypeID()
  • CVPixelBufferIsCompatibleWithAttributes(_:_:)
  • CVPixelFormatTypeCopyFourCharCodeString(_:)

Type Aliases

  • CVMetalBuffer

Enumerations

  • CVImageBufferOriginPosition

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	// KCVBufferMovieTimeKey is the movie time associated with the buffer. Generally only available for frames emitted by QuickTime (type [CFDictionary] containing the [kCVBufferTimeValueKey] and [kCVBufferTimeScaleKey] keys).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVBufferMovieTimeKey
	KCVBufferMovieTimeKey string
	// KCVBufferNonPropagatedAttachmentsKey is attachments that should not be copied when using the [CVBufferPropagateAttachments(_:_:)] function (type [CFDictionary], containing a list of attachments as key-value pairs).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVBufferNonPropagatedAttachmentsKey
	KCVBufferNonPropagatedAttachmentsKey string
	// KCVBufferPropagatedAttachmentsKey is attachments that should be copied when using the [CVBufferPropagateAttachments(_:_:)] function (type [CFDictionary], containing a list of attachments as key-value pairs).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVBufferPropagatedAttachmentsKey
	KCVBufferPropagatedAttachmentsKey string
	// KCVBufferTimeScaleKey is the time scale associated with the movie.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVBufferTimeScaleKey
	KCVBufferTimeScaleKey string
	// KCVBufferTimeValueKey is the time value associated with the movie.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVBufferTimeValueKey
	KCVBufferTimeValueKey string
	// KCVImageBufferAlphaChannelIsOpaque is a key to indicate whether the alpha channel is fully opaque.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelIsOpaque
	KCVImageBufferAlphaChannelIsOpaque string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelModeKey
	KCVImageBufferAlphaChannelModeKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelMode_PremultipliedAlpha
	KCVImageBufferAlphaChannelMode_PremultipliedAlpha string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAlphaChannelMode_StraightAlpha
	KCVImageBufferAlphaChannelMode_StraightAlpha string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferAmbientViewingEnvironmentKey
	KCVImageBufferAmbientViewingEnvironmentKey string
	// KCVImageBufferCGColorSpaceKey is a key to the color space of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCGColorSpaceKey
	KCVImageBufferCGColorSpaceKey string
	// KCVImageBufferChromaLocationBottomFieldKey is a key to the location of chroma bottom field information in the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocationBottomFieldKey
	KCVImageBufferChromaLocationBottomFieldKey string
	// KCVImageBufferChromaLocationTopFieldKey is a key to the location of chroma top field information in the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocationTopFieldKey
	KCVImageBufferChromaLocationTopFieldKey string
	// KCVImageBufferChromaLocation_Bottom is a key that indicates the chroma sample is horizontally centered, but is co-sited with the bottom row of luma samples.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Bottom
	KCVImageBufferChromaLocation_Bottom string
	// KCVImageBufferChromaLocation_BottomLeft is a key that indicates the chroma sample is co-sited with the bottom-left luma sample.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_BottomLeft
	KCVImageBufferChromaLocation_BottomLeft string
	// KCVImageBufferChromaLocation_Center is a key that indicates the chroma sample is fully centered.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Center
	KCVImageBufferChromaLocation_Center string
	// KCVImageBufferChromaLocation_DV420 is a key that indicates the Cr and Cb samples are alternatingly co-sited with the left luma samples of the same field.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_DV420
	KCVImageBufferChromaLocation_DV420 string
	// KCVImageBufferChromaLocation_Left is a key that indicates the chroma sample is horizontally co-sited with the left column of luma samples, but centered vertically.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Left
	KCVImageBufferChromaLocation_Left string
	// KCVImageBufferChromaLocation_Top is a key that indicates the chroma sample is horizontally centered, but is co-sited with the top row of luma samples.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_Top
	KCVImageBufferChromaLocation_Top string
	// KCVImageBufferChromaLocation_TopLeft is a key that indicates the chroma sample is co-sited with the top-left luma sample.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaLocation_TopLeft
	KCVImageBufferChromaLocation_TopLeft string
	// KCVImageBufferChromaSubsamplingKey is a key to the original format of subsampled data in the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsamplingKey
	KCVImageBufferChromaSubsamplingKey string
	// KCVImageBufferChromaSubsampling_411 is a key that indicates the original chroma-subsampled data used 4:1:1 formatting.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsampling_411
	KCVImageBufferChromaSubsampling_411 string
	// KCVImageBufferChromaSubsampling_420 is a key that indicates the original chroma-subsampled data used 4:2:0 formatting.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsampling_420
	KCVImageBufferChromaSubsampling_420 string
	// KCVImageBufferChromaSubsampling_422 is a key that indicates the original chroma-subsampled data used 4:2:2 formatting.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferChromaSubsampling_422
	KCVImageBufferChromaSubsampling_422 string
	// KCVImageBufferCleanApertureHeightKey is a key to the clean aperture height of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureHeightKey
	KCVImageBufferCleanApertureHeightKey string
	// KCVImageBufferCleanApertureHorizontalOffsetKey is a key to the clean aperture horizontal offset value from the center of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureHorizontalOffsetKey
	KCVImageBufferCleanApertureHorizontalOffsetKey string
	// KCVImageBufferCleanApertureKey is a key to the dictionary describing the clean aperture for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureKey
	KCVImageBufferCleanApertureKey string
	// KCVImageBufferCleanApertureVerticalOffsetKey is a key to the clean aperture vertical offset value from the center of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureVerticalOffsetKey
	KCVImageBufferCleanApertureVerticalOffsetKey string
	// KCVImageBufferCleanApertureWidthKey is a key to the clean aperture width of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferCleanApertureWidthKey
	KCVImageBufferCleanApertureWidthKey string
	// KCVImageBufferColorPrimariesKey is a key to the color primaries gamut for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimariesKey
	KCVImageBufferColorPrimariesKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_DCI_P3
	KCVImageBufferColorPrimaries_DCI_P3 string
	// KCVImageBufferColorPrimaries_EBU_3213 is a key to the color primaries gamut for PAL video.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_EBU_3213
	KCVImageBufferColorPrimaries_EBU_3213 string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_ITU_R_2020
	KCVImageBufferColorPrimaries_ITU_R_2020 string
	// KCVImageBufferColorPrimaries_ITU_R_709_2 is a key to the color primaries gamut for HD video.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_ITU_R_709_2
	KCVImageBufferColorPrimaries_ITU_R_709_2 string
	// KCVImageBufferColorPrimaries_P22 is a key to the color primaries gamut for sRGB video.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_P22
	KCVImageBufferColorPrimaries_P22 string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_P3_D65
	KCVImageBufferColorPrimaries_P3_D65 string
	// KCVImageBufferColorPrimaries_SMPTE_C is a key to the color primaries gamut for standard-definition video.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferColorPrimaries_SMPTE_C
	KCVImageBufferColorPrimaries_SMPTE_C string
	// KCVImageBufferContentLightLevelInfoKey is a key to the content light level information.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferContentLightLevelInfoKey
	KCVImageBufferContentLightLevelInfoKey string
	// KCVImageBufferDisplayDimensionsKey is a key to the dictionary describing the display dimensions for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayDimensionsKey
	KCVImageBufferDisplayDimensionsKey string
	// KCVImageBufferDisplayHeightKey is a key to the display height of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayHeightKey
	KCVImageBufferDisplayHeightKey string
	// KCVImageBufferDisplayMaskRectangleKey is specifies the rectangular display area within the image.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangleKey
	KCVImageBufferDisplayMaskRectangleKey string
	// KCVImageBufferDisplayMaskRectangleStereoLeftKey is specifies the rectangular display area within the left-eye view of stereo images, using the same keys as `kCVImageBufferDisplayMaskRectangleKey`.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangleStereoLeftKey
	KCVImageBufferDisplayMaskRectangleStereoLeftKey string
	// KCVImageBufferDisplayMaskRectangleStereoRightKey is specifies the rectangular display area within the right-eye view of stereo images, using the same keys as `kCVImageBufferDisplayMaskRectangleKey`.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangleStereoRightKey
	KCVImageBufferDisplayMaskRectangleStereoRightKey string
	// KCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey is specifies inset points on the left vertical edge of the rectangle.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey
	KCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey string
	// KCVImageBufferDisplayMaskRectangle_RectangleHeightKey is specifies the height of the rectangle starting at the rectangle’s top offset toward the rectangle’s bottom edge.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleHeightKey
	KCVImageBufferDisplayMaskRectangle_RectangleHeightKey string
	// KCVImageBufferDisplayMaskRectangle_RectangleLeftKey is specifies the horizontal pixel offset of the rectangle from the left of the bounding raster.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleLeftKey
	KCVImageBufferDisplayMaskRectangle_RectangleLeftKey string
	// KCVImageBufferDisplayMaskRectangle_RectangleTopKey is specifies the vertical pixel offset of the rectangle from the top of the bounding raster.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleTopKey
	KCVImageBufferDisplayMaskRectangle_RectangleTopKey string
	// KCVImageBufferDisplayMaskRectangle_RectangleWidthKey is specifies the width of the rectangle starting at the rectangle’s left offset toward the rectangle’s right edge.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RectangleWidthKey
	KCVImageBufferDisplayMaskRectangle_RectangleWidthKey string
	// KCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey is specifies the height in pixels of the 2D coordinate system to define the rectangle.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey
	KCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey string
	// KCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey is specifies the width in pixels of the 2D coordinate system to define the rectangle.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey
	KCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey string
	// KCVImageBufferDisplayMaskRectangle_RightEdgePointsKey is specifies inset points on the right vertical edge of the rectangle.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey
	KCVImageBufferDisplayMaskRectangle_RightEdgePointsKey string
	// KCVImageBufferDisplayWidthKey is a key to the display width of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferDisplayWidthKey
	KCVImageBufferDisplayWidthKey string
	// KCVImageBufferFieldCountKey is a key to the field count for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldCountKey
	KCVImageBufferFieldCountKey string
	// KCVImageBufferFieldDetailKey is a key to the field detail for an image buffer that indicates the order of interlaced video data in the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailKey
	KCVImageBufferFieldDetailKey string
	// KCVImageBufferFieldDetailSpatialFirstLineEarly is a key to the spatial first line early detail field of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailSpatialFirstLineEarly
	KCVImageBufferFieldDetailSpatialFirstLineEarly string
	// KCVImageBufferFieldDetailSpatialFirstLineLate is a key to the spatial first line late detail field of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailSpatialFirstLineLate
	KCVImageBufferFieldDetailSpatialFirstLineLate string
	// KCVImageBufferFieldDetailTemporalBottomFirst is a key to the temporal bottom first detail field of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailTemporalBottomFirst
	KCVImageBufferFieldDetailTemporalBottomFirst string
	// KCVImageBufferFieldDetailTemporalTopFirst is a key to the temporal top first detail field of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferFieldDetailTemporalTopFirst
	KCVImageBufferFieldDetailTemporalTopFirst string
	// KCVImageBufferGammaLevelKey is a key to the gamma level for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferGammaLevelKey
	KCVImageBufferGammaLevelKey string
	// KCVImageBufferICCProfileKey is a key to the ICC color profile for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferICCProfileKey
	KCVImageBufferICCProfileKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferLogTransferFunctionKey
	KCVImageBufferLogTransferFunctionKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferLogTransferFunction_AppleLog
	KCVImageBufferLogTransferFunction_AppleLog string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferLogTransferFunction_AppleLog2
	KCVImageBufferLogTransferFunction_AppleLog2 string
	// KCVImageBufferMasteringDisplayColorVolumeKey is a key to the mastering display color volume.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferMasteringDisplayColorVolumeKey
	KCVImageBufferMasteringDisplayColorVolumeKey string
	// KCVImageBufferPixelAspectRatioHorizontalSpacingKey is a key to the horizontal component of the image buffer aspect ratio.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPixelAspectRatioHorizontalSpacingKey
	KCVImageBufferPixelAspectRatioHorizontalSpacingKey string
	// KCVImageBufferPixelAspectRatioKey is a key to the dictionary describing the pixel aspect ratio for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPixelAspectRatioKey
	KCVImageBufferPixelAspectRatioKey string
	// KCVImageBufferPixelAspectRatioVerticalSpacingKey is a key to the vertical component of the image buffer aspect ratio.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPixelAspectRatioVerticalSpacingKey
	KCVImageBufferPixelAspectRatioVerticalSpacingKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPostDecodeProcessingFrameMetadataKey
	KCVImageBufferPostDecodeProcessingFrameMetadataKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPostDecodeProcessingSequenceMetadataKey
	KCVImageBufferPostDecodeProcessingSequenceMetadataKey string
	// KCVImageBufferPreferredCleanApertureKey is a key to the dictionary describing the preferred clean aperture for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferPreferredCleanApertureKey
	KCVImageBufferPreferredCleanApertureKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferRegionOfInterestKey
	KCVImageBufferRegionOfInterestKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferSceneIlluminationKey
	KCVImageBufferSceneIlluminationKey string
	// KCVImageBufferTransferFunctionKey is a key to the transfer function for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunctionKey
	KCVImageBufferTransferFunctionKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_2020
	KCVImageBufferTransferFunction_ITU_R_2020 string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_2100_HLG
	KCVImageBufferTransferFunction_ITU_R_2100_HLG string
	// KCVImageBufferTransferFunction_ITU_R_709_2 is a key to the transfer function for high-definition and standard-definition video.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_ITU_R_709_2
	KCVImageBufferTransferFunction_ITU_R_709_2 string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_Linear
	KCVImageBufferTransferFunction_Linear string
	// KCVImageBufferTransferFunction_SMPTE_240M_1995 is a key to the transfer function for HDTV interim video.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_SMPTE_240M_1995
	KCVImageBufferTransferFunction_SMPTE_240M_1995 string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ
	KCVImageBufferTransferFunction_SMPTE_ST_2084_PQ string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_SMPTE_ST_428_1
	KCVImageBufferTransferFunction_SMPTE_ST_428_1 string
	// KCVImageBufferTransferFunction_UseGamma is a key to the transfer function that’s defined by the gamma level value of the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_UseGamma
	KCVImageBufferTransferFunction_UseGamma string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferTransferFunction_sRGB
	KCVImageBufferTransferFunction_sRGB string
	// KCVImageBufferYCbCrMatrixKey is a key to the YCbCr to RGB color conversion matrix for the image buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrixKey
	KCVImageBufferYCbCrMatrixKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_ITU_R_2020
	KCVImageBufferYCbCrMatrix_ITU_R_2020 string
	// KCVImageBufferYCbCrMatrix_ITU_R_601_4 is a key to the conversion matrix for standard digital television images, that follows the ITU R 601 standard.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_ITU_R_601_4
	KCVImageBufferYCbCrMatrix_ITU_R_601_4 string
	// KCVImageBufferYCbCrMatrix_ITU_R_709_2 is a key to the conversion matrix for HDTV digital television images, that follows the ITU R 709 standard.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_ITU_R_709_2
	KCVImageBufferYCbCrMatrix_ITU_R_709_2 string
	// KCVImageBufferYCbCrMatrix_SMPTE_240M_1995 is a key to the conversion matrix for 1920 x 1135 HDTV images, that follows the SMPTE 240M 1995 standard.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVImageBufferYCbCrMatrix_SMPTE_240M_1995
	KCVImageBufferYCbCrMatrix_SMPTE_240M_1995 string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVMetalBufferCacheMaximumBufferAgeKey
	KCVMetalBufferCacheMaximumBufferAgeKey string
	// KCVMetalTextureCacheMaximumTextureAgeKey is the length of time, in seconds, before the cache is automatically evicted.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVMetalTextureCacheMaximumTextureAgeKey
	KCVMetalTextureCacheMaximumTextureAgeKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVMetalTextureStorageMode
	KCVMetalTextureStorageMode string
	// KCVMetalTextureUsage is the set of options that define how you can use a texture on the GPU.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVMetalTextureUsage
	KCVMetalTextureUsage string
	// KCVPixelBufferBytesPerRowAlignmentKey is a key to a number that specifies the alignment of number of bytes per row in the pixel buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferBytesPerRowAlignmentKey
	KCVPixelBufferBytesPerRowAlignmentKey string
	// KCVPixelBufferCGBitmapContextCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with Core Graphics bitmap contexts.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferCGBitmapContextCompatibilityKey
	KCVPixelBufferCGBitmapContextCompatibilityKey string
	// KCVPixelBufferCGImageCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with Core Graphics bitmap image types.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferCGImageCompatibilityKey
	KCVPixelBufferCGImageCompatibilityKey string
	// KCVPixelBufferExtendedPixelsBottomKey is a key to the number of pixels padding the bottom of the image.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsBottomKey
	KCVPixelBufferExtendedPixelsBottomKey string
	// KCVPixelBufferExtendedPixelsLeftKey is a key to the number of pixels padding the left of the image.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsLeftKey
	KCVPixelBufferExtendedPixelsLeftKey string
	// KCVPixelBufferExtendedPixelsRightKey is a key to the number of pixels padding the right of the image.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsRightKey
	KCVPixelBufferExtendedPixelsRightKey string
	// KCVPixelBufferExtendedPixelsTopKey is a key to the number of pixels padding the top of the image.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferExtendedPixelsTopKey
	KCVPixelBufferExtendedPixelsTopKey string
	// KCVPixelBufferHeightKey is a key to the height of the pixel buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferHeightKey
	KCVPixelBufferHeightKey string
	// KCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey is a key to a Boolean value that indicates whether Core Animation can display the pixel buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey
	KCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey string
	// KCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey is a key to a Boolean value that indicates whether OpenGL can create a valid texture for use as a color buffer attachment.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey
	KCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey string
	// KCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey is a key to a Boolean value that indicates whether OpenGL can create a valid texture object from the IOSurface-backed pixel buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey
	KCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey string
	// KCVPixelBufferIOSurfacePropertiesKey is a key to the dictionary containing optional properties for the IOSurface framework.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfacePropertiesKey
	KCVPixelBufferIOSurfacePropertiesKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferIOSurfacePurgeableKey
	KCVPixelBufferIOSurfacePurgeableKey string
	// KCVPixelBufferMemoryAllocatorKey is a key to the allocator that the system uses to create the pixel buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferMemoryAllocatorKey
	KCVPixelBufferMemoryAllocatorKey string
	// KCVPixelBufferMetalCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with the Metal framework.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferMetalCompatibilityKey
	KCVPixelBufferMetalCompatibilityKey string
	// KCVPixelBufferOpenGLCompatibilityKey is a key to a Boolean value that indicates whether the pixel buffer is compatible with OpenGL contexts.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferOpenGLCompatibilityKey
	KCVPixelBufferOpenGLCompatibilityKey string
	// KCVPixelBufferOpenGLTextureCacheCompatibilityKey is a key to a Boolean value that indicates whether OpenGL performs format conversions of the texture-cache data in a shader.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferOpenGLTextureCacheCompatibilityKey
	KCVPixelBufferOpenGLTextureCacheCompatibilityKey string
	// KCVPixelBufferPixelFormatTypeKey is a key to one or more pixel buffer format types.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPixelFormatTypeKey
	KCVPixelBufferPixelFormatTypeKey string
	// KCVPixelBufferPlaneAlignmentKey is a key to a number that specifies the alignment of the planes in the pixel buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPlaneAlignmentKey
	KCVPixelBufferPlaneAlignmentKey string
	// KCVPixelBufferPoolAllocationThresholdKey is the key you use to set the auxiliary attributes dictionary.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolAllocationThresholdKey
	KCVPixelBufferPoolAllocationThresholdKey string
	// KCVPixelBufferPoolFreeBufferNotification is a notification that the system posts if a buffer becomes available after it fails to create a pixel buffer with auxiliary attributes because it exceeded the threshold you specified.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolFreeBufferNotification
	KCVPixelBufferPoolFreeBufferNotification string
	// KCVPixelBufferPoolMaximumBufferAgeKey is the key you use to set the maximum allowable age for a buffer in the pixel buffer pool.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolMaximumBufferAgeKey
	KCVPixelBufferPoolMaximumBufferAgeKey string
	// KCVPixelBufferPoolMinimumBufferCountKey is the minimum number of buffers allowed in the pixel buffer pool.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferPoolMinimumBufferCountKey
	KCVPixelBufferPoolMinimumBufferCountKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_BlackLevel
	KCVPixelBufferProResRAWKey_BlackLevel string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_ColorMatrix
	KCVPixelBufferProResRAWKey_ColorMatrix string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_GainFactor
	KCVPixelBufferProResRAWKey_GainFactor string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_MetadataExtension
	KCVPixelBufferProResRAWKey_MetadataExtension string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_RecommendedCrop
	KCVPixelBufferProResRAWKey_RecommendedCrop string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_SenselSitingOffsets
	KCVPixelBufferProResRAWKey_SenselSitingOffsets string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor
	KCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteBalanceCCT
	KCVPixelBufferProResRAWKey_WhiteBalanceCCT string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor
	KCVPixelBufferProResRAWKey_WhiteBalanceRedFactor string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferProResRAWKey_WhiteLevel
	KCVPixelBufferProResRAWKey_WhiteLevel string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferVersatileBayerKey_BayerPattern
	KCVPixelBufferVersatileBayerKey_BayerPattern string
	// KCVPixelBufferWidthKey is a key to the width of the pixel buffer.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelBufferWidthKey
	KCVPixelBufferWidthKey string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBitsPerBlock
	KCVPixelFormatBitsPerBlock string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBitsPerComponent
	KCVPixelFormatBitsPerComponent string
	// KCVPixelFormatBlackBlock is the bit pattern for a block of black pixels (type [CFData]. If this key is absent, black is assumed to be all zeros. If present, this should be `bitsPerPixel` bits long; if `bitsPerPixel` is less than a byte, repeat the bit pattern for the full byte.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlackBlock
	KCVPixelFormatBlackBlock string
	// KCVPixelFormatBlockHeight is the height, in pixels, of the smallest byte-addressable group of pixels (type [CFNumber]). Assumed to be 1 if this key is not present.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockHeight
	KCVPixelFormatBlockHeight string
	// KCVPixelFormatBlockHorizontalAlignment is the horizontal alignment requirements of this format (type [CFNumber]). For example,the alignment for v210 would be 8 here for the horizontal case to match the standard v210 row alignment value of 48. Assumed to be 1 if this key is not present.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockHorizontalAlignment
	KCVPixelFormatBlockHorizontalAlignment string
	// KCVPixelFormatBlockVerticalAlignment is the vertical alignment requirements of this format (type [CFNumber]). Assumed to be 1 if this key is not present.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockVerticalAlignment
	KCVPixelFormatBlockVerticalAlignment string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatBlockWidth
	KCVPixelFormatBlockWidth string
	// KCVPixelFormatCGBitmapContextCompatibility is if true, this format is compatible with Core Graphics bitmap contexts(type [CFBoolean]).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCGBitmapContextCompatibility
	KCVPixelFormatCGBitmapContextCompatibility string
	// KCVPixelFormatCGBitmapInfo is the Core Graphics bitmap information for this pixel format (if applicable).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCGBitmapInfo
	KCVPixelFormatCGBitmapInfo string
	// KCVPixelFormatCGImageCompatibility is if true, this format is compatible with the [CGImage] type (type [CFBoolean]).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCGImageCompatibility
	KCVPixelFormatCGImageCompatibility string
	// KCVPixelFormatCodecType is the codec type (type [CFString]). For example, `'2vuy'` or `k422YpCbCr8CodecType`.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatCodecType
	KCVPixelFormatCodecType string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange
	KCVPixelFormatComponentRange string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange_FullRange
	KCVPixelFormatComponentRange_FullRange string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange_VideoRange
	KCVPixelFormatComponentRange_VideoRange string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatComponentRange_WideRange
	KCVPixelFormatComponentRange_WideRange string
	// KCVPixelFormatConstant is the pixel format constant for QuickTime.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatConstant
	KCVPixelFormatConstant string
	// KCVPixelFormatContainsAlpha is a Boolean value where [kCFBooleanTrue] indicates that the format contains alpha and some images may be considered transparent; [kCFBooleanFalse] indicates that there is no alpha and images are always opaque.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsAlpha
	KCVPixelFormatContainsAlpha string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsGrayscale
	KCVPixelFormatContainsGrayscale string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsRGB
	KCVPixelFormatContainsRGB string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsSenselArray
	KCVPixelFormatContainsSenselArray string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatContainsYCbCr
	KCVPixelFormatContainsYCbCr string
	// KCVPixelFormatFillExtendedPixelsCallback is a custom extended pixel fill algorithm (type [CFData]). See [CVFillExtendedPixelsCallBack] and [CVFillExtendedPixelsCallBackData] for more information.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatFillExtendedPixelsCallback
	KCVPixelFormatFillExtendedPixelsCallback string
	// KCVPixelFormatFourCC is the Microsoft FourCC equivalent code for this pixel format (type [CFString]).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatFourCC
	KCVPixelFormatFourCC string
	// KCVPixelFormatHorizontalSubsampling is horizontal subsampling information for this plane (type [CFNumber]). Assumed to be 1 if this key is not present.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatHorizontalSubsampling
	KCVPixelFormatHorizontalSubsampling string
	// KCVPixelFormatName is the name of the pixel format (type [CFString]). This should be the same as the codec name you would use in QuickTime.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatName
	KCVPixelFormatName string
	// KCVPixelFormatOpenGLCompatibility is if true, this format is compatible with OpenGL (type [CFBoolean]).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLCompatibility
	KCVPixelFormatOpenGLCompatibility string
	// KCVPixelFormatOpenGLFormat is the OpenGL format used to describe this image plane (if applicable). See the [OpenGL specification] for possible values.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLFormat
	KCVPixelFormatOpenGLFormat string
	// KCVPixelFormatOpenGLInternalFormat is the OpenGL internal format for this pixel format (if applicable). See the [OpenGL specification] for possible values.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLInternalFormat
	KCVPixelFormatOpenGLInternalFormat string
	// KCVPixelFormatOpenGLType is the OpenGL type to describe this image plane (if applicable). See the [OpenGL specification] for possible values.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatOpenGLType
	KCVPixelFormatOpenGLType string
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatPlanes
	KCVPixelFormatPlanes string
	// KCVPixelFormatQDCompatibility is if true, this format is compatible with QuickDraw (type [CFBoolean]).
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatQDCompatibility
	KCVPixelFormatQDCompatibility string
	// KCVPixelFormatVerticalSubsampling is vertical subsampling information for this plane (type [CFNumber]). Assumed to be 1 if this key is not present.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVPixelFormatVerticalSubsampling
	KCVPixelFormatVerticalSubsampling string
)

Functions

func CVBufferCopyAttachment

func CVBufferCopyAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, attachmentMode *CVAttachmentMode) corefoundation.CFTypeRef

CVBufferCopyAttachment returns a copy of an attachment from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferCopyAttachment(_:_:_:)

func CVBufferCopyAttachments

func CVBufferCopyAttachments(buffer CVBufferRef, attachmentMode CVAttachmentMode) corefoundation.CFDictionaryRef

CVBufferCopyAttachments returns a copy of all attachments from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferCopyAttachments(_:_:)

func CVBufferHasAttachment

func CVBufferHasAttachment(buffer CVBufferRef, key corefoundation.CFStringRef) bool

CVBufferHasAttachment returns a Boolean value that indicates whether a Core Video buffer contains a specified attachment.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferHasAttachment(_:_:)

func CVBufferPropagateAttachments

func CVBufferPropagateAttachments(sourceBuffer CVBufferRef, destinationBuffer CVBufferRef)

CVBufferPropagateAttachments copies all attachments that Core Video can propagate from one buffer to another.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferPropagateAttachments(_:_:)

func CVBufferRelease

func CVBufferRelease(buffer CVBufferRef)

CVBufferRelease releases a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRelease

func CVBufferRemoveAllAttachments

func CVBufferRemoveAllAttachments(buffer CVBufferRef)

CVBufferRemoveAllAttachments removes all attachments from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRemoveAllAttachments(_:)

func CVBufferRemoveAttachment

func CVBufferRemoveAttachment(buffer CVBufferRef, key corefoundation.CFStringRef)

CVBufferRemoveAttachment removes the attachment you specify from a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRemoveAttachment(_:_:)

func CVBufferSetAttachment

func CVBufferSetAttachment(buffer CVBufferRef, key corefoundation.CFStringRef, value corefoundation.CFTypeRef, attachmentMode CVAttachmentMode)

CVBufferSetAttachment sets or adds an attachment to a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferSetAttachment(_:_:_:_:)

func CVBufferSetAttachments

func CVBufferSetAttachments(buffer CVBufferRef, theAttachments corefoundation.CFDictionaryRef, attachmentMode CVAttachmentMode)

CVBufferSetAttachments sets a dictionary of attachments on a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferSetAttachments(_:_:_:)

func CVColorPrimariesGetIntegerCodePointForString

func CVColorPrimariesGetIntegerCodePointForString(colorPrimariesString corefoundation.CFStringRef) int

CVColorPrimariesGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video color primaries constant string that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVColorPrimariesGetIntegerCodePointForString(_:)

func CVColorPrimariesGetStringForIntegerCodePoint

func CVColorPrimariesGetStringForIntegerCodePoint(colorPrimariesCodePoint int) corefoundation.CFStringRef

CVColorPrimariesGetStringForIntegerCodePoint returns the Core Video color primaries string corresponding to the standard integer code point that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVColorPrimariesGetStringForIntegerCodePoint(_:)

func CVDisplayLinkGetActualOutputVideoRefreshPeriod deprecated

func CVDisplayLinkGetActualOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) float64

CVDisplayLinkGetActualOutputVideoRefreshPeriod retrieves the actual output refresh period of a display as measured by the system time.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetActualOutputVideoRefreshPeriod(_:)

func CVDisplayLinkGetCurrentCGDisplay deprecated

func CVDisplayLinkGetCurrentCGDisplay(displayLink CVDisplayLinkRef) uint32

CVDisplayLinkGetCurrentCGDisplay gets the current display associated with a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetCurrentCGDisplay(_:)

func CVDisplayLinkGetTypeID deprecated

func CVDisplayLinkGetTypeID() uint

CVDisplayLinkGetTypeID obtains the Core Foundation ID for the display link data type.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetTypeID()

func CVDisplayLinkIsRunning deprecated

func CVDisplayLinkIsRunning(displayLink CVDisplayLinkRef) bool

CVDisplayLinkIsRunning indicates whether a given display link is running.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkIsRunning(_:)

func CVDisplayLinkRelease deprecated

func CVDisplayLinkRelease(displayLink CVDisplayLinkRef)

CVDisplayLinkRelease releases a display link.

Deprecated: Deprecated since macOS 15.0.

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkRelease

func CVGetCurrentHostTime

func CVGetCurrentHostTime() uint64

CVGetCurrentHostTime returns the current system time.

See: https://developer.apple.com/documentation/CoreVideo/CVGetCurrentHostTime()

func CVGetHostClockFrequency

func CVGetHostClockFrequency() float64

CVGetHostClockFrequency returns the frequency of updates to the system time.

See: https://developer.apple.com/documentation/CoreVideo/CVGetHostClockFrequency()

func CVGetHostClockMinimumTimeDelta

func CVGetHostClockMinimumTimeDelta() uint32

CVGetHostClockMinimumTimeDelta returns the smallest possible increment in the system time.

See: https://developer.apple.com/documentation/CoreVideo/CVGetHostClockMinimumTimeDelta()

func CVImageBufferCreateColorSpaceFromAttachments

func CVImageBufferCreateColorSpaceFromAttachments(attachments corefoundation.CFDictionaryRef) coregraphics.CGColorSpaceRef

CVImageBufferCreateColorSpaceFromAttachments attempts to create a Core Graphics color space from the image buffer’s attachments that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferCreateColorSpaceFromAttachments(_:)

func CVImageBufferGetCleanRect

func CVImageBufferGetCleanRect(imageBuffer CVImageBufferRef) corefoundation.CGRect

CVImageBufferGetCleanRect returns the source rectangle of a Core Video image buffer that represents the clean aperture of the buffer in encoded pixels.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetCleanRect(_:)

func CVImageBufferGetColorSpace

func CVImageBufferGetColorSpace(imageBuffer CVImageBufferRef) coregraphics.CGColorSpaceRef

CVImageBufferGetColorSpace returns the color space of a Core Video image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetColorSpace(_:)

func CVImageBufferGetDisplaySize

func CVImageBufferGetDisplaySize(imageBuffer CVImageBufferRef) corefoundation.CGSize

CVImageBufferGetDisplaySize returns the nominal output display size, in square pixels, of a Core Video image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetDisplaySize(_:)

func CVImageBufferGetEncodedSize

func CVImageBufferGetEncodedSize(imageBuffer CVImageBufferRef) corefoundation.CGSize

CVImageBufferGetEncodedSize returns the full encoded dimensions of a Core Video image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferGetEncodedSize(_:)

func CVImageBufferIsFlipped

func CVImageBufferIsFlipped(imageBuffer CVImageBufferRef) bool

CVImageBufferIsFlipped returns a Boolean value indicating whether the image is vertically flipped.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBufferIsFlipped(_:)

func CVIsCompressedPixelFormatAvailable

func CVIsCompressedPixelFormatAvailable(pixelFormatType uint32) bool

CVIsCompressedPixelFormatAvailable.

See: https://developer.apple.com/documentation/CoreVideo/CVIsCompressedPixelFormatAvailable(_:)

func CVMetalBufferCacheGetTypeID

func CVMetalBufferCacheGetTypeID() uint

CVMetalBufferCacheGetTypeID.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCacheGetTypeID()

func CVMetalTextureCacheFlush

func CVMetalTextureCacheFlush(textureCache CVMetalTextureCacheRef, options CVOptionFlags)

CVMetalTextureCacheFlush manually flushes the contents of the provided texture cache.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheFlush(_:_:)

func CVMetalTextureCacheGetTypeID

func CVMetalTextureCacheGetTypeID() uint

CVMetalTextureCacheGetTypeID returns the Core Foundation type identifier for a Core Video Metal texture cache.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheGetTypeID()

func CVMetalTextureGetCleanTexCoords

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

CVMetalTextureGetCleanTexCoords returns convenient normalized texture coordinates for the part of the image that should be displayed.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)

func CVMetalTextureGetTexture

func CVMetalTextureGetTexture(image CVMetalTextureRef) metal.MTLTextureObject

CVMetalTextureGetTexture returns the Metal texture object for the image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureGetTexture(_:)

func CVMetalTextureGetTypeID

func CVMetalTextureGetTypeID() uint

CVMetalTextureGetTypeID returns the Core Foundation type identifier for a CoreVideo Metal texture-based image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureGetTypeID()

func CVMetalTextureIsFlipped

func CVMetalTextureIsFlipped(image CVMetalTextureRef) bool

CVMetalTextureIsFlipped returns a Boolean value indicating whether the texture image is vertically flipped.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureIsFlipped(_:)

func CVOpenGLBufferPoolRelease deprecated

func CVOpenGLBufferPoolRelease(openGLBufferPool CVOpenGLBufferPoolRef)

CVOpenGLBufferPoolRelease releases an OpenGL buffer pool.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolRelease

func CVOpenGLBufferRelease deprecated

func CVOpenGLBufferRelease(buffer CVOpenGLBufferRef)

CVOpenGLBufferRelease releases a Core Video OpenGL buffer.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferRelease

func CVOpenGLTextureCacheRelease deprecated

func CVOpenGLTextureCacheRelease(textureCache CVOpenGLTextureCacheRef)

CVOpenGLTextureCacheRelease releases a texture cache object.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheRelease

func CVOpenGLTextureRelease deprecated

func CVOpenGLTextureRelease(texture CVOpenGLTextureRef)

CVOpenGLTextureRelease releases a Core Video OpenGL texture.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureRelease

func CVPixelBufferGetBaseAddress

func CVPixelBufferGetBaseAddress(pixelBuffer CVPixelBufferRef) unsafe.Pointer

CVPixelBufferGetBaseAddress returns the base address of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBaseAddress(_:)

func CVPixelBufferGetBaseAddressOfPlane

func CVPixelBufferGetBaseAddressOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) unsafe.Pointer

CVPixelBufferGetBaseAddressOfPlane returns the base address of the plane at the specified plane index.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBaseAddressOfPlane(_:_:)

func CVPixelBufferGetBytesPerRow

func CVPixelBufferGetBytesPerRow(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetBytesPerRow returns the number of bytes per row of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBytesPerRow(_:)

func CVPixelBufferGetBytesPerRowOfPlane

func CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr

CVPixelBufferGetBytesPerRowOfPlane returns the number of bytes per row for a plane at the specified index in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetBytesPerRowOfPlane(_:_:)

func CVPixelBufferGetDataSize

func CVPixelBufferGetDataSize(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetDataSize returns the data size for contiguous planes of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetDataSize(_:)

func CVPixelBufferGetExtendedPixels

func CVPixelBufferGetExtendedPixels(pixelBuffer CVPixelBufferRef, extraColumnsOnLeft *uintptr, extraColumnsOnRight *uintptr, extraRowsOnTop *uintptr, extraRowsOnBottom *uintptr)

CVPixelBufferGetExtendedPixels returns the amount of extended pixel padding in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetExtendedPixels(_:_:_:_:_:)

func CVPixelBufferGetHeight

func CVPixelBufferGetHeight(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetHeight returns the height of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetHeight(_:)

func CVPixelBufferGetHeightOfPlane

func CVPixelBufferGetHeightOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr

CVPixelBufferGetHeightOfPlane returns the height of the plane at planeIndex in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetHeightOfPlane(_:_:)

func CVPixelBufferGetIOSurface

func CVPixelBufferGetIOSurface(pixelBuffer CVPixelBufferRef) unsafe.Pointer

CVPixelBufferGetIOSurface returns the IOSurface backing the pixel buffer, or [NULL] if it is not backed by an IOSurface.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetIOSurface(_:)

func CVPixelBufferGetPixelFormatType

func CVPixelBufferGetPixelFormatType(pixelBuffer CVPixelBufferRef) uint32

CVPixelBufferGetPixelFormatType returns the pixel format type of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetPixelFormatType(_:)

func CVPixelBufferGetPlaneCount

func CVPixelBufferGetPlaneCount(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetPlaneCount returns number of planes of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetPlaneCount(_:)

func CVPixelBufferGetTypeID

func CVPixelBufferGetTypeID() uint

CVPixelBufferGetTypeID returns the Core Foundation type identifier of the pixel buffer type.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetTypeID()

func CVPixelBufferGetWidth

func CVPixelBufferGetWidth(pixelBuffer CVPixelBufferRef) uintptr

CVPixelBufferGetWidth returns the width of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetWidth(_:)

func CVPixelBufferGetWidthOfPlane

func CVPixelBufferGetWidthOfPlane(pixelBuffer CVPixelBufferRef, planeIndex uintptr) uintptr

CVPixelBufferGetWidthOfPlane returns the width of the plane at a given index in the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferGetWidthOfPlane(_:_:)

func CVPixelBufferIsCompatibleWithAttributes

func CVPixelBufferIsCompatibleWithAttributes(pixelBuffer CVPixelBufferRef, attributes corefoundation.CFDictionaryRef) bool

CVPixelBufferIsCompatibleWithAttributes.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferIsCompatibleWithAttributes(_:_:)

func CVPixelBufferIsPlanar

func CVPixelBufferIsPlanar(pixelBuffer CVPixelBufferRef) bool

CVPixelBufferIsPlanar determines whether the pixel buffer is planar.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferIsPlanar(_:)

func CVPixelBufferPoolFlush

func CVPixelBufferPoolFlush(pool CVPixelBufferPoolRef, options CVPixelBufferPoolFlushFlags)

CVPixelBufferPoolFlush frees pixel buffers from the pool based on the options that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolFlush(_:_:)

func CVPixelBufferPoolGetAttributes

func CVPixelBufferPoolGetAttributes(pool CVPixelBufferPoolRef) corefoundation.CFDictionaryRef

CVPixelBufferPoolGetAttributes the pool attributes dictionary for a pixel buffer pool.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolGetAttributes(_:)

func CVPixelBufferPoolGetPixelBufferAttributes

func CVPixelBufferPoolGetPixelBufferAttributes(pool CVPixelBufferPoolRef) corefoundation.CFDictionaryRef

CVPixelBufferPoolGetPixelBufferAttributes the attributes of pixel buffers which the system creates using the pool you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolGetPixelBufferAttributes(_:)

func CVPixelBufferPoolGetTypeID

func CVPixelBufferPoolGetTypeID() uint

CVPixelBufferPoolGetTypeID returns the Core Foundation type identifier of the pixel buffer pool type.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolGetTypeID()

func CVPixelBufferPoolRelease

func CVPixelBufferPoolRelease(pixelBufferPool CVPixelBufferPoolRef)

CVPixelBufferPoolRelease releases a pixel buffer pool.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolRelease

func CVPixelBufferRelease

func CVPixelBufferRelease(texture CVPixelBufferRef)

CVPixelBufferRelease releases a pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferRelease

func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes

func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(allocator corefoundation.CFAllocatorRef) corefoundation.CFArrayRef

CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes returns all the pixel format descriptions known to Core Video.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(_:)

func CVPixelFormatDescriptionCreateWithPixelFormatType

func CVPixelFormatDescriptionCreateWithPixelFormatType(allocator corefoundation.CFAllocatorRef, pixelFormat uint32) corefoundation.CFDictionaryRef

CVPixelFormatDescriptionCreateWithPixelFormatType creates a pixel format description from a given [OSType] identifier.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatDescriptionCreateWithPixelFormatType(_:_:)

func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType

func CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description corefoundation.CFDictionaryRef, pixelFormat uint32)

CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType registers a pixel format description with Core Video.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(_:_:)

func CVPixelFormatTypeCopyFourCharCodeString

func CVPixelFormatTypeCopyFourCharCodeString(pixelFormat uint32) corefoundation.CFStringRef

CVPixelFormatTypeCopyFourCharCodeString.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelFormatTypeCopyFourCharCodeString(_:)

func CVTransferFunctionGetIntegerCodePointForString

func CVTransferFunctionGetIntegerCodePointForString(transferFunctionString corefoundation.CFStringRef) int

CVTransferFunctionGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video transfer function string that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVTransferFunctionGetIntegerCodePointForString(_:)

func CVTransferFunctionGetStringForIntegerCodePoint

func CVTransferFunctionGetStringForIntegerCodePoint(transferFunctionCodePoint int) corefoundation.CFStringRef

CVTransferFunctionGetStringForIntegerCodePoint returns the Core Video transfer function string corresponding to the standard integer code point that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVTransferFunctionGetStringForIntegerCodePoint(_:)

func CVYCbCrMatrixGetIntegerCodePointForString

func CVYCbCrMatrixGetIntegerCodePointForString(yCbCrMatrixString corefoundation.CFStringRef) int

CVYCbCrMatrixGetIntegerCodePointForString returns the standard integer code point corresponding to the Core Video YCbCr matrix string that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVYCbCrMatrixGetIntegerCodePointForString(_:)

func CVYCbCrMatrixGetStringForIntegerCodePoint

func CVYCbCrMatrixGetStringForIntegerCodePoint(yCbCrMatrixCodePoint int) corefoundation.CFStringRef

CVYCbCrMatrixGetStringForIntegerCodePoint returns the Core Video YCbCr matrix string corresponding to the standard integer code point that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVYCbCrMatrixGetStringForIntegerCodePoint(_:)

Types

type CVAttachmentMode

type CVAttachmentMode int

See: https://developer.apple.com/documentation/CoreVideo/CVAttachmentMode

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

func (CVAttachmentMode) String

func (e CVAttachmentMode) String() string

type CVBufferRef

type CVBufferRef uintptr

CVBufferRef is a reference to a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBuffer

func CVBufferRetain

func CVBufferRetain(buffer CVBufferRef) CVBufferRef

CVBufferRetain retains a Core Video buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVBufferRetain

type CVDisplayLinkOutputCallback

type CVDisplayLinkOutputCallback = func(uintptr, *CVTimeStamp, *CVTimeStamp, uint64, *uint64, unsafe.Pointer) int

CVDisplayLinkOutputCallback is a type for a display link callback function that the system invokes when it’s time for the app to output a video frame.

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkOutputCallback

type CVDisplayLinkRef

type CVDisplayLinkRef uintptr

CVDisplayLinkRef is a reference to a display link object.

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLink

func CVDisplayLinkRetain deprecated

func CVDisplayLinkRetain(displayLink CVDisplayLinkRef) CVDisplayLinkRef

CVDisplayLinkRetain retains a display link.

Deprecated: Deprecated since macOS 15.0.

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkRetain

type CVFillExtendedPixelsCallBack

type CVFillExtendedPixelsCallBack = func(uintptr, unsafe.Pointer) uint8

CVFillExtendedPixelsCallBack is defines a pointer to a custom extended pixel-fill function, which is called whenever the system needs to pad a buffer holding your custom pixel format.

See: https://developer.apple.com/documentation/CoreVideo/CVFillExtendedPixelsCallBack

type CVFillExtendedPixelsCallBackData

type CVFillExtendedPixelsCallBackData struct {
	Version      int // The version of this fill algorithm.
	FillCallBack CVFillExtendedPixelsCallBack
	RefCon       unsafe.Pointer // A pointer to application-defined data that is passed to your custom pixel fill function.

}

C struct types CVFillExtendedPixelsCallBackData - A structure for holding information that describes a custom extended pixel fill algorithm.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVFillExtendedPixelsCallBackData

type CVImageBufferRef

type CVImageBufferRef uintptr

CVImageBufferRef is a reference to a Core Video image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVImageBuffer

type CVMetalTextureCacheRef

type CVMetalTextureCacheRef uintptr

CVMetalTextureCacheRef is a reference to a Core Video Metal texture cache.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCache

type CVMetalTextureRef

type CVMetalTextureRef uintptr

CVMetalTextureRef is a reference to a CoreVideo Metal texture-based image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTexture

type CVOpenGLBufferPoolRef

type CVOpenGLBufferPoolRef uintptr

CVOpenGLBufferPoolRef is a reference to an OpenGL buffer pool object.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPool

func CVOpenGLBufferPoolRetain deprecated

func CVOpenGLBufferPoolRetain(openGLBufferPool CVOpenGLBufferPoolRef) CVOpenGLBufferPoolRef

CVOpenGLBufferPoolRetain retains an OpenGL buffer pool.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferPoolRetain

type CVOpenGLBufferRef

type CVOpenGLBufferRef uintptr

CVOpenGLBufferRef is a reference to a Core Video OpenGL buffer object.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBuffer

func CVOpenGLBufferRetain deprecated

func CVOpenGLBufferRetain(buffer CVOpenGLBufferRef) CVOpenGLBufferRef

CVOpenGLBufferRetain retains a Core Video OpenGL buffer.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLBufferRetain

type CVOpenGLTextureCacheRef

type CVOpenGLTextureCacheRef uintptr

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCache

func CVOpenGLTextureCacheRetain deprecated

func CVOpenGLTextureCacheRetain(textureCache CVOpenGLTextureCacheRef) CVOpenGLTextureCacheRef

CVOpenGLTextureCacheRetain retains a texture cache object.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureCacheRetain

type CVOpenGLTextureRef

type CVOpenGLTextureRef uintptr

CVOpenGLTextureRef is a reference to an OpenGL texture-based image buffer object.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTexture

func CVOpenGLTextureRetain deprecated

func CVOpenGLTextureRetain(texture CVOpenGLTextureRef) CVOpenGLTextureRef

CVOpenGLTextureRetain retains a Core Video OpenGL texture.

Deprecated: Deprecated since macOS 10.14.

See: https://developer.apple.com/documentation/CoreVideo/CVOpenGLTextureRetain

type CVOptionFlags

type CVOptionFlags = uint64

CVOptionFlags is the flags to be used for the display link output callback function.

See: https://developer.apple.com/documentation/CoreVideo/CVOptionFlags

type CVPixelBufferLockFlags

type CVPixelBufferLockFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferLockFlags

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

func (CVPixelBufferLockFlags) String

func (e CVPixelBufferLockFlags) String() string

type CVPixelBufferPoolFlushFlags

type CVPixelBufferPoolFlushFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolFlushFlags

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

func (CVPixelBufferPoolFlushFlags) String

type CVPixelBufferPoolRef

type CVPixelBufferPoolRef uintptr

CVPixelBufferPoolRef is a reference to a pixel buffer pool object.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPool

func CVPixelBufferPoolRetain

func CVPixelBufferPoolRetain(pixelBufferPool CVPixelBufferPoolRef) CVPixelBufferPoolRef

CVPixelBufferPoolRetain retains the pixel buffer pool that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolRetain

type CVPixelBufferRef

type CVPixelBufferRef uintptr

CVPixelBufferRef is a reference to a Core Video pixel buffer object.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBuffer

func CVPixelBufferRetain

func CVPixelBufferRetain(texture CVPixelBufferRef) CVPixelBufferRef

CVPixelBufferRetain retains a pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferRetain

type CVPixelBufferReleaseBytesCallback

type CVPixelBufferReleaseBytesCallback = func(unsafe.Pointer, unsafe.Pointer)

CVPixelBufferReleaseBytesCallback is a type that defines a release callback function.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferReleaseBytesCallback

type CVPixelBufferReleasePlanarBytesCallback

type CVPixelBufferReleasePlanarBytesCallback = func(unsafe.Pointer, unsafe.Pointer, uint, uint, unsafe.Pointer)

CVPixelBufferReleasePlanarBytesCallback is defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by [CVPixelBufferCreateWithPlanarBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)] is released.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferReleasePlanarBytesCallback

type CVPlanarComponentInfo

type CVPlanarComponentInfo struct {
	Offset   int32  // The offset from the main base address to the base address of this plane. (big-endian)
	RowBytes uint32 // The number of bytes per row of this plane. (big-endian)

}

CVPlanarComponentInfo - A structure for describing planar components.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarComponentInfo

type CVPlanarPixelBufferInfo

type CVPlanarPixelBufferInfo struct {
	ComponentInfo CVPlanarComponentInfo // An array containing a [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure for each plane of the buffer.

}

CVPlanarPixelBufferInfo - A structure for describing planar buffers.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarPixelBufferInfo

type CVPlanarPixelBufferInfo_YCbCrBiPlanar

type CVPlanarPixelBufferInfo_YCbCrBiPlanar struct {
	ComponentInfoY    CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Y component of the buffer.
	ComponentInfoCbCr CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Cb/Cr component of the buffer.

}

CVPlanarPixelBufferInfo_YCbCrBiPlanar - A structure for describing YCbCr biplanar buffers.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarPixelBufferInfo_YCbCrBiPlanar

type CVPlanarPixelBufferInfo_YCbCrPlanar

type CVPlanarPixelBufferInfo_YCbCrPlanar struct {
	ComponentInfoY  CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Y component of the buffer.
	ComponentInfoCb CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Cb component of the buffer.
	ComponentInfoCr CVPlanarComponentInfo // A [CVPlanarComponentInfo](<doc://com.apple.corevideo/documentation/CoreVideo/CVPlanarComponentInfo>) structure containing information on the Cr component of the buffer.

}

CVPlanarPixelBufferInfo_YCbCrPlanar - A structure for describing YCbCr planar buffers.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVPlanarPixelBufferInfo_YCbCrPlanar

type CVReturn

type CVReturn = int32

CVReturn is a Core Video error type return value.

See: https://developer.apple.com/documentation/CoreVideo/CVReturn

func CVDisplayLinkCreateWithActiveCGDisplays deprecated

func CVDisplayLinkCreateWithActiveCGDisplays(displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithActiveCGDisplays creates a display link capable of being used with all active displays.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithActiveCGDisplays(_:)

func CVDisplayLinkCreateWithCGDisplay deprecated

func CVDisplayLinkCreateWithCGDisplay(displayID uint32, displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithCGDisplay creates a display link for a single display.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithCGDisplay(_:_:)

func CVDisplayLinkCreateWithCGDisplays deprecated

func CVDisplayLinkCreateWithCGDisplays(displayArray *uint32, count int, displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithCGDisplays creates a display link for an array of displays.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithCGDisplays(_:_:_:)

func CVDisplayLinkCreateWithOpenGLDisplayMask deprecated

func CVDisplayLinkCreateWithOpenGLDisplayMask(mask coregraphics.CGOpenGLDisplayMask, displayLinkOut *CVDisplayLinkRef) CVReturn

CVDisplayLinkCreateWithOpenGLDisplayMask creates a display link from an OpenGL display mask.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkCreateWithOpenGLDisplayMask(_:_:)

func CVDisplayLinkGetCurrentTime deprecated

func CVDisplayLinkGetCurrentTime(displayLink CVDisplayLinkRef, outTime *CVTimeStamp) CVReturn

CVDisplayLinkGetCurrentTime retrieves the current (“now”) time of a given display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetCurrentTime(_:_:)

func CVDisplayLinkSetCurrentCGDisplay deprecated

func CVDisplayLinkSetCurrentCGDisplay(displayLink CVDisplayLinkRef, displayID uint32) CVReturn

CVDisplayLinkSetCurrentCGDisplay sets the current display of a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetCurrentCGDisplay(_:_:)

func CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext deprecated

func CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink CVDisplayLinkRef, cglContext unsafe.Pointer, cglPixelFormat unsafe.Pointer) CVReturn

CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext selects the display link most optimal for the current renderer of an OpenGL context.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(_:_:_:)

func CVDisplayLinkSetOutputCallback deprecated

func CVDisplayLinkSetOutputCallback(displayLink CVDisplayLinkRef, callback CVDisplayLinkOutputCallback, userInfo unsafe.Pointer) CVReturn

CVDisplayLinkSetOutputCallback sets the renderer output callback function.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetOutputCallback(_:_:_:)

func CVDisplayLinkSetOutputHandler deprecated

func CVDisplayLinkSetOutputHandler(displayLink CVDisplayLinkRef, handler CVDisplayLinkOutputHandler) CVReturn

CVDisplayLinkSetOutputHandler.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkSetOutputHandler(_:_:)

func CVDisplayLinkStart deprecated

func CVDisplayLinkStart(displayLink CVDisplayLinkRef) CVReturn

CVDisplayLinkStart activates a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkStart(_:)

func CVDisplayLinkStop deprecated

func CVDisplayLinkStop(displayLink CVDisplayLinkRef) CVReturn

CVDisplayLinkStop stops a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkStop(_:)

func CVDisplayLinkTranslateTime deprecated

func CVDisplayLinkTranslateTime(displayLink CVDisplayLinkRef, inTime *CVTimeStamp, outTime *CVTimeStamp) CVReturn

CVDisplayLinkTranslateTime translates the time in the display link’s time base from one representation to another.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkTranslateTime(_:_:_:)

func CVMetalBufferCacheCreateBufferFromImage

func CVMetalBufferCacheCreateBufferFromImage(allocator corefoundation.CFAllocatorRef, bufferCache CVMetalBufferCacheRef, imageBuffer CVImageBufferRef, bufferOut *CVMetalBufferRef) CVReturn

CVMetalBufferCacheCreateBufferFromImage.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalBufferCacheCreateBufferFromImage(_:_:_:_:)

func CVMetalTextureCacheCreate

func CVMetalTextureCacheCreate(allocator corefoundation.CFAllocatorRef, cacheAttributes corefoundation.CFDictionaryRef, metalDevice metal.MTLDeviceObject, textureAttributes corefoundation.CFDictionaryRef, cacheOut *CVMetalTextureCacheRef) CVReturn

CVMetalTextureCacheCreate creates a new texture cache.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheCreate(_:_:_:_:_:)

func CVMetalTextureCacheCreateTextureFromImage

func CVMetalTextureCacheCreateTextureFromImage(allocator corefoundation.CFAllocatorRef, textureCache CVMetalTextureCacheRef, sourceImage CVImageBufferRef, textureAttributes corefoundation.CFDictionaryRef, pixelFormat metal.MTLPixelFormat, width uintptr, height uintptr, planeIndex uintptr, textureOut *CVMetalTextureRef) CVReturn

CVMetalTextureCacheCreateTextureFromImage creates a Core Video Metal texture buffer from an existing image buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVMetalTextureCacheCreateTextureFromImage(_:_:_:_:_:_:_:_:_:)

func CVPixelBufferCreate

func CVPixelBufferCreate(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, pixelFormatType uint32, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreate creates a single pixel buffer for a given size and pixel format.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreate(_:_:_:_:_:_:)

func CVPixelBufferCreateResolvedAttributesDictionary

func CVPixelBufferCreateResolvedAttributesDictionary(allocator corefoundation.CFAllocatorRef, attributes corefoundation.CFArrayRef, resolvedDictionaryOut *corefoundation.CFDictionaryRef) CVReturn

CVPixelBufferCreateResolvedAttributesDictionary resolves an array of [CFDictionary] objects describing various pixel buffer attributes into a single dictionary.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)

func CVPixelBufferCreateWithBytes

func CVPixelBufferCreateWithBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, pixelFormatType uint32, baseAddress unsafe.Pointer, bytesPerRow uintptr, releaseCallback CVPixelBufferReleaseBytesCallback, releaseRefCon unsafe.Pointer, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreateWithBytes creates a pixel buffer for a given size and pixel format containing data specified by a memory location.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateWithBytes(_:_:_:_:_:_:_:_:_:_:)

func CVPixelBufferCreateWithIOSurface

func CVPixelBufferCreateWithIOSurface(allocator corefoundation.CFAllocatorRef, surface unsafe.Pointer, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreateWithIOSurface creates a single pixel buffer for the IO surface that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateWithIOSurface(_:_:_:_:)

func CVPixelBufferCreateWithPlanarBytes

func CVPixelBufferCreateWithPlanarBytes(allocator corefoundation.CFAllocatorRef, width uintptr, height uintptr, pixelFormatType uint32, dataPtr unsafe.Pointer, dataSize uintptr, numberOfPlanes uintptr, planeBaseAddress unsafe.Pointer, planeWidth uintptr, planeHeight uintptr, planeBytesPerRow uintptr, releaseCallback CVPixelBufferReleasePlanarBytesCallback, releaseRefCon unsafe.Pointer, pixelBufferAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferCreateWithPlanarBytes creates a single pixel buffer in planar format for a given size and pixel format containing data specified by a memory location.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferCreateWithPlanarBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)

func CVPixelBufferFillExtendedPixels

func CVPixelBufferFillExtendedPixels(pixelBuffer CVPixelBufferRef) CVReturn

CVPixelBufferFillExtendedPixels fills the extended pixels of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferFillExtendedPixels(_:)

func CVPixelBufferLockBaseAddress

func CVPixelBufferLockBaseAddress(pixelBuffer CVPixelBufferRef, lockFlags CVPixelBufferLockFlags) CVReturn

CVPixelBufferLockBaseAddress locks the base address of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferLockBaseAddress(_:_:)

func CVPixelBufferPoolCreate

func CVPixelBufferPoolCreate(allocator corefoundation.CFAllocatorRef, poolAttributes corefoundation.CFDictionaryRef, pixelBufferAttributes corefoundation.CFDictionaryRef, poolOut *CVPixelBufferPoolRef) CVReturn

CVPixelBufferPoolCreate creates a pixel buffer pool using the allocator and attributes that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolCreate(_:_:_:_:)

func CVPixelBufferPoolCreatePixelBuffer

func CVPixelBufferPoolCreatePixelBuffer(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferPoolCreatePixelBuffer creates a pixel buffer from a pixel buffer pool, using the allocator that you specify.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolCreatePixelBuffer(_:_:_:)

func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes

func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(allocator corefoundation.CFAllocatorRef, pixelBufferPool CVPixelBufferPoolRef, auxAttributes corefoundation.CFDictionaryRef, pixelBufferOut *CVPixelBufferRef) CVReturn

CVPixelBufferPoolCreatePixelBufferWithAuxAttributes creates a new pixel buffer with auxiliary attributes from the pool.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:)

func CVPixelBufferUnlockBaseAddress

func CVPixelBufferUnlockBaseAddress(pixelBuffer CVPixelBufferRef, unlockFlags CVPixelBufferLockFlags) CVReturn

CVPixelBufferUnlockBaseAddress unlocks the base address of the pixel buffer.

See: https://developer.apple.com/documentation/CoreVideo/CVPixelBufferUnlockBaseAddress(_:_:)

type CVSMPTETime

type CVSMPTETime struct {
	Subframes       int16  // The number of subframes in the full message.
	SubframeDivisor int16  // The number of subframes per frame (typically, 80).
	Counter         uint32 // The total number of messages received.
	Type            uint32 // The kind of SMPTE time type.
	Flags           uint32 // A set of flags that indicate the SMPTE state.
	Hours           int16  // The number of hours in the full message.
	Minutes         int16  // The number of minutes in the full message.
	Seconds         int16  // The number of seconds in the full message.
	Frames          int16  // The number of frames in the full message.

}

CVSMPTETime - A structure for holding an SMPTE time.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVSMPTETime

type CVSMPTETimeFlags

type CVSMPTETimeFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVSMPTETimeFlags

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

func (CVSMPTETimeFlags) String

func (e CVSMPTETimeFlags) String() string

type CVSMPTETimeType

type CVSMPTETimeType int

See: https://developer.apple.com/documentation/CoreVideo/CVSMPTETimeType

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

func (CVSMPTETimeType) String

func (e CVSMPTETimeType) String() string

type CVTime

type CVTime struct {
	TimeValue int64 // The time value.
	TimeScale int32 // The time scale for this value.
	Flags     int32 // The flags associated with the [CVTime] value. See [CVTime Values](<doc://com.apple.corevideo/documentation/CoreVideo/cvtime-values>) for possible values. If `kCVTimeIsIndefinite` is set, you should not use any of the other fields in this structure.

}

CVTime - A structure for reporting Core Video time values.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVTime

var (
	// KCVIndefiniteTime is an unknown or indefinite time. For example, [CVDisplayLinkGetNominalOutputVideoRefreshPeriod(_:)] returns `kCVIndefiniteTime` if the display link specified is not valid.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVIndefiniteTime
	KCVIndefiniteTime CVTime
	// KCVZeroTime is zero time or duration. For example, [CVDisplayLinkGetOutputVideoLatency(_:)] returns `kCVZeroTime` for zero video latency.
	//
	// See: https://developer.apple.com/documentation/CoreVideo/kCVZeroTime
	KCVZeroTime CVTime
)

func CVDisplayLinkGetNominalOutputVideoRefreshPeriod deprecated

func CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink CVDisplayLinkRef) CVTime

CVDisplayLinkGetNominalOutputVideoRefreshPeriod retrieves the nominal refresh period of a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetNominalOutputVideoRefreshPeriod(_:)

func CVDisplayLinkGetOutputVideoLatency deprecated

func CVDisplayLinkGetOutputVideoLatency(displayLink CVDisplayLinkRef) CVTime

CVDisplayLinkGetOutputVideoLatency retrieves the nominal latency of a display link.

Deprecated: Deprecated since macOS 15.0. use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

See: https://developer.apple.com/documentation/CoreVideo/CVDisplayLinkGetOutputVideoLatency(_:)

type CVTimeFlags

type CVTimeFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVTimeFlags

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

func (CVTimeFlags) String

func (e CVTimeFlags) String() string

type CVTimeStamp

type CVTimeStamp struct {
	Version            uint32  // The current [CVTimeStamp] structure is version 0. Some functions require you to specify a version when passing in a timestamp structure to be filled.
	VideoTimeScale     int32   // The scale (in units per second) of the `videoTimeScale` and `videoRefreshPeriod` fields.
	VideoTime          int64   // The start of a frame (or field for interlaced video).
	HostTime           uint64  // The system time measured by the timestamp.
	RateScalar         float64 // The current rate of the device as measured by the timestamps, divided by the nominal rate.
	VideoRefreshPeriod int64
	SmpteTime          CVSMPTETime // The SMPTE time representation of the timestamp.
	Flags              uint64      // A bit field containing additional information about the timestamp.
	Reserved           uint64      // Reserved. Do not use.

}

CVTimeStamp - A structure for defining a display timestamp.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreVideo/CVTimeStamp

type CVTimeStampFlags

type CVTimeStampFlags int

See: https://developer.apple.com/documentation/CoreVideo/CVTimeStampFlags

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

func (CVTimeStampFlags) String

func (e CVTimeStampFlags) String() string

type KCVPixelFormatType

type KCVPixelFormatType uint
const (
	// KCVPixelFormatType_128RGBAFloat: 128-bit RGBA IEEE float, 32-bit little-endian samples.
	KCVPixelFormatType_128RGBAFloat KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_BGGR KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_GBRG KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_GRBG KCVPixelFormatType = 0
	KCVPixelFormatType_14Bayer_RGGB KCVPixelFormatType = 0
	// KCVPixelFormatType_16BE555: 16-bit BE RGB 555.
	KCVPixelFormatType_16BE555 KCVPixelFormatType = 0
	// KCVPixelFormatType_16BE565: 16-bit BE RGB 565.
	KCVPixelFormatType_16BE565 KCVPixelFormatType = 0
	// KCVPixelFormatType_16Gray: 16-bit Grayscale, 16-bit big-endian samples, black is zero.
	KCVPixelFormatType_16Gray KCVPixelFormatType = 0
	// KCVPixelFormatType_16LE555: 16-bit LE RGB 555.
	KCVPixelFormatType_16LE555 KCVPixelFormatType = 0
	// KCVPixelFormatType_16LE5551: 16-bit LE RGB 5551.
	KCVPixelFormatType_16LE5551 KCVPixelFormatType = 0
	// KCVPixelFormatType_16LE565: 16-bit LE RGB 565.
	KCVPixelFormatType_16LE565          KCVPixelFormatType = 0
	KCVPixelFormatType_16VersatileBayer KCVPixelFormatType = 0
	// KCVPixelFormatType_1IndexedGray_WhiteIsZero: 1 bit indexed gray, white is zero.
	KCVPixelFormatType_1IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	// KCVPixelFormatType_1Monochrome: 1 bit indexed.
	KCVPixelFormatType_1Monochrome KCVPixelFormatType = 0
	// KCVPixelFormatType_24BGR: 24-bit BGR.
	KCVPixelFormatType_24BGR KCVPixelFormatType = 0
	// KCVPixelFormatType_24RGB: 24-bit RGB.
	KCVPixelFormatType_24RGB KCVPixelFormatType = 0
	// KCVPixelFormatType_2Indexed: 2-bit indexed.
	KCVPixelFormatType_2Indexed KCVPixelFormatType = 0
	// KCVPixelFormatType_2IndexedGray_WhiteIsZero: 2-bit indexed gray, white is zero.
	KCVPixelFormatType_2IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	// KCVPixelFormatType_30RGB: 30-bit RGB, 10-bit big-endian samples, 2 unused padding bits (at least significant end).
	KCVPixelFormatType_30RGB                  KCVPixelFormatType = 0
	KCVPixelFormatType_30RGBLEPackedWideGamut KCVPixelFormatType = 0
	KCVPixelFormatType_30RGBLE_8A_BiPlanar    KCVPixelFormatType = 0
	KCVPixelFormatType_30RGB_r210             KCVPixelFormatType = 0
	// KCVPixelFormatType_32ABGR: 32-bit ABGR.
	KCVPixelFormatType_32ABGR KCVPixelFormatType = 0
	// KCVPixelFormatType_32ARGB: 32-bit ARGB.
	KCVPixelFormatType_32ARGB KCVPixelFormatType = 0
	// KCVPixelFormatType_32AlphaGray: 32-bit AlphaGray, 16-bit big-endian samples, black is zero.
	KCVPixelFormatType_32AlphaGray KCVPixelFormatType = 0
	// KCVPixelFormatType_32BGRA: 32-bit BGRA.
	KCVPixelFormatType_32BGRA KCVPixelFormatType = 0
	// KCVPixelFormatType_32RGBA: 32-bit RGBA.
	KCVPixelFormatType_32RGBA                         KCVPixelFormatType = 0
	KCVPixelFormatType_40ARGBLEWideGamut              KCVPixelFormatType = 0
	KCVPixelFormatType_40ARGBLEWideGamutPremultiplied KCVPixelFormatType = 0
	KCVPixelFormatType_420YpCbCr10BiPlanarFullRange   KCVPixelFormatType = 0
	KCVPixelFormatType_420YpCbCr10BiPlanarVideoRange  KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8BiPlanarFullRange: Bi-Planar Component Y’CbCr 8-bit 4:2:0, full-range (luma=[0,255] chroma=[1,255]).
	KCVPixelFormatType_420YpCbCr8BiPlanarFullRange KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8BiPlanarVideoRange: Bi-Planar Component Y’CbCr 8-bit 4:2:0, video-range (luma=[16,235] chroma=[16,240]).
	KCVPixelFormatType_420YpCbCr8BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8Planar: Planar Component Y’CbCr 8-bit 4:2:0.
	KCVPixelFormatType_420YpCbCr8Planar KCVPixelFormatType = 0
	// KCVPixelFormatType_420YpCbCr8PlanarFullRange: Planar Component Y’CbCr 8-bit 4:2:0, full range.
	KCVPixelFormatType_420YpCbCr8PlanarFullRange         KCVPixelFormatType = 0
	KCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr10: Component Y’CbCr 10-bit 4:2:2.
	KCVPixelFormatType_422YpCbCr10                   KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr10BiPlanarFullRange  KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr10BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr16: Component Y’CbCr 10,12,14,16-bit 4:2:2.
	KCVPixelFormatType_422YpCbCr16                   KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr16BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr8: Component Y’CbCr 8-bit 4:2:2, ordered Cb Y’0 Cr Y’1.
	KCVPixelFormatType_422YpCbCr8                   KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr8BiPlanarFullRange  KCVPixelFormatType = 0
	KCVPixelFormatType_422YpCbCr8BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr8FullRange: Component Y’CbCr 8-bit 4:2:2, full range, ordered Y’0 Cb Y’1 Cr.
	KCVPixelFormatType_422YpCbCr8FullRange KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr8_yuvs: Component Y’CbCr 8-bit 4:2:2, ordered Y’0 Cb Y’1 Cr.
	KCVPixelFormatType_422YpCbCr8_yuvs KCVPixelFormatType = 0
	// KCVPixelFormatType_422YpCbCr_4A_8BiPlanar: First plane: Video-range Component Y’CbCr 8-bit 4:2:2, ordered Cb Y’0 Cr Y’1; second plane: alpha 8-bit 0-255.
	KCVPixelFormatType_422YpCbCr_4A_8BiPlanar KCVPixelFormatType = 0
	// KCVPixelFormatType_4444AYpCbCr16: Component Y’CbCrA 16-bit 4:4:4:4, ordered A Y’ Cb Cr, full range alpha, video range Y’CbCr, 16-bit little-endian samples.
	KCVPixelFormatType_4444AYpCbCr16 KCVPixelFormatType = 0
	// KCVPixelFormatType_4444AYpCbCr8: Component Y’CbCrA 8-bit 4:4:4:4, ordered A Y’ Cb Cr, full range alpha, video range Y’CbCr.
	KCVPixelFormatType_4444AYpCbCr8     KCVPixelFormatType = 0
	KCVPixelFormatType_4444AYpCbCrFloat KCVPixelFormatType = 0
	// KCVPixelFormatType_4444YpCbCrA8: Component Y’CbCrA 8-bit 4:4:4:4, ordered Cb Y’ Cr A.
	KCVPixelFormatType_4444YpCbCrA8 KCVPixelFormatType = 0
	// KCVPixelFormatType_4444YpCbCrA8R: Component Y’CbCrA 8-bit 4:4:4:4, rendering format.
	KCVPixelFormatType_4444YpCbCrA8R KCVPixelFormatType = 0
	// KCVPixelFormatType_444YpCbCr10: Component Y’CbCr 10-bit 4:4:4.
	KCVPixelFormatType_444YpCbCr10                         KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr10BiPlanarFullRange        KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr10BiPlanarVideoRange       KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr16BiPlanarVideoRange       KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar KCVPixelFormatType = 0
	// KCVPixelFormatType_444YpCbCr8: Component Y’CbCr 8-bit 4:4:4.
	KCVPixelFormatType_444YpCbCr8                   KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr8BiPlanarFullRange  KCVPixelFormatType = 0
	KCVPixelFormatType_444YpCbCr8BiPlanarVideoRange KCVPixelFormatType = 0
	// KCVPixelFormatType_48RGB: 48-bit RGB, 16-bit big-endian samples.
	KCVPixelFormatType_48RGB KCVPixelFormatType = 0
	// KCVPixelFormatType_4Indexed: 4-bit indexed.
	KCVPixelFormatType_4Indexed KCVPixelFormatType = 0
	// KCVPixelFormatType_4IndexedGray_WhiteIsZero: 4-bit indexed gray, white is zero.
	KCVPixelFormatType_4IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	// KCVPixelFormatType_64ARGB: 64-bit ARGB, 16-bit big-endian samples.
	KCVPixelFormatType_64ARGB KCVPixelFormatType = 0
	// KCVPixelFormatType_64RGBAHalf: 64-bit RGBA IEEE half-precision float, 16-bit little-endian samples.
	KCVPixelFormatType_64RGBAHalf                 KCVPixelFormatType = 0
	KCVPixelFormatType_64RGBALE                   KCVPixelFormatType = 0
	KCVPixelFormatType_64RGBA_DownscaledProResRAW KCVPixelFormatType = 0
	// KCVPixelFormatType_8Indexed: 8-bit indexed.
	KCVPixelFormatType_8Indexed KCVPixelFormatType = 0
	// KCVPixelFormatType_8IndexedGray_WhiteIsZero: 8-bit indexed gray, white is zero.
	KCVPixelFormatType_8IndexedGray_WhiteIsZero KCVPixelFormatType = 0
	KCVPixelFormatType_96VersatileBayerPacked12 KCVPixelFormatType = 0
	KCVPixelFormatType_ARGB2101010LEPacked      KCVPixelFormatType = 0
	KCVPixelFormatType_DepthFloat16             KCVPixelFormatType = 0
	KCVPixelFormatType_DepthFloat32             KCVPixelFormatType = 0
	KCVPixelFormatType_DisparityFloat16         KCVPixelFormatType = 0
	KCVPixelFormatType_DisparityFloat32         KCVPixelFormatType = 0
	KCVPixelFormatType_OneComponent10           KCVPixelFormatType = 0
	KCVPixelFormatType_OneComponent12           KCVPixelFormatType = 0
	KCVPixelFormatType_OneComponent16           KCVPixelFormatType = 0
	// KCVPixelFormatType_OneComponent16Half: 6-bit one component IEEE half-precision float, 16-bit little-endian samples.
	KCVPixelFormatType_OneComponent16Half KCVPixelFormatType = 0
	// KCVPixelFormatType_OneComponent32Float: 32-bit one component IEEE float, 32-bit little-endian samples.
	KCVPixelFormatType_OneComponent32Float KCVPixelFormatType = 0
	// KCVPixelFormatType_OneComponent8: 8-bit one component, black is zero.
	KCVPixelFormatType_OneComponent8  KCVPixelFormatType = 0
	KCVPixelFormatType_TwoComponent16 KCVPixelFormatType = 0
	// KCVPixelFormatType_TwoComponent16Half: 16-bit two component IEEE half-precision float, 16-bit little-endian samples.
	KCVPixelFormatType_TwoComponent16Half KCVPixelFormatType = 0
	// KCVPixelFormatType_TwoComponent32Float: 32-bit two component IEEE float, 32-bit little-endian samples.
	KCVPixelFormatType_TwoComponent32Float KCVPixelFormatType = 0
	// KCVPixelFormatType_TwoComponent8: 8-bit two component, black is zero.
	KCVPixelFormatType_TwoComponent8 KCVPixelFormatType = 0
)

func (KCVPixelFormatType) String

func (e KCVPixelFormatType) String() string

type KCVReturn

type KCVReturn uint
const (
	// KCVReturnAllocationFailed: Memory allocation for a buffer or buffer pool failed.
	KCVReturnAllocationFailed KCVReturn = 0
	// KCVReturnDisplayLinkAlreadyRunning: The specified display link is already running.
	KCVReturnDisplayLinkAlreadyRunning KCVReturn = 0
	// KCVReturnDisplayLinkCallbacksNotSet: No callback registered for the specified display link.
	KCVReturnDisplayLinkCallbacksNotSet KCVReturn = 0
	// KCVReturnDisplayLinkNotRunning: The specified display link is not running.
	KCVReturnDisplayLinkNotRunning KCVReturn = 0
	// KCVReturnError: An otherwise undefined error occurred.
	KCVReturnError KCVReturn = 0
	// KCVReturnFirst: Placeholder to mark the beginning of Core Video result codes (not returned by any functions).
	KCVReturnFirst KCVReturn = 0
	// KCVReturnInvalidArgument: Invalid function parameter.
	KCVReturnInvalidArgument KCVReturn = 0
	// KCVReturnInvalidDisplay: The display specified when creating a display link is invalid.
	KCVReturnInvalidDisplay KCVReturn = 0
	// KCVReturnInvalidPixelBufferAttributes: A buffer cannot be created with the specified attributes.
	KCVReturnInvalidPixelBufferAttributes KCVReturn = 0
	// KCVReturnInvalidPixelFormat: The buffer does not support the specified pixel format.
	KCVReturnInvalidPixelFormat KCVReturn = 0
	// KCVReturnInvalidPoolAttributes: A buffer pool cannot be created with the specified attributes.
	KCVReturnInvalidPoolAttributes KCVReturn = 0
	// KCVReturnInvalidSize: The buffer cannot support the requested buffer size (usually too big).
	KCVReturnInvalidSize KCVReturn = 0
	// KCVReturnLast: Placeholder to mark the end of Core Video result codes (not returned by any functions).
	KCVReturnLast KCVReturn = 0
	// KCVReturnPixelBufferNotMetalCompatible: The pixel buffer is not compatible with Metal due to an unsupported buffer size, pixel format, or attribute.
	KCVReturnPixelBufferNotMetalCompatible KCVReturn = 0
	// KCVReturnPixelBufferNotOpenGLCompatible: The pixel buffer is not compatible with OpenGL due to an unsupported buffer size, pixel format, or attribute.
	KCVReturnPixelBufferNotOpenGLCompatible KCVReturn = 0
	// KCVReturnPoolAllocationFailed: Allocation for a buffer pool failed, most likely due to a lack of resources.
	KCVReturnPoolAllocationFailed KCVReturn = 0
	// KCVReturnRetry: A scan hasn’t completely traversed the [CVBufferPool] due to a concurrent operation.
	KCVReturnRetry KCVReturn = 0
	// KCVReturnSuccess: Indicates the operation completed successfully.
	KCVReturnSuccess     KCVReturn = 0
	KCVReturnUnsupported KCVReturn = 0
	// KCVReturnWouldExceedAllocationThreshold: Allocation for a pixel buffer failed because the threshold value set for the kCVPixelBufferPoolAllocationThresholdKey key in the CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:) function would be surpassed.
	KCVReturnWouldExceedAllocationThreshold KCVReturn = 0
)

func (KCVReturn) String

func (e KCVReturn) String() string

type KcvpixelformattypeLossless

type KcvpixelformattypeLossless uint
const (
	KCVPixelFormatType_Lossless_30RGBLEPackedWideGamut              KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar                 KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_32BGRA                              KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange  KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange         KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange        KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossless = 0
	KCVPixelFormatType_Lossless_64RGBAHalf                          KcvpixelformattypeLossless = 0
)

func (KcvpixelformattypeLossless) String

type KcvpixelformattypeLossy

type KcvpixelformattypeLossy uint
const (
	KCVPixelFormatType_Lossy_32BGRA                              KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange         KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange        KcvpixelformattypeLossy = 0
	KCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange KcvpixelformattypeLossy = 0
)

func (KcvpixelformattypeLossy) String

func (e KcvpixelformattypeLossy) String() string

type KcvversatilebayerBayerpattern

type KcvversatilebayerBayerpattern uint
const (
	KCVVersatileBayer_BayerPattern_BGGR KcvversatilebayerBayerpattern = 3
	KCVVersatileBayer_BayerPattern_GBRG KcvversatilebayerBayerpattern = 2
	KCVVersatileBayer_BayerPattern_GRBG KcvversatilebayerBayerpattern = 1
	KCVVersatileBayer_BayerPattern_RGGB KcvversatilebayerBayerpattern = 0
)

func (KcvversatilebayerBayerpattern) String

Jump to

Keyboard shortcuts

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