coreimage

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package coreimage provides purego-based Go bindings for the macOS CoreImage framework.

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CIContextOfflineGPUCount

func CIContextOfflineGPUCount() uint

func CIDetectorAccuracy

func CIDetectorAccuracy() uintptr

func CIDetectorAccuracyHigh

func CIDetectorAccuracyHigh() uintptr

func CIDetectorAccuracyLow

func CIDetectorAccuracyLow() uintptr

func CIDetectorAspectRatio

func CIDetectorAspectRatio() uintptr

A dictionary key that configures a Core Image rectangle feature detection operation to search for a rectangle of a desired aspect ratio (width divided by height). This option is used with “/CIDetector/featuresInImage:options:“ The value for this key needs to be is a positive float number. Use this option with a “CIDetectorTypeRectangle“ detector to fine-tune the accuracy of the detector. For example, to more accurately find a business card (3.5 x 2 inches) in an image, specify an aspect ratio of 1.75. If this key is not specified, the a default value of 1.6 is used.

func CIDetectorEyeBlink() uintptr

A dictionary key that configures a Core Image face feature detection operation to perform additional processing to recognize closed eyes in detected faces. This option is used with “/CIDetector/featuresInImage:options:“ If the value of the key is true, then facial expressions such as blinking and smiles are extracted. This is needed for the “/CIFaceFeature/leftEyeClosed-property“ and “/CIFaceFeature/rightEyeClosed-property“ to function.

func CIDetectorFocalLength

func CIDetectorFocalLength() uintptr

A dictionary key that configures a Core Image rectangle feature detection operation to account for the focal length of the camera used for the image. This option is used with “/CIDetector/featuresInImage:options:“ The value of this key is an NSNumber object whose value is a floating-point number. Use this option with the CIDetectorTypeRectangle detector type to control the effect of the CIDetectorAspectRatio option on feature detection. This option’s value can be 0.0, -1.0, or any positive value: * The special value of -1.0 (the default) disables the aspect ratio test for the returned rectangle. * The special value of 0.0 enables a less precise test of aspect ratio that approximates an orthographic (non-perspective) projection. Use this value if you want to specify the aspect ratio of the rectangle via the CIDetectorAspectRatio option, but have no means of determining the value for the focal length in pixels. See below for a method to compute an approximate value for the focal length in pixels. * Any other value specifies the camera focal length, in pixels, allowing the aspect ratio specification to account for perspective distortion of rectangles in the input image. If you know the diagonal field of view of the camera (the scene angle subtended by the diagonal corners of an image), you can use the following formula to compute an approximate focal length in pixels: `focal_length_pixels = (image_diagonal_pixels/2)/tan(FOV/2)` In this formula, `image_diagonal_pixels` is the length (in pixels) of the image diagonal of the maximum resolution of the camera sensor. For example, this value is: * `4080` pixels for a `3264 x 2448` (8 megapixel) sensor * `5000` pixels for a `4096 x 3024` (12 megapixel) sensor. To measure diagonal field of view, put the camera on a tripod so that it is perpendicular to a surface and the center of the image is oriented on a mark on the surface. Measure the distance from the mark to one of the corner points of the image (Y). Measure the distance from the camera to the surface (Z). The field of view is then `2*arctan(Y/Z)`. You must specify this value in terms of the maximum sensor resolution. If the supplied CIImage has been scaled relative relative to the maximum sensor resolution, the supplied focal length must also be similarly scaled.

func CIDetectorImageOrientation

func CIDetectorImageOrientation() uintptr

A dictionary key that configures a Core Image feature detection operation to account for the orientation the image. This option is used with “/CIDetector/featuresInImage:options:“ The value of this key is an number object whose value is an integer between 1 and 8. The TIFF and EXIF specifications define the orientation values that describe how the image should be displayed. The default value is 1. For further details, see `CGImagePropertyOrientation`. The “CIDetectorTypeFace“ and “CIDetectorTypeText“ can use this option to correctly find faces or text. Regardless of the orientation values the “/CIFeature/bounds-property“ which is always measured in the cartesean coordinates system of the image that you pass to the detector.

func CIDetectorMaxFeatureCount

func CIDetectorMaxFeatureCount() uintptr

func CIDetectorMinFeatureSize

func CIDetectorMinFeatureSize() uintptr

func CIDetectorNumberOfAngles

func CIDetectorNumberOfAngles() uintptr

func CIDetectorReturnSubFeatures

func CIDetectorReturnSubFeatures() uintptr

A dictionary key that configures a Core Image text feature detection operation to return feature information for components of detected features. This option is used with “/CIDetector/featuresInImage:options:“ If the value for this option configures the “CIDetectorTypeText“ detector as follows: * False: detect only in regions likely to contain text. * True: detect in regions likely to contain individual characters. If this key is not specified, the a default is False.

func CIDetectorSmile

func CIDetectorSmile() uintptr

A dictionary key that configures a Core Image face feature detection operation to perform additional processing to recognize smiles in detected faces. This option is used with “/CIDetector/featuresInImage:options:“ If the value of the key is true, then facial expressions such as blinking and smiles eyes are extracted. This is needed for the “/CIFaceFeature/hasSmile-property“ to function.

func CIDetectorTracking

func CIDetectorTracking() uintptr

func CIDetectorTypeFace

func CIDetectorTypeFace() uintptr

func CIDetectorTypeQRCode

func CIDetectorTypeQRCode() uintptr

func CIDetectorTypeRectangle

func CIDetectorTypeRectangle() uintptr

func CIDetectorTypeText

func CIDetectorTypeText() uintptr

func CIFeatureTypeFace

func CIFeatureTypeFace() uintptr

A Core Image feature type for person’s face. To detect faces in an image or video, pass this to “/CIDetector/detectorOfType:context:options:“ Use the “CIFaceFeature“ class to find more information about the detected face.

func CIFeatureTypeQRCode

func CIFeatureTypeQRCode() uintptr

A Core Image feature type for QR code object. To detect QR codes in an image or video, pass this to “/CIDetector/detectorOfType:context:options:“ Use the “CIQRCodeFeature“ class to find more information about the detected QR code.

func CIFeatureTypeRectangle

func CIFeatureTypeRectangle() uintptr

A Core Image feature type for rectangular object. To detect rectangles in an image or video, pass this to “/CIDetector/detectorOfType:context:options:“ Use the “CIRectangleFeature“ class to find more information about the detected rectangle.

func CIFeatureTypeText

func CIFeatureTypeText() uintptr

A Core Image feature type for text. To detect text in an image or video, pass this to “/CIDetector/detectorOfType:context:options:“ Use the “CITextFeature“ class to find more information about the detected text.

func CIFilterFilterArrayFromSerializedXMPInputImageExtentError deprecated

func CIFilterFilterArrayFromSerializedXMPInputImageExtentError(xmpData *foundation.NSData, extent corefoundation.CGRect) (*foundation.NSArray[*CIFilter], error)

Deprecated: since macOS 14.0.

func CIFilterFilterNamesInCategories

func CIFilterFilterNamesInCategories(categories *foundation.NSArray[*foundation.NSString]) *foundation.NSArray[*foundation.NSString]

Returns an array containing all published filter names that belong to all listed categories.

func CIFilterFilterNamesInCategory

func CIFilterFilterNamesInCategory(category *foundation.NSString) *foundation.NSArray[*foundation.NSString]

Returns an array containing all published filter names in a category.

func CIFilterLocalizedDescriptionForFilterName

func CIFilterLocalizedDescriptionForFilterName(filterName *foundation.NSString) *foundation.NSString

Returns the localized description of a filter for display in the UI.

func CIFilterLocalizedNameForCategory

func CIFilterLocalizedNameForCategory(category *foundation.NSString) *foundation.NSString

Returns the localized name of a category for display in the UI.

func CIFilterLocalizedNameForFilterName

func CIFilterLocalizedNameForFilterName(filterName *foundation.NSString) *foundation.NSString

Returns the localized name of a filter for display in the UI.

func CIFilterLocalizedReferenceDocumentationForFilterName

func CIFilterLocalizedReferenceDocumentationForFilterName(filterName *foundation.NSString) *foundation.NSURL

Returns the URL to the localized reference documentation describing the filter. The URL can be a local file or a remote document on a webserver. It is possible, that this method returns nil (like filters that predate this feature). A client of this API has to handle this case gracefully.

func CIFilterRegisterFilterNameConstructorClassAttributes

func CIFilterRegisterFilterNameConstructorClassAttributes(name *foundation.NSString, anObject CIFilterConstructor, attributes *foundation.NSDictionary[*foundation.NSString, objc.ID])

Publishes a new filter called 'name'. The constructor object 'anObject' should implement the filterWithName: method. That method will be invoked with the name of the filter to create. The class attributes must have a kCIAttributeFilterCategories key associated with a set of categories. @param attributes Dictionary of the registration attributes of the filter. See below for attribute keys.

func CIFilterSerializedXMPFromFiltersInputImageExtent deprecated

func CIFilterSerializedXMPFromFiltersInputImageExtent(filters *foundation.NSArray[*CIFilter], extent corefoundation.CGRect) *foundation.NSData

Deprecated: since macOS 14.0.

func CIFilterSupportedRawCameraModels

func CIFilterSupportedRawCameraModels() *foundation.NSArray[*foundation.NSString]

Returns a NSArray containing the names of all supported RAW cameras. Deprecated: Use new CIRAWFilter class instead.

func CIImageProcessorKernelApplyWithExtentsInputsArgumentsError

func CIImageProcessorKernelApplyWithExtentsInputsArgumentsError(extents *foundation.NSArray[*CIVector], inputs *foundation.NSArray[*CIImage], arguments *foundation.NSDictionary[*foundation.NSString, objc.ID]) (*foundation.NSArray[*CIImage], error)

Call this method on your multiple-output Core Image Processor Kernel subclass to create an array of new image objects given the specified array of extents. The inputs and arguments will be retained so that your subclass can be called when the image is drawn. This method will return `nil` and an error if: * calling “outputFormatAtIndex:arguments:“ on your subclass returns an unsupported format. * calling “formatForInputAtIndex:“ on your subclass returns an unsupported format. * your subclass does not implement “processWithInputs:arguments:output:error:“ - Parameters: - extents: The array of bounding rectangles that the `CIImageProcessorKernel` can produce. Each rectangle in the array is an object created using “/CIVector/vectorWithCGRect:“ This method will return `CIImage.emptyImage` if a rectangle in the array is empty. - inputs: An array of “CIImage“ objects to use as input. - arguments: This dictionary contains any additional parameters that the processor needs to produce its output. The argument objects can be of any type but in order for CoreImage to cache intermediates, they must be of the following immutable types: `NSArray`, `NSDictionary`, `NSNumber`, `NSValue`, `NSData`, `NSString`, `NSNull`, “CIVector“, “CIColor“, `CGImage`, `CGColorSpace`, or `MLModel`. - error: Pointer to the `NSError` object into which processing errors will be written. - Returns: An autoreleased “CIImage“

func CIImageProcessorKernelFormatForInputAtIndex

func CIImageProcessorKernelFormatForInputAtIndex(inputIndex int) int

Override this class method if you want your any of the inputs to be in a specific pixel format. The format must be one of `kCIFormatBGRA8`, `kCIFormatRGBAh`, `kCIFormatRGBAf` or `kCIFormatR8`. On iOS 12 and macOS 10.14, the formats `kCIFormatRh` and `kCIFormatRf` are also supported. If the requested inputFormat is `0`, then the input will be a supported format that best matches the rendering context's “/CIContext/workingFormat“. If a processor wants data in a colorspace other than the context's working color space, then call “/CIImage/imageByColorMatchingWorkingSpaceToColorSpace:“ on the processor input. If a processor wants it input as alpha-unpremultiplied RGBA data, then call “/CIImage/imageByUnpremultiplyingAlpha“ on the processor input.

func CIImageProcessorKernelOutputFormat

func CIImageProcessorKernelOutputFormat() int

Override this class property if you want your processor's output to be in a specific pixel format. The format must be one of `kCIFormatBGRA8`, `kCIFormatRGBAh`, `kCIFormatRGBAf` or `kCIFormatR8`. On iOS 12 and macOS 10.14, the formats `kCIFormatRh` and `kCIFormatRf` are also supported. If the outputFormat is `0`, then the output will be a supported format that best matches the rendering context's “/CIContext/workingFormat“. If a processor returns data in a color space other than the context working color space, then call “/CIImage/imageByColorMatchingColorSpaceToWorkingSpace:“ on the processor output. If a processor returns data as alpha-unpremultiplied RGBA data, then call, “/CIImage/imageByPremultiplyingAlpha“ on the processor output.

func CIImageProcessorKernelOutputFormatAtIndexArguments

func CIImageProcessorKernelOutputFormatAtIndexArguments(outputIndex int, arguments *foundation.NSDictionary[*foundation.NSString, objc.ID]) int

Override this class method if your processor has more than one output and you want your processor's output to be in a specific supported `CIPixelFormat`. The format must be one of `kCIFormatBGRA8`, `kCIFormatRGBAh`, `kCIFormatRGBAf` or `kCIFormatR8`. On iOS 12 and macOS 10.14, the formats `kCIFormatRh` and `kCIFormatRf` are also supported. If the outputFormat is `0`, then the output will be a supported format that best matches the rendering context's “/CIContext/workingFormat“. - Parameters: - outputIndex: the index that tells you which processor output for which to return the desired `CIPixelFormat` - arguments: the arguments dictionary that was passed to “applyWithExtent:inputs:arguments:error:“. - Returns: Return the desired `CIPixelFormat`

func CIImageProcessorKernelOutputIsOpaque

func CIImageProcessorKernelOutputIsOpaque() bool

Override this class property if your processor's output stores 1.0 into the alpha channel of all pixels within the output extent. If not overridden, false is returned.

func CIImageProcessorKernelProcessWithInputsArgumentsOutputError

func CIImageProcessorKernelProcessWithInputsArgumentsOutputError(inputs *foundation.NSArray[CIImageProcessorInput], arguments *foundation.NSDictionary[*foundation.NSString, objc.ID], output CIImageProcessorOutput) (bool, error)

Override this class method to implement your Core Image Processor Kernel subclass. When a `CIImage` containing your `CIImageProcessorKernel` class is rendered, your class' implementation of this method will be called as needed for that render. The method may be called more than once if Core Image needs to tile to limit memory usage. When your implementation of this class method is called, use the provided `inputs` and `arguments` objects to return processed pixel data to Core Image via `output`. > Important: this is a class method so that you cannot use or capture any state by accident. All the parameters that affect the output results must be passed to “applyWithExtent:inputs:arguments:error:“. - Parameters: - inputs: An array of `id<CIImageProcessorInput>` that the class consumes to produce its output. The `input.region` may be larger than the rect returned by “roiForInput:arguments:outputRect:“. - arguments: the arguments dictionary that was passed to “applyWithExtent:inputs:arguments:error:“. - output: The `id<CIImageProcessorOutput>` that the `CIImageProcessorKernel` must provide results to. - error: Pointer to the `NSError` object into which processing errors will be written. - Returns: Returns YES if processing succeeded, and NO if processing failed.

func CIImageProcessorKernelProcessWithInputsArgumentsOutputsError

func CIImageProcessorKernelProcessWithInputsArgumentsOutputsError(inputs *foundation.NSArray[CIImageProcessorInput], arguments *foundation.NSDictionary[*foundation.NSString, objc.ID], outputs *foundation.NSArray[CIImageProcessorOutput]) (bool, error)

Override this class method of your Core Image Processor Kernel subclass if it needs to produce multiple outputs. This supports 0, 1, 2 or more input images and 2 or more output images. When a `CIImage` containing your `CIImageProcessorKernel` class is rendered, your class' implementation of this method will be called as needed for that render. The method may be called more than once if Core Image needs to tile to limit memory usage. When your implementation of this class method is called, use the provided `inputs` and `arguments` objects to return processed pixel data to Core Image via multiple `outputs`. > Important: this is a class method so that you cannot use or capture any state by accident. All the parameters that affect the output results must be passed to “applyWithExtent:inputs:arguments:error:“. - Parameters: - inputs: An array of `id<CIImageProcessorInput>` that the class consumes to produce its output. The `input.region` may be larger than the rect returned by “roiForInput:arguments:outputRect:“. - arguments: the arguments dictionary that was passed to “applyWithExtent:inputs:arguments:error:“. - outputs: An array `id<CIImageProcessorOutput>` that the `CIImageProcessorKernel` must provide results to. - error: Pointer to the `NSError` object into which processing errors will be written. - Returns: Returns YES if processing succeeded, and NO if processing failed.

func CIImageProcessorKernelRoiForInputArgumentsOutputRect

func CIImageProcessorKernelRoiForInputArgumentsOutputRect(inputIndex int, arguments *foundation.NSDictionary[*foundation.NSString, objc.ID], outputRect corefoundation.CGRect) corefoundation.CGRect

Override this class method to implement your processor’s ROI callback. This will be called one or more times per render to determine what portion of the input images are needed to render a given 'outputRect' of the output. This will not be called if processor has no input images. The default implementation would return outputRect. > Important: this is a class method so that you cannot use or capture any state by accident. All the parameters that affect the output results must be passed to “applyWithExtent:inputs:arguments:error:“. - Parameters: - inputIndex: the index that tells you which processor input for which to return the ROI rectangle. - arguments: the arguments dictionary that was passed to “applyWithExtent:inputs:arguments:error:“. - outputRect: the output `CGRect` that processor will be asked to output. - Returns: The `CGRect` of the `inputIndex`th input that is required for the above `outputRect`

func CIImageProcessorKernelRoiTileArrayForInputArgumentsOutputRect

func CIImageProcessorKernelRoiTileArrayForInputArgumentsOutputRect(inputIndex int, arguments *foundation.NSDictionary[*foundation.NSString, objc.ID], outputRect corefoundation.CGRect) *foundation.NSArray[*CIVector]

Override this class method to implement your processor’s tiled ROI callback. This will be called one or more times per render to determine what tiles of the input images are needed to render a given `outputRect` of the output. If the processor implements this method, then when rendered; * as CoreImage prepares for a render, this method will be called for each input to return an ROI tile array. * as CoreImage performs the render, the method “processWithInputs:arguments:output:error:“ will be called once for each tile. > Important: this is a class method so that you cannot use or capture any state by accident. All the parameters that affect the output results must be passed to “applyWithExtent:inputs:arguments:error:“. - Parameters: - inputIndex: the index that tells you which processor input for which to return the array of ROI rectangles - arguments: the arguments dictionary that was passed to “applyWithExtent:inputs:arguments:error:“. - outputRect: the output `CGRect` that processor will be asked to output. - Returns: An array of “CIVector“ that specify tile regions of the `inputIndex`'th input that is required for the above `outputRect` Each region tile in the array is a created by calling “/CIVector/vectorWithCGRect:/“ The tiles may overlap but should fully cover the area of 'input' that is needed. If a processor has multiple inputs, then each input should return the same number of region tiles.

func CIImageProcessorKernelSynchronizeInputs

func CIImageProcessorKernelSynchronizeInputs() bool

Override this class property to return false if you want your processor to be given input objects that have not been synchronized for CPU access. Generally, if your subclass uses the GPU your should override this method to return false. If not overridden, true is returned.

func CIKernelKernelNamesFromMetalLibraryData

func CIKernelKernelNamesFromMetalLibraryData(data *foundation.NSData) *foundation.NSArray[*foundation.NSString]

func CIKernelKernelsWithMetalStringError

func CIKernelKernelsWithMetalStringError(source *foundation.NSString) (*foundation.NSArray[*CIKernel], error)

func CIKernelKernelsWithString

func CIKernelKernelsWithString(string_ *foundation.NSString) *foundation.NSArray[*CIKernel]

func CIPlugInLoadAllPlugIns

func CIPlugInLoadAllPlugIns()

This call will scan for plugins with the extension .plugin in /Library/Graphics/Image Units ~Library/Graphics/Image Units If called more than once, newly added plug-ins will be loaded but you cannot remove a plug-in and its filters. Deprecated: since macOS 10.15.

func CIPlugInLoadNonExecutablePlugIn

func CIPlugInLoadNonExecutablePlugIn(url *foundation.NSURL)

Loads a non-executable plug-in specified by its URL. If the filters containing executable code, it will not be loaded.

func CIPlugInLoadNonExecutablePlugIns

func CIPlugInLoadNonExecutablePlugIns()

Same as loadAllPlugIns does not load filters that contain executable code. Deprecated: since macOS 10.15.

func CIPlugInLoadPlugInAllowExecutableCode

func CIPlugInLoadPlugInAllowExecutableCode(url *foundation.NSURL, allowExecutableCode bool)

Loads a plug-in specified by its URL. If allowExecutableCode is NO, filters containing executable code will not be loaded. If YES, any kind of filter will be loaded. Deprecated: since macOS 10.15.

func CIPlugInLoadPlugInAllowNonExecutable

func CIPlugInLoadPlugInAllowNonExecutable(url *foundation.NSURL, allowNonExecutable bool)

Loads a plug-in specified by its URL. Deprecated: since macOS 10.7.

func CIRAWDecoderVersion6

func CIRAWDecoderVersion6() *foundation.NSString

func CIRAWDecoderVersion6DNG

func CIRAWDecoderVersion6DNG() *foundation.NSString

func CIRAWDecoderVersion7

func CIRAWDecoderVersion7() *foundation.NSString

func CIRAWDecoderVersion7DNG

func CIRAWDecoderVersion7DNG() *foundation.NSString

func CIRAWDecoderVersion8

func CIRAWDecoderVersion8() *foundation.NSString

func CIRAWDecoderVersion8DNG

func CIRAWDecoderVersion8DNG() *foundation.NSString

func CIRAWDecoderVersion9

func CIRAWDecoderVersion9() *foundation.NSString

func CIRAWDecoderVersion9DNG

func CIRAWDecoderVersion9DNG() *foundation.NSString

func CIRAWDecoderVersionNone

func CIRAWDecoderVersionNone() *foundation.NSString

func CIRAWFilterSupportedCameraModels

func CIRAWFilterSupportedCameraModels() *foundation.NSArray[*foundation.NSString]

func KCIActiveKeys deprecated

func KCIActiveKeys() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIApplyOptionColorSpace

func KCIApplyOptionColorSpace() uintptr

func KCIApplyOptionDefinition

func KCIApplyOptionDefinition() uintptr

func KCIApplyOptionExtent

func KCIApplyOptionExtent() uintptr

func KCIApplyOptionUserInfo

func KCIApplyOptionUserInfo() uintptr

func KCIAttributeClass

func KCIAttributeClass() uintptr

Class name of the filter.

func KCIAttributeDefault

func KCIAttributeDefault() uintptr

Default value for the slider.

func KCIAttributeDescription

func KCIAttributeDescription() uintptr

Description of the filter intended for UI display (eg. localized)

func KCIAttributeDisplayName

func KCIAttributeDisplayName() uintptr

The localized name of the attribute to be used for display to the user.

func KCIAttributeFilterAvailable_Mac

func KCIAttributeFilterAvailable_Mac() uintptr

The version of OS X and iOS a filter was first available in.

func KCIAttributeFilterAvailable_iOS

func KCIAttributeFilterAvailable_iOS() uintptr

func KCIAttributeFilterCategories

func KCIAttributeFilterCategories() uintptr

Array of filter category names (see below)

func KCIAttributeFilterDisplayName

func KCIAttributeFilterDisplayName() uintptr

Name of the filter intended for UI display (eg. localized)

func KCIAttributeFilterName

func KCIAttributeFilterName() uintptr

Name of the filter

func KCIAttributeIdentity

func KCIAttributeIdentity() uintptr

The identity value is the value at which the filter has no effect.

func KCIAttributeMax

func KCIAttributeMax() uintptr

Maximum value for the attribute.

func KCIAttributeMin

func KCIAttributeMin() uintptr

Minimum value for the attribute.

func KCIAttributeName

func KCIAttributeName() uintptr

The non-localized name of the attribute.

func KCIAttributeReferenceDocumentation

func KCIAttributeReferenceDocumentation() uintptr

URL for the reference documentation of the filter. See localizedReferenceDocumentationForFilterName.

func KCIAttributeSliderMax

func KCIAttributeSliderMax() uintptr

Maximum value for the slider.

func KCIAttributeSliderMin

func KCIAttributeSliderMin() uintptr

Minimum value for the slider.

func KCIAttributeType

func KCIAttributeType() uintptr

The type of the attribute e.g. scalar, time, distance, etc.

func KCIAttributeTypeAngle

func KCIAttributeTypeAngle() uintptr

func KCIAttributeTypeBoolean

func KCIAttributeTypeBoolean() uintptr

func KCIAttributeTypeColor

func KCIAttributeTypeColor() uintptr

func KCIAttributeTypeCount

func KCIAttributeTypeCount() uintptr

Indicates that the key uses non negative integer values.

func KCIAttributeTypeDistance

func KCIAttributeTypeDistance() uintptr

func KCIAttributeTypeGradient

func KCIAttributeTypeGradient() uintptr

func KCIAttributeTypeImage

func KCIAttributeTypeImage() uintptr

func KCIAttributeTypeInteger

func KCIAttributeTypeInteger() uintptr

Indicates that the key uses integer values.

func KCIAttributeTypeOffset

func KCIAttributeTypeOffset() uintptr

func KCIAttributeTypeOpaqueColor

func KCIAttributeTypeOpaqueColor() uintptr

func KCIAttributeTypePosition

func KCIAttributeTypePosition() uintptr

func KCIAttributeTypePosition3

func KCIAttributeTypePosition3() uintptr

func KCIAttributeTypeRectangle

func KCIAttributeTypeRectangle() uintptr

func KCIAttributeTypeScalar

func KCIAttributeTypeScalar() uintptr

func KCIAttributeTypeTime

func KCIAttributeTypeTime() uintptr

func KCIAttributeTypeTransform

func KCIAttributeTypeTransform() uintptr

func KCICategoryBlur

func KCICategoryBlur() uintptr

func KCICategoryBuiltIn

func KCICategoryBuiltIn() uintptr

func KCICategoryColorAdjustment

func KCICategoryColorAdjustment() uintptr

func KCICategoryColorEffect

func KCICategoryColorEffect() uintptr

func KCICategoryCompositeOperation

func KCICategoryCompositeOperation() uintptr

func KCICategoryDistortionEffect

func KCICategoryDistortionEffect() uintptr

func KCICategoryFilterGenerator

func KCICategoryFilterGenerator() uintptr

func KCICategoryGenerator

func KCICategoryGenerator() uintptr

func KCICategoryGeometryAdjustment

func KCICategoryGeometryAdjustment() uintptr

func KCICategoryGradient

func KCICategoryGradient() uintptr

func KCICategoryHalftoneEffect

func KCICategoryHalftoneEffect() uintptr

func KCICategoryHighDynamicRange

func KCICategoryHighDynamicRange() uintptr

func KCICategoryInterlaced

func KCICategoryInterlaced() uintptr

func KCICategoryNonSquarePixels

func KCICategoryNonSquarePixels() uintptr

func KCICategoryReduction

func KCICategoryReduction() uintptr

func KCICategorySharpen

func KCICategorySharpen() uintptr

func KCICategoryStillImage

func KCICategoryStillImage() uintptr

func KCICategoryStylize

func KCICategoryStylize() uintptr

func KCICategoryTileEffect

func KCICategoryTileEffect() uintptr

func KCICategoryTransition

func KCICategoryTransition() uintptr

func KCICategoryVideo

func KCICategoryVideo() uintptr

func KCIContextAllowLowPower

func KCIContextAllowLowPower() uintptr

A Boolean value to control the power level of Core Image context renders. This option only affects certain macOS devices with more than one available GPU device. If this value is True, then rendering with the context will use a use allow power GPU device if available and the high power device is not already in use. Otherwise, the context will use the highest power/performance GPU device.

func KCIContextCVMetalTextureCache

func KCIContextCVMetalTextureCache() uintptr

A Core Video Metal texture cache object to improve the performance of Core Image context renders that use Core Video pixel buffers. Creating a Core Image context with this optional `CVMetalTextureCache` can improve the performance of creating a Metal texture from a `CVPixelBuffer`. It is recommended to specify this option if the context renders to or from pixel buffers that come from a `CVPixelBufferPool`. It is the client's responsibility to flush the cache when appropriate.

func KCIContextCacheIntermediates

func KCIContextCacheIntermediates() uintptr

A Boolean value to control how a Core Image context caches the contents of any intermediate image buffers it uses during rendering. If a context caches intermediate buffers, then subsequent renders of a similar image using the same context may be able to render faster. If a context does not cache intermediate buffers, then it may use less memory. If the value for this option is: * True: The context will cache intermediate results for future renders using the same context. * False: The context will not cache intermediate results. * Not specified: the default behavior True. > Note: > * This option does affect how “/CIImage/imageByInsertingIntermediate“ behaves. > * This option does not affect how “/CIImage/imageByInsertingIntermediate:“ behaves.

func KCIContextHighQualityDownsample

func KCIContextHighQualityDownsample() uintptr

A Boolean value to control the quality of image downsampling operations performed by the Core Image context. The higher quality behavior performs downsampling operations in multiple passes in order to reduce aliasing artifacts. The lower quality behavior performs downsampling operations a single pass in order to improve performance. If the value for this option is: * True: The higher quality behavior will be used. * False: The lower quality behavior will be used. * Not specified: the default behavior is True on macOS and False on other platforms. > Note: > * This option does affect how “/CIImage/imageByApplyingTransform:“ operations are performed by the context. > * This option does not affect how “/CIImage/imageByApplyingTransform:highQualityDownsample:“ behaves.

func KCIContextMemoryLimit

func KCIContextMemoryLimit() uintptr

A number value to control the maximum memory in megabytes that the context allocates for render tasks. Larger values could increase memory footprint while smaller values could reduce performance.

func KCIContextName

func KCIContextName() uintptr

A Boolean value to specify a client-provided name for a context. This name will be used in QuickLook graphs and the output of CI_PRINT_TREE.

func KCIContextOutputColorSpace

func KCIContextOutputColorSpace() *foundation.NSString

A Core Image context option key to specify the default destination color space for rendering. This option only affects how Core Image renders using the following methods: * “/CIContext/createCGImage:fromRect:“ * “/CIContext/drawImage:atPoint:fromRect:“ * “/CIContext/drawImage:inRect:fromRect:“ With all other render methods, the destination color space is either specified as a parameter or can be determined from the object being rendered to. The value of this option can be either: * A `CGColorSpace` instance with an RGB or monochrome color model that supports output. * An `NSNull` instance to indicate that the context should not match from the working space to the destination. If this option is not specified, then the default output space is sRGB.

func KCIContextOutputPremultiplied

func KCIContextOutputPremultiplied() uintptr

A Boolean value to control how a Core Image context render produces alpha-premultiplied pixels. This option only affects how a context is rendered when using methods where the destination's alpha mode cannot be determined such as: * “/CIContext/render:toBitmap:rowBytes:bounds:format:colorSpace:“ * “/CIContext/render:toCVPixelBuffer:“ * “/CIContext/render:toIOSurface:bounds:colorSpace:“ * “/CIContext/render:toMTLTexture:commandBuffer:bounds:colorSpace:“ * “/CIContext/createCGImage:fromRect:“ If the value for this option is: * True: The output will produce alpha-premultiplied pixels. * False: The output will produce un-premultiplied pixels. * Not specified: the default behavior True. This option does not affect how a context is rendered to a “CIRenderDestination“ because that API allows you to set or override the alpha behavior using “/CIRenderDestination/alphaMode“.

func KCIContextPriorityRequestLow

func KCIContextPriorityRequestLow() uintptr

A Boolean value to control the priority Core Image context renders. If this value is True, then rendering with the context from a background thread takes lower priority than other GPU usage from the main thread. This allows your app to perform Core Image rendering without disturbing the frame rate of UI animations.

func KCIContextUseSoftwareRenderer

func KCIContextUseSoftwareRenderer() *foundation.NSString

A Boolean value to control if a Core Image context will use a software renderer. > Note: This option has no effect if the platform does not support OpenCL.

func KCIContextWorkingColorSpace

func KCIContextWorkingColorSpace() *foundation.NSString

A Core Image context option key to specify the working color space for rendering. Contexts support automatic color management by performing all processing operations in a working color space. This means that unless told otherwise: * All input images are color matched from the input's color space to the working space. * All renders are color matched from the working space to the destination's color space. The default working space is the extended sRGB color space with linear gamma. On macOS before 10.10, the default is extended Generic RGB with linear gamma. The value of this option can be either: * A `CGColorSpace` instance with an RGB color model that supports output. * An `NSNull` instance to request that Core Image perform no color management. If this option is not specified, then the default working space is used.

func KCIContextWorkingFormat

func KCIContextWorkingFormat() uintptr

A Core Image context option key to specify the pixel format to for intermediate results when rendering. The value for this key is an `NSNumber` instance containing a “CIFormat“ value. The supported values for the working pixel format are: “CIFormat“ | Notes ------------------- | -------------- “kCIFormatRGBA8“ | Uses less memory but has less precision an range “kCIFormatRGBAh“ | Uses 8 bytes per pixel, supports HDR “kCIFormatRGBAf“ | Only on macOS If this option is not specified, then the default is “kCIFormatRGBAh“. (The default is “kCIFormatRGBA8“ if your if app is linked against iOS 12 SDK or earlier.)

func KCIDynamicRangeConstrainedHigh

func KCIDynamicRangeConstrainedHigh() uintptr

Use extended dynamic range, but brightness is modulated to optimize for co-existence with other composited content. For best results, images should contain `contentAverageLightLevel` metadata.

func KCIDynamicRangeHigh

func KCIDynamicRangeHigh() uintptr

Use High dynamic range. The provides the best HDR quality and needs to be reserved for situations where the user is focused on the media, such as larger views in an image editing/viewing app, or annotating/drawing with HDR colors

func KCIDynamicRangeStandard

func KCIDynamicRangeStandard() uintptr

Use Standard dynamic range. Images with `contentHeadroom` metadata will be tone mapped to a maximum pixel value of 1.0.

func KCIFilterGeneratorExportedKey

func KCIFilterGeneratorExportedKey() uintptr

The key of the target object that is exported

func KCIFilterGeneratorExportedKeyName

func KCIFilterGeneratorExportedKeyName() uintptr

Name of the key under which it is exported.

func KCIFilterGeneratorExportedKeyTargetObject

func KCIFilterGeneratorExportedKeyTargetObject() uintptr

Target object for the exported key

func KCIFormatA8

func KCIFormatA8() int

func KCIFormatA16

func KCIFormatA16() int

func KCIFormatABGR8

func KCIFormatABGR8() int

func KCIFormatARGB8

func KCIFormatARGB8() int

func KCIFormatAf

func KCIFormatAf() int

func KCIFormatAh

func KCIFormatAh() int

func KCIFormatBGRA8

func KCIFormatBGRA8() int

func KCIFormatL8

func KCIFormatL8() int

func KCIFormatL16

func KCIFormatL16() int

func KCIFormatLA8

func KCIFormatLA8() int

func KCIFormatLA16

func KCIFormatLA16() int

func KCIFormatLAf

func KCIFormatLAf() int

func KCIFormatLAh

func KCIFormatLAh() int

func KCIFormatLf

func KCIFormatLf() int

func KCIFormatLh

func KCIFormatLh() int

func KCIFormatR8

func KCIFormatR8() int

func KCIFormatR16

func KCIFormatR16() int

func KCIFormatRG8

func KCIFormatRG8() int

func KCIFormatRG16

func KCIFormatRG16() int

func KCIFormatRGB10

func KCIFormatRGB10() int

func KCIFormatRGBA8

func KCIFormatRGBA8() int

func KCIFormatRGBA16

func KCIFormatRGBA16() int

func KCIFormatRGBAf

func KCIFormatRGBAf() int

func KCIFormatRGBAh

func KCIFormatRGBAh() int

func KCIFormatRGBX8

func KCIFormatRGBX8() int

func KCIFormatRGBX16

func KCIFormatRGBX16() int

func KCIFormatRGBXf

func KCIFormatRGBXf() int

func KCIFormatRGBXh

func KCIFormatRGBXh() int

func KCIFormatRGf

func KCIFormatRGf() int

func KCIFormatRGh

func KCIFormatRGh() int

func KCIFormatRf

func KCIFormatRf() int

func KCIFormatRh

func KCIFormatRh() int

func KCIImageApplyCleanAperture

func KCIImageApplyCleanAperture() uintptr

A Boolean value to control whether an image created with a CVPixelBuffer or an IOSurface should be cropped and offset according clean aperture attachments. For a `CVPixelBuffer` this will use `kCVImageBufferPreferredCleanApertureKey` or `kCVImageBufferCleanApertureKey`. If the value for this option is: * True: then image will be cropped and offset to the clean aperture. * False: then the full image is returned. * “CIVector“ : then use it as a `CGRect` to crop and offset. * Not specified : then it will behave as if False was specified.

func KCIImageApplyOrientationProperty

func KCIImageApplyOrientationProperty() uintptr

func KCIImageAutoAdjustCrop

func KCIImageAutoAdjustCrop() uintptr

func KCIImageAutoAdjustEnhance

func KCIImageAutoAdjustEnhance() uintptr

func KCIImageAutoAdjustFeatures

func KCIImageAutoAdjustFeatures() uintptr

func KCIImageAutoAdjustLevel

func KCIImageAutoAdjustLevel() uintptr

func KCIImageAutoAdjustRedEye

func KCIImageAutoAdjustRedEye() uintptr

func KCIImageAuxiliaryDepth

func KCIImageAuxiliaryDepth() uintptr

func KCIImageAuxiliaryDisparity

func KCIImageAuxiliaryDisparity() uintptr

func KCIImageAuxiliaryHDRGainMap

func KCIImageAuxiliaryHDRGainMap() uintptr

func KCIImageAuxiliaryPortraitEffectsMatte

func KCIImageAuxiliaryPortraitEffectsMatte() uintptr

func KCIImageAuxiliarySemanticSegmentationGlassesMatte

func KCIImageAuxiliarySemanticSegmentationGlassesMatte() uintptr

func KCIImageAuxiliarySemanticSegmentationHairMatte

func KCIImageAuxiliarySemanticSegmentationHairMatte() uintptr

func KCIImageAuxiliarySemanticSegmentationSkinMatte

func KCIImageAuxiliarySemanticSegmentationSkinMatte() uintptr

func KCIImageAuxiliarySemanticSegmentationSkyMatte

func KCIImageAuxiliarySemanticSegmentationSkyMatte() uintptr

func KCIImageAuxiliarySemanticSegmentationTeethMatte

func KCIImageAuxiliarySemanticSegmentationTeethMatte() uintptr

func KCIImageCacheImmediately

func KCIImageCacheImmediately() *foundation.NSString

func KCIImageColorSpace

func KCIImageColorSpace() *foundation.NSString

func KCIImageContentAverageLightLevel

func KCIImageContentAverageLightLevel() uintptr

A value for overriding the automatic behavior of the Content Average Light Level property when creating an image. The value for this key should be an `NSNumber` instance.

func KCIImageContentHeadroom

func KCIImageContentHeadroom() uintptr

A value for overriding the automatic behavior of the Content Headroom property when creating an image. The value for this key should be an `NSNumber` instance.

func KCIImageExpandToHDR

func KCIImageExpandToHDR() uintptr

func KCIImageNearestSampling

func KCIImageNearestSampling() uintptr

func KCIImageProperties

func KCIImageProperties() uintptr

func KCIImageProviderTileSize

func KCIImageProviderTileSize() uintptr

Specifies the tile size that the Provide Image Data method will be called for. This key and its value may be passed to: * “/CIImage/imageWithImageProvider:size::format:colorSpace:options:“ * “/CIImage/initWithImageProvider:size::format:colorSpace:options:“ If the value of this key is: Value | Behavior of sub-rect passed to “provideImageData:bytesPerRow:origin::size::userData:“ -------------------------- | ---------------------------- Not specified | the entire image `NSNumber` | square tiles of size x size `NSArray` with 2 numbers | rectangular tiles of width x height. “CIVector“ with 2 values | rectangular tiles of width x height. `NSNull` | can be called for any possible origin and size.

func KCIImageProviderUserInfo

func KCIImageProviderUserInfo() uintptr

A key for any data needed by the image provider object. The associated value is an object that contains the needed data. This key and its value may be passed to: * “/CIImage/imageWithImageProvider:size::format:colorSpace:options:“ * “/CIImage/initWithImageProvider:size::format:colorSpace:options:“ The value object is retained until the image is deallocated.

func KCIImageRepresentationAVDepthData

func KCIImageRepresentationAVDepthData() uintptr

An optional key and value to save additional depth channel information to a JPEG or HEIF representations. The value for this key needs to be an `AVDepthData` instance.

func KCIImageRepresentationAVPortraitEffectsMatte

func KCIImageRepresentationAVPortraitEffectsMatte() uintptr

An optional key and value to save a portrait matte channel information to a JPEG or HEIF. The value for this key needs to be a an `AVPortraitEffectsMatte` instance.

func KCIImageRepresentationAVSemanticSegmentationMattes

func KCIImageRepresentationAVSemanticSegmentationMattes() uintptr

An optional key and value to save one or more segmentation matte channels to a JPEG or HEIF. The value for this key needs to be an array of AVSemanticSegmentationMatte instances.

func KCIImageRepresentationDepthImage

func KCIImageRepresentationDepthImage() uintptr

An optional key and value to save additional depth channel information to a JPEG or HEIF. The value for this key needs to be a monochrome depth “CIImage“ instance.

func KCIImageRepresentationDisparityImage

func KCIImageRepresentationDisparityImage() uintptr

An optional key and value to save additional depth channel information to a JPEG or HEIF. The value for this key needs to be a monochrome disparity “CIImage“ instance.

func KCIImageRepresentationHDRGainMapAsRGB

func KCIImageRepresentationHDRGainMapAsRGB() uintptr

An optional key and value to request the gain map channel to be color instead of monochrome. This key affects how the gain map image is calculated from the SDR receiver and the “kCIImageRepresentationHDRImage“ image value. The value for this is a Boolean where: * True: the gain map is created as a color ratio between the HDR and SDR images. * False: the gain map is created as a brightness ratio between the HDR and SDR images. * Not specified: the default behavior False.

func KCIImageRepresentationHDRGainMapImage

func KCIImageRepresentationHDRGainMapImage() uintptr

An optional key and value to save a gain map channel to a JPEG or HEIF. The value for this key needs to be a monochrome “CIImage“ instance. If the “kCIImageRepresentationHDRGainMapAsRGB“ option it true, then it needs to be an RGB “CIImage“ instance. The “/CIImage/properties“ should contain metadata information equivalent to what is returned when initializing an image using “kCIImageAuxiliaryHDRGainMap“.

func KCIImageRepresentationHDRImage

func KCIImageRepresentationHDRImage() uintptr

An optional key and value to save a HDR image using the gain map channel to a JPEG or HEIF. The value for this key needs to be a HDR CIImage instance. When provided, Core Image will calculate a gain map auxiliary image from the ratio of the HDR image to the primary SDR image. If the the HDR “CIImage“ instance has a “/CIImage/contentHeadroom“ property, then that will be used when calculating the HDRGainMap image and metadata.

func KCIImageRepresentationPortraitEffectsMatteImage

func KCIImageRepresentationPortraitEffectsMatteImage() uintptr

An optional key and value to save a portrait matte channel to a JPEG or HEIF. The value for this key needs to be a portrait matte “CIImage“ instance where black pixels represent the background region and white pixels represent the primary people in the image. The image will be converted to monochrome before it is saved to the JPEG or HEIF.

func KCIImageRepresentationSemanticSegmentationGlassesMatteImage

func KCIImageRepresentationSemanticSegmentationGlassesMatteImage() uintptr

An optional key and value to save a skin segmentation channel to a JPEG or HEIF. The value for this key needs to be a “CIImage“ instance where white pixels represent the areas where a person's glasses are found in the image. The image will be converted to monochrome before it is saved to the JPEG or HEIF.

func KCIImageRepresentationSemanticSegmentationHairMatteImage

func KCIImageRepresentationSemanticSegmentationHairMatteImage() uintptr

An optional key and value to save a skin segmentation channel to a JPEG or HEIF. The value for this key needs to be a “CIImage“ instance where white pixels represent the areas of person's head and facial hair are found in the image. The image will be converted to monochrome before it is saved to the JPEG or HEIF.

func KCIImageRepresentationSemanticSegmentationSkinMatteImage

func KCIImageRepresentationSemanticSegmentationSkinMatteImage() uintptr

An optional key and value to save a skin segmentation channel to a JPEG or HEIF. The value for this key needs to be a “CIImage“ instance where white pixels represent the areas of person's skin are found in the image. The image will be converted to monochrome before it is saved to the JPEG or HEIF.

func KCIImageRepresentationSemanticSegmentationSkyMatteImage

func KCIImageRepresentationSemanticSegmentationSkyMatteImage() uintptr

An optional key and value to save a skin segmentation channel to a JPEG or HEIF. The value for this key needs to be a “CIImage“ instance where white pixels represent the areas where a person's skin are found in the image. The image will be converted to monochrome before it is saved to the JPEG or HEIF.

func KCIImageRepresentationSemanticSegmentationTeethMatteImage

func KCIImageRepresentationSemanticSegmentationTeethMatteImage() uintptr

An optional key and value to save a skin segmentation channel to a JPEG or HEIF. The value for this key needs to be a “CIImage“ instance where white pixels represent the areas where a person's teeth are found in the image. The image will be converted to monochrome before it is saved to the JPEG or HEIF.

func KCIImageTextureFormat

func KCIImageTextureFormat() uintptr

func KCIImageTextureTarget

func KCIImageTextureTarget() uintptr

func KCIImageToneMapHDRtoSDR

func KCIImageToneMapHDRtoSDR() uintptr

func KCIInputAllowDraftModeKey deprecated

func KCIInputAllowDraftModeKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputAmountKey

func KCIInputAmountKey() uintptr

A key to get or set the scalar amount value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputAngleKey

func KCIInputAngleKey() uintptr

A key to get or set the geometric angle value of a Core Image filter. Typically the angle is in radians. The value for this key needs to be an `NSNumber` instance.

func KCIInputAspectRatioKey

func KCIInputAspectRatioKey() uintptr

A key to get or set the geometric aspect ratio value of a Core Image filter. The value for this key needs to be an `NSNumber` instance containing the `horizontal/vertical` scale ratio .

func KCIInputBackgroundImageKey

func KCIInputBackgroundImageKey() uintptr

A key to get or set the background image of a Core Image filter. The value for this key needs to be a “CIImage“ instance.

func KCIInputBacksideImageKey

func KCIInputBacksideImageKey() uintptr

A key to get or set the backside image for a transition Core Image filter. The value for this key needs to be a “CIImage“ instance.

func KCIInputBaselineExposureKey deprecated

func KCIInputBaselineExposureKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputBiasKey

func KCIInputBiasKey() uintptr

A key to get or set the scalar bias value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputBiasVectorKey

func KCIInputBiasVectorKey() uintptr

A key to get or set the vector bias value of a Core Image filter. The value for this key needs to be a “CIVector“ instance.

func KCIInputBoostKey deprecated

func KCIInputBoostKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputBoostShadowAmountKey deprecated

func KCIInputBoostShadowAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputBrightnessKey

func KCIInputBrightnessKey() uintptr

A key to get or set the scalar brightness value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputCenterKey

func KCIInputCenterKey() uintptr

A key to get or set the center value of a Core Image filter. The value for this key needs to be a “CIVector“ instance containing the `x,y` coordinate.

func KCIInputColor0Key

func KCIInputColor0Key() uintptr

A key to get or set a color value of a Core Image filter. The value for this key needs to be a “CIColor“ instance.

func KCIInputColor1Key

func KCIInputColor1Key() uintptr

A key to get or set a color value of a Core Image filter. The value for this key needs to be a “CIColor“ instance.

func KCIInputColorKey

func KCIInputColorKey() uintptr

A key to get or set the color value of a Core Image filter. The value for this key needs to be a “CIColor“ instance.

func KCIInputColorNoiseReductionAmountKey deprecated

func KCIInputColorNoiseReductionAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputColorSpaceKey

func KCIInputColorSpaceKey() uintptr

A key to get or set a color space value of a Core Image filter. The value for this key needs to be a `CGColorSpace` instance.

func KCIInputContrastKey

func KCIInputContrastKey() uintptr

A key to get or set the scalar contrast value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputCountKey

func KCIInputCountKey() uintptr

A key to get or set the scalar count value of a Core Image filter. The value for this key needs to be an integer `NSNumber` instance.

func KCIInputDecoderVersionKey deprecated

func KCIInputDecoderVersionKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputDepthImageKey

func KCIInputDepthImageKey() uintptr

A key to get or set the depth map image of a Core Image filter. The value for this key needs to be a “CIImage“ instance.

func KCIInputDisableGamutMapKey deprecated

func KCIInputDisableGamutMapKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputDisparityImageKey

func KCIInputDisparityImageKey() uintptr

A key to get or set the disparity map image of a Core Image filter. The value for this key needs to be a “CIImage“ instance.

func KCIInputEVKey

func KCIInputEVKey() uintptr

A key to get or set the scalar EV value of a Core Image filter that specifies how many F-stops brighter or darker to make the image. The value for this key needs to be an `NSNumber` instance.

func KCIInputEnableChromaticNoiseTrackingKey deprecated

func KCIInputEnableChromaticNoiseTrackingKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputEnableEDRModeKey deprecated

func KCIInputEnableEDRModeKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputEnableSharpeningKey deprecated

func KCIInputEnableSharpeningKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputEnableVendorLensCorrectionKey deprecated

func KCIInputEnableVendorLensCorrectionKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputExtentKey

func KCIInputExtentKey() uintptr

A key to get or set the vector extent value of a Core Image filterthat defines the extent of the effect. The value for this key needs to be a “CIVector“ instance.

func KCIInputExtrapolateKey

func KCIInputExtrapolateKey() uintptr

A key to get or set the boolean behavior of a Core Image filter that specifies if the filter should extrapolate a table beyond the defined range. The value for this key needs to be an `NSNumber` instance.

func KCIInputGradientImageKey

func KCIInputGradientImageKey() uintptr

A key to get or set the gradient map image of a Core Image filter that maps luminance to a color with alpha. The value for this key needs to be a 1 pixel tall “CIImage“ instance.

func KCIInputIgnoreImageOrientationKey deprecated

func KCIInputIgnoreImageOrientationKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputImageKey

func KCIInputImageKey() uintptr

A key to get or set the input image of a Core Image filter. The value for this key needs to be a “CIImage“ instance. For filters that also use a background image, this key refers to the foreground image.

func KCIInputImageOrientationKey deprecated

func KCIInputImageOrientationKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputIntensityKey

func KCIInputIntensityKey() uintptr

A key to get or set the scalar intensity value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputLinearSpaceFilter deprecated

func KCIInputLinearSpaceFilter() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputLocalToneMapAmountKey deprecated

func KCIInputLocalToneMapAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputLuminanceNoiseReductionAmountKey deprecated

func KCIInputLuminanceNoiseReductionAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputMaskImageKey

func KCIInputMaskImageKey() uintptr

A key to get or set the mask image of a Core Image filter. The value for this key needs to be a “CIImage“ instance.

func KCIInputMatteImageKey

func KCIInputMatteImageKey() uintptr

A key to get or set the matte image of a Core Image filter. The value for this key needs to be a “CIImage“ instance.

func KCIInputMoireAmountKey deprecated

func KCIInputMoireAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNeutralChromaticityXKey deprecated

func KCIInputNeutralChromaticityXKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNeutralChromaticityYKey deprecated

func KCIInputNeutralChromaticityYKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNeutralLocationKey deprecated

func KCIInputNeutralLocationKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNeutralTemperatureKey deprecated

func KCIInputNeutralTemperatureKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNeutralTintKey deprecated

func KCIInputNeutralTintKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNoiseReductionAmountKey deprecated

func KCIInputNoiseReductionAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNoiseReductionContrastAmountKey deprecated

func KCIInputNoiseReductionContrastAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNoiseReductionDetailAmountKey deprecated

func KCIInputNoiseReductionDetailAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputNoiseReductionSharpnessAmountKey deprecated

func KCIInputNoiseReductionSharpnessAmountKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputPaletteImageKey

func KCIInputPaletteImageKey() uintptr

A key to get or set the palette image for a Core Image filter. The value for this key needs to be a 1 pixel tall “CIImage“ instance.

func KCIInputPerceptualKey

func KCIInputPerceptualKey() uintptr

A key to get or set the boolean behavior of a Core Image filter that specifies if the filter should operate in linear or perceptual colors. The value for this key needs to be an `NSNumber` instance.

func KCIInputPoint0Key

func KCIInputPoint0Key() uintptr

A key to get or set the coordinate value of a Core Image filter. The value for this key needs to be a “CIVector“ instance containing the `x,y` coordinate.

func KCIInputPoint1Key

func KCIInputPoint1Key() uintptr

A key to get or set a coordinate value of a Core Image filter. The value for this key needs to be a “CIVector“ instance containing the `x,y` coordinate.

func KCIInputRadius0Key

func KCIInputRadius0Key() uintptr

A key to get or set the geometric radius value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputRadius1Key

func KCIInputRadius1Key() uintptr

A key to get or set the geometric radius value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputRadiusKey

func KCIInputRadiusKey() uintptr

A key to get or set the geometric radius value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputRefractionKey

func KCIInputRefractionKey() uintptr

A key to get or set the scalar optical refraction value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputSaturationKey

func KCIInputSaturationKey() uintptr

A key to get or set the scalar saturation value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputScaleFactorKey deprecated

func KCIInputScaleFactorKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIInputScaleKey

func KCIInputScaleKey() uintptr

A key to get or set the geometric scale value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputShadingImageKey

func KCIInputShadingImageKey() uintptr

A key to get or set the environment map image of a Core Image filter that maps normal directions to a color with alpha. The value for this key needs to be a “CIImage“ instance.

func KCIInputSharpnessKey

func KCIInputSharpnessKey() uintptr

A key to get or set the scalar sharpness value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputTargetImageKey

func KCIInputTargetImageKey() uintptr

A key to get or set the target image for a transition Core Image filter. The value for this key needs to be a “CIImage“ instance.

func KCIInputThresholdKey

func KCIInputThresholdKey() uintptr

A key to get or set the scalar threshold value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputTimeKey

func KCIInputTimeKey() uintptr

A key to get or set the scalar time value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIInputTransformKey

func KCIInputTransformKey() uintptr

A key to get or set the geometric 2x3 matrix transform value of a Core Image filter. The value for this key needs to be an `NSAffineTransformStruct` or an `NSValue` instance.

func KCIInputVersionKey

func KCIInputVersionKey() uintptr

A key to get or set a coordinate value of a Core Image filter. The value for this key needs to be a “CIVector“ instance containing the `x,y` coordinate.

func KCIInputWeightsKey

func KCIInputWeightsKey() uintptr

A key to get or set the vector weights value of a convolution Core Image filter. The value for this key needs to be a “CIVector“ instance.

func KCIInputWidthKey

func KCIInputWidthKey() uintptr

A key to get or set the geometric width value of a Core Image filter. The value for this key needs to be an `NSNumber` instance.

func KCIOutputImageKey

func KCIOutputImageKey() uintptr

A key to get the output image of a Core Image filter. The value for this key will be a “CIImage“ instance.

func KCIOutputNativeSizeKey deprecated

func KCIOutputNativeSizeKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIPropertiesKey deprecated

func KCIPropertiesKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCISamplerAffineMatrix

func KCISamplerAffineMatrix() uintptr

func KCISamplerColorSpace

func KCISamplerColorSpace() uintptr

func KCISamplerFilterLinear

func KCISamplerFilterLinear() uintptr

func KCISamplerFilterMode

func KCISamplerFilterMode() uintptr

func KCISamplerFilterNearest

func KCISamplerFilterNearest() uintptr

func KCISamplerWrapBlack

func KCISamplerWrapBlack() uintptr

func KCISamplerWrapClamp

func KCISamplerWrapClamp() uintptr

func KCISamplerWrapMode

func KCISamplerWrapMode() uintptr

func KCISupportedDecoderVersionsKey deprecated

func KCISupportedDecoderVersionsKey() *foundation.NSString

Deprecated: Use new CIRAWFilter class instead.

func KCIUIParameterSet

func KCIUIParameterSet() uintptr

Key to request the desired set of controls in a filter UIView. The defined values for this key are: CIUISetBasic, CIUISetIntermediate, CIUISetAdvanced and CIUISetDevelopment.

func KCIUISetAdvanced

func KCIUISetAdvanced() uintptr

Constant for requesting controls that are appropriate in an advanced user scenario.

func KCIUISetBasic

func KCIUISetBasic() uintptr

Constant for requesting controls that are appropriate in a basic user scenario, meaning the bare minimum of settings to control the filter.

func KCIUISetDevelopment

func KCIUISetDevelopment() uintptr

Constant for requesting controls that should only be visible for development purposes.

func KCIUISetIntermediate

func KCIUISetIntermediate() uintptr

Constant for requesting controls that are appropriate in an intermediate user scenario.

Types

type Acl_entry_id_t

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

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

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

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

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

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

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

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

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

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CGLCPContextPriorityRequest

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

func (CGLCPContextPriorityRequest) String

type CIAztecCodeDescriptor

type CIAztecCodeDescriptor struct {
	CIBarcodeDescriptor
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor

func CIAztecCodeDescriptorDescriptorWithPayloadIsCompactLayerCountDataCodewordCount

func CIAztecCodeDescriptorDescriptorWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload *foundation.NSData, isCompact bool, layerCount int, dataCodewordCount int) *CIAztecCodeDescriptor

Creates an Aztec code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the Aztec code symbol. - isCompact: A Boolean indicating whether or not the Aztec code is compact. - layerCount: The number of layers in the Aztec code, from 1 to 32. - dataCodewordCount: The number of codewords in the Aztec code, from 1 to 2048. - Returns: An autoreleased “CIAztecCodeDescriptor“ instance or `nil` if the parameters are invalid

func CIAztecCodeDescriptorFromID

func CIAztecCodeDescriptorFromID(id objc.ID) *CIAztecCodeDescriptor

func (*CIAztecCodeDescriptor) DataCodewordCount

func (o *CIAztecCodeDescriptor) DataCodewordCount() int

The number of non-error-correction codewords carried by the Aztec code symbol. Used to determine the level of error correction in conjunction with the number of data layers. Valid values are 1 to 2048. Compact symbols can have up to 64 message codewords. > Note: this value can exceed the number of message codewords allowed by the number of data layers in this symbol. In this case, the actual number of message codewords is 1024 fewer than this value and the message payload is to be interpreted in an application-defined manner.

func (*CIAztecCodeDescriptor) ErrorCorrectedPayload

func (o *CIAztecCodeDescriptor) ErrorCorrectedPayload() *foundation.NSData

The error-corrected payload that comprises the the Aztec code symbol. Aztec Codes are formally specified in ISO/IEC 24778:2008(E). The error corrected payload consists of the 6-, 8-, 10-, or 12-bit message codewords produced at the end of the step described in section 7.3.1.2 "Formation of data codewords", which exists immediately prior to adding error correction. These codewords have dummy bits inserted to ensure that an entire codeword isn't all 0's or all 1's. Clients will need to remove these extra bits as part of interpreting the payload.

func (*CIAztecCodeDescriptor) InitWithPayloadIsCompactLayerCountDataCodewordCount

func (o *CIAztecCodeDescriptor) InitWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload *foundation.NSData, isCompact bool, layerCount int, dataCodewordCount int) *CIAztecCodeDescriptor

Initializes an Aztec code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the Aztec code symbol. - isCompact: A Boolean indicating whether or not the Aztec code is compact. - layerCount: The number of layers in the Aztec code, from 1 to 32. - dataCodewordCount: The number of codewords in the Aztec code, from 1 to 2048. - Returns: An initialized “CIAztecCodeDescriptor“ instance or `nil` if the parameters are invalid

func (*CIAztecCodeDescriptor) IsCompact

func (o *CIAztecCodeDescriptor) IsCompact() bool

A Boolean value telling if the Aztec code is compact. Compact Aztec symbols use one-fewer ring in the central finder pattern than full-range Aztec symbols of the same number of data layers.

func (*CIAztecCodeDescriptor) LayerCount

func (o *CIAztecCodeDescriptor) LayerCount() int

The number of data layers in the Aztec code symbol. Combined with “isCompact-property“, the number of data layers determines the number of modules in the Aztec Code symbol. Valid values range from 1 to 32. Compact symbols can have up to 4 data layers. The number of data layers also determines the number of bits in each data codeword of the message carried by the Aztec Code symbol.

type CIBarcodeDescriptor

type CIBarcodeDescriptor struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cibarcodedescriptor

func CIBarcodeDescriptorFromID

func CIBarcodeDescriptorFromID(id objc.ID) *CIBarcodeDescriptor

type CIBlendKernel

type CIBlendKernel struct {
	CIColorKernel
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciblendkernel

func CIBlendKernelClear

func CIBlendKernelClear() *CIBlendKernel

func CIBlendKernelColor

func CIBlendKernelColor() *CIBlendKernel

func CIBlendKernelColorBurn

func CIBlendKernelColorBurn() *CIBlendKernel

func CIBlendKernelColorDodge

func CIBlendKernelColorDodge() *CIBlendKernel

func CIBlendKernelComponentAdd

func CIBlendKernelComponentAdd() *CIBlendKernel

func CIBlendKernelComponentMax

func CIBlendKernelComponentMax() *CIBlendKernel

func CIBlendKernelComponentMin

func CIBlendKernelComponentMin() *CIBlendKernel

func CIBlendKernelComponentMultiply

func CIBlendKernelComponentMultiply() *CIBlendKernel

func CIBlendKernelDarken

func CIBlendKernelDarken() *CIBlendKernel

func CIBlendKernelDarkerColor

func CIBlendKernelDarkerColor() *CIBlendKernel

func CIBlendKernelDestination

func CIBlendKernelDestination() *CIBlendKernel

func CIBlendKernelDestinationAtop

func CIBlendKernelDestinationAtop() *CIBlendKernel

func CIBlendKernelDestinationIn

func CIBlendKernelDestinationIn() *CIBlendKernel

func CIBlendKernelDestinationOut

func CIBlendKernelDestinationOut() *CIBlendKernel

func CIBlendKernelDestinationOver

func CIBlendKernelDestinationOver() *CIBlendKernel

func CIBlendKernelDifference

func CIBlendKernelDifference() *CIBlendKernel

func CIBlendKernelDivide

func CIBlendKernelDivide() *CIBlendKernel

func CIBlendKernelExclusion

func CIBlendKernelExclusion() *CIBlendKernel

func CIBlendKernelExclusiveOr

func CIBlendKernelExclusiveOr() *CIBlendKernel

func CIBlendKernelFromID

func CIBlendKernelFromID(id objc.ID) *CIBlendKernel

func CIBlendKernelHardLight

func CIBlendKernelHardLight() *CIBlendKernel

func CIBlendKernelHardMix

func CIBlendKernelHardMix() *CIBlendKernel

func CIBlendKernelHue

func CIBlendKernelHue() *CIBlendKernel

func CIBlendKernelKernelWithString

func CIBlendKernelKernelWithString(string_ *foundation.NSString) *CIBlendKernel

func CIBlendKernelLighten

func CIBlendKernelLighten() *CIBlendKernel

func CIBlendKernelLighterColor

func CIBlendKernelLighterColor() *CIBlendKernel

func CIBlendKernelLinearBurn

func CIBlendKernelLinearBurn() *CIBlendKernel

func CIBlendKernelLinearDodge

func CIBlendKernelLinearDodge() *CIBlendKernel

func CIBlendKernelLinearLight

func CIBlendKernelLinearLight() *CIBlendKernel

func CIBlendKernelLuminosity

func CIBlendKernelLuminosity() *CIBlendKernel

func CIBlendKernelMultiply

func CIBlendKernelMultiply() *CIBlendKernel

func CIBlendKernelOverlay

func CIBlendKernelOverlay() *CIBlendKernel

func CIBlendKernelPinLight

func CIBlendKernelPinLight() *CIBlendKernel

func CIBlendKernelSaturation

func CIBlendKernelSaturation() *CIBlendKernel

func CIBlendKernelScreen

func CIBlendKernelScreen() *CIBlendKernel

func CIBlendKernelSoftLight

func CIBlendKernelSoftLight() *CIBlendKernel

func CIBlendKernelSource

func CIBlendKernelSource() *CIBlendKernel

func CIBlendKernelSourceAtop

func CIBlendKernelSourceAtop() *CIBlendKernel

func CIBlendKernelSourceIn

func CIBlendKernelSourceIn() *CIBlendKernel

func CIBlendKernelSourceOut

func CIBlendKernelSourceOut() *CIBlendKernel

func CIBlendKernelSourceOver

func CIBlendKernelSourceOver() *CIBlendKernel

func CIBlendKernelSubtract

func CIBlendKernelSubtract() *CIBlendKernel

func CIBlendKernelVividLight

func CIBlendKernelVividLight() *CIBlendKernel

func (*CIBlendKernel) ApplyWithForegroundBackground

func (o *CIBlendKernel) ApplyWithForegroundBackground(foreground *CIImage, background *CIImage) *CIImage

func (*CIBlendKernel) ApplyWithForegroundBackgroundColorSpace

func (o *CIBlendKernel) ApplyWithForegroundBackgroundColorSpace(foreground *CIImage, background *CIImage, colorSpace unsafe.Pointer) *CIImage

type CIColor

type CIColor struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cicolor

func CIColorBlackColor

func CIColorBlackColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `0,0,0` and alpha value `1`.

func CIColorBlueColor

func CIColorBlueColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `0,0,1` and alpha value `1`.

func CIColorClearColor

func CIColorClearColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `0,0,0` and alpha value `0`.

func CIColorColorWithCGColor

func CIColorColorWithCGColor(color unsafe.Pointer) *CIColor

Create a Core Image color object with a Core Graphics color object. - Returns: An autoreleased “CIColor“ instance.

func CIColorColorWithRedGreenBlue

func CIColorColorWithRedGreenBlue(red float64, green float64, blue float64) *CIColor

Create a Core Image color object in the sRGB color space with the specified red, green, and blue component values. On macOS before 10.10, the CIColor's color space will be Generic RGB. - Parameters: - red: The color's unpremultiplied red component value between 0 and 1. - green: The color's unpremultiplied green component value between 0 and 1. - blue: The color's unpremultiplied blue component value between 0 and 1. - Returns: An autoreleased “CIColor“ instance.

func CIColorColorWithRedGreenBlueAlpha

func CIColorColorWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) *CIColor

Create a Core Image color object in the sRGB color space with the specified red, green, blue, and alpha component values. On macOS before 10.10, the CIColor's color space will be Generic RGB. - Parameters: - red: The color's unpremultiplied red component value between 0 and 1. - green: The color's unpremultiplied green component value between 0 and 1. - blue: The color's unpremultiplied blue component value between 0 and 1. - alpha: The color's alpha (opacity) value between 0 and 1. - Returns: An autoreleased “CIColor“ instance.

func CIColorColorWithRedGreenBlueAlphaColorSpace

func CIColorColorWithRedGreenBlueAlphaColorSpace(red float64, green float64, blue float64, alpha float64, colorSpace unsafe.Pointer) *CIColor

Create a Core Image color object with the specified red, green, blue, and alpha component values as measured in the specified color space. This will return `null` if the `CGColorSpace` is not `kCGColorSpaceModelRGB`. The RGB values can be outside the `0...1` range if the `CGColorSpace` is unclamped. - Parameters: - red: The color's unpremultiplied red component value. - green: The color's unpremultiplied green component value. - blue: The color's unpremultiplied blue component value. - alpha: The color's alpha (opacity) value between 0 and 1. - colorSpace: The color's `CGColorSpace` which must have `kCGColorSpaceModelRGB`. - Returns: An autoreleased “CIColor“ instance.

func CIColorColorWithRedGreenBlueColorSpace

func CIColorColorWithRedGreenBlueColorSpace(red float64, green float64, blue float64, colorSpace unsafe.Pointer) *CIColor

Create a Core Image color object with the specified red, green, and blue component values as measured in the specified color space. This will return `null` if the `CGColorSpace` is not `kCGColorSpaceModelRGB`. The RGB values can be outside the `0...1` range if the `CGColorSpace` is unclamped. - Parameters: - red: The color's unpremultiplied red component value. - green: The color's unpremultiplied green component value. - blue: The color's unpremultiplied blue component value. - colorSpace: The color's `CGColorSpace` which must have `kCGColorSpaceModelRGB`. - Returns: An autoreleased “CIColor“ instance.

func CIColorColorWithString

func CIColorColorWithString(representation *foundation.NSString) *CIColor

Create a Core Image color object in the sRGB color space using a string containing the RGBA color component values. On macOS before 10.10, the CIColor's color space will be Generic RGB. - Parameters: - representation: A string that contains color and alpha float values. For example, the string: `"0.5 0.7 0.3 1.0"` indicates an RGB color whose components are 50% red, 70% green, 30% blue, and 100% opaque. If the string contains only 3 float values, the alpha component will be `1.0` If the string contains no float values, then “/CIColor/clearColor“ will be returned. - Returns: An autoreleased “CIColor“ instance.

func CIColorCyanColor

func CIColorCyanColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `0,1,1` and alpha value `1`.

func CIColorFromID

func CIColorFromID(id objc.ID) *CIColor

func CIColorGrayColor

func CIColorGrayColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `0.5,0.5,0.5` and alpha value `1`.

func CIColorGreenColor

func CIColorGreenColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `0,1,0` and alpha value `1`.

func CIColorMagentaColor

func CIColorMagentaColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `1,0,1` and alpha value `1`.

func CIColorRedColor

func CIColorRedColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `1,0,0` and alpha value `1`.

func CIColorWhiteColor

func CIColorWhiteColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `1,1,1` and alpha value `1`.

func CIColorYellowColor

func CIColorYellowColor() *CIColor

Returns a singleton Core Image color instance in the sRGB color space with RGB values `1,1,0` and alpha value `1`.

func (*CIColor) Alpha

func (o *CIColor) Alpha() float64

Returns the alpha value of the color.

func (*CIColor) Blue

func (o *CIColor) Blue() float64

Returns the unpremultiplied blue component of the color. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the green component.

func (*CIColor) ColorSpace

func (o *CIColor) ColorSpace() unsafe.Pointer

Returns the `CGColorSpace` associated with the color

func (*CIColor) Components

func (o *CIColor) Components() unsafe.Pointer

Return a pointer to an array of `CGFloat` values including alpha. Typically this array will contain `4` `CGFloat` values for red, green, blue, and alpha. If the “CIColor“ was initialized with a `CGColor` then returned pointer will be the same as calling `CGColorGetComponents()`

func (*CIColor) Green

func (o *CIColor) Green() float64

Returns the unpremultiplied green component of the color. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the green component.

func (*CIColor) InitWithCGColor

func (o *CIColor) InitWithCGColor(color unsafe.Pointer) *CIColor

Create a Core Image color object with a Core Graphics color object. - Returns: An initialized “CIColor“ instance.

func (*CIColor) InitWithRedGreenBlue

func (o *CIColor) InitWithRedGreenBlue(red float64, green float64, blue float64) *CIColor

Initialize a Core Image color object in the sRGB color space with the specified red, green, and blue component values. On macOS before 10.10, the CIColor's color space will be Generic RGB. - Parameters: - red: The color's unpremultiplied red component value between 0 and 1. - green: The color's unpremultiplied green component value between 0 and 1. - blue: The color's unpremultiplied blue component value between 0 and 1. - Returns: An initialized “CIColor“ instance.

func (*CIColor) InitWithRedGreenBlueAlpha

func (o *CIColor) InitWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) *CIColor

Initialize a Core Image color object in the sRGB color space with the specified red, green, blue, and alpha component values. On macOS before 10.10, the CIColor's color space will be Generic RGB. - Parameters: - red: The color's unpremultiplied red component value between 0 and 1. - green: The color's unpremultiplied green component value between 0 and 1. - blue: The color's unpremultiplied blue component value between 0 and 1. - alpha: The color's alpha (opacity) value between 0 and 1. - Returns: An initialized “CIColor“ instance.

func (*CIColor) InitWithRedGreenBlueAlphaColorSpace

func (o *CIColor) InitWithRedGreenBlueAlphaColorSpace(red float64, green float64, blue float64, alpha float64, colorSpace unsafe.Pointer) *CIColor

Initialize a Core Image color object with the specified red, green, and blue component values as measured in the specified color space. This will return null if the `CGColorSpace` is not `kCGColorSpaceModelRGB`. The RGB values can be outside the `0...1` range if the `CGColorSpace` is unclamped. - Parameters: - red: The color's unpremultiplied red component value. - green: The color's unpremultiplied green component value. - blue: The color's unpremultiplied blue component value. - alpha: The color's alpha (opacity) value between 0 and 1. - colorSpace: The color's `CGColorSpace` which must have `kCGColorSpaceModelRGB`. - Returns: An initialized “CIColor“ instance.

func (*CIColor) InitWithRedGreenBlueColorSpace

func (o *CIColor) InitWithRedGreenBlueColorSpace(red float64, green float64, blue float64, colorSpace unsafe.Pointer) *CIColor

Initialize a Core Image color object with the specified red, green, and blue component values as measured in the specified color space. This will return null if the `CGColorSpace` is not `kCGColorSpaceModelRGB`. The RGB values can be outside the `0...1` range if the `CGColorSpace` is unclamped. - Parameters: - red: The color's unpremultiplied red component value. - green: The color's unpremultiplied green component value. - blue: The color's unpremultiplied blue component value. - colorSpace: The color's `CGColorSpace` which must have `kCGColorSpaceModelRGB`. - Returns: An initialized “CIColor“ instance.

func (*CIColor) NumberOfComponents

func (o *CIColor) NumberOfComponents() uint

Returns the color components of the color including alpha. This number includes the alpha component if the color contains one. Typically this number will be `4` for red, green, blue, and alpha. If the “CIColor“ was initialized with a `CGColor` then the number will be the same as calling `CGColorGetNumberOfComponents()`

func (*CIColor) Red

func (o *CIColor) Red() float64

Returns the unpremultiplied red component of the color. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the red component.

func (*CIColor) StringRepresentation

func (o *CIColor) StringRepresentation() *foundation.NSString

Returns a formatted string with the unpremultiplied color and alpha components of the color. The string representation always has four components: red, green, blue, and alpha. Some example string representations of colors: `CIColor` | `stringRepresentation` ----------------------------------------------- | -------------- `[CIColor colorWithRed:0.2 green:0.4 blue:0.6]` | `"0.2 0.4 0.6 1.0"` “/CIColor/yellowColor“ | `"1.0 1.0 0.0 1.0"` To create a “CIColor“ instance from a string representation, use the “colorWithString:“ method. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the red, green, and blue components. This property is not KVO-safe because it returns a new `NSString` instance each time. The value of the `NSString` will be the same each time it is called.

type CIColorKernel

type CIColorKernel struct {
	CIKernel
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cicolorkernel

func CIColorKernelFromID

func CIColorKernelFromID(id objc.ID) *CIColorKernel

func CIColorKernelKernelWithString

func CIColorKernelKernelWithString(string_ *foundation.NSString) *CIColorKernel

func (*CIColorKernel) ApplyWithExtentArguments

func (o *CIColorKernel) ApplyWithExtentArguments(extent corefoundation.CGRect, args *foundation.NSArray[objc.ID]) *CIImage

type CIContext

type CIContext struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cicontext

func CIContextContext

func CIContextContext() *CIContext

func CIContextContextForOfflineGPUAtIndex

func CIContextContextForOfflineGPUAtIndex(index uint) *CIContext

func CIContextContextForOfflineGPUAtIndexColorSpaceOptionsSharedContext

func CIContextContextForOfflineGPUAtIndexColorSpaceOptionsSharedContext(index uint, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID], sharedContext unsafe.Pointer) *CIContext

func CIContextContextWithCGContextOptions

func CIContextContextWithCGContextOptions(cgctx unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIContext

func CIContextContextWithCGLContextPixelFormatColorSpaceOptions

func CIContextContextWithCGLContextPixelFormatColorSpaceOptions(cglctx unsafe.Pointer, pixelFormat unsafe.Pointer, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIContext

func CIContextContextWithCGLContextPixelFormatOptions

func CIContextContextWithCGLContextPixelFormatOptions(cglctx unsafe.Pointer, pixelFormat unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIContext

func CIContextContextWithMTLCommandQueue

func CIContextContextWithMTLCommandQueue(commandQueue metal.MTLCommandQueue) *CIContext

func CIContextContextWithMTLCommandQueueOptions

func CIContextContextWithMTLCommandQueueOptions(commandQueue metal.MTLCommandQueue, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIContext

func CIContextContextWithMTLDevice

func CIContextContextWithMTLDevice(device metal.MTLDevice) *CIContext

func CIContextContextWithMTLDeviceOptions

func CIContextContextWithMTLDeviceOptions(device metal.MTLDevice, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIContext

func CIContextContextWithOptions

func CIContextContextWithOptions(options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIContext

func CIContextFromID

func CIContextFromID(id objc.ID) *CIContext

func (*CIContext) CalculateHDRStatsForCGImage

func (o *CIContext) CalculateHDRStatsForCGImage(cgimage unsafe.Pointer) unsafe.Pointer

Given a Core Graphics image, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then return a new Core Graphics image that has the calculated values. - Parameters: - cgimage: An immutable `CGImage` for which to calculate statistics. - Returns: Returns a new `CGImage` instance that has the calculated statistics attached.

func (*CIContext) CalculateHDRStatsForCVPixelBuffer

func (o *CIContext) CalculateHDRStatsForCVPixelBuffer(buffer unsafe.Pointer)

Given a CVPixelBuffer, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then update the buffers's attachments to store the values. If the `CVPixelBuffer` has a Clean Aperture rectangle then only pixels within that rectangle are considered. - Parameters: - buffer: A mutable `CVPixelBuffer` for which to calculate and attach statistics.

func (*CIContext) CalculateHDRStatsForIOSurface

func (o *CIContext) CalculateHDRStatsForIOSurface(surface unsafe.Pointer)

Given an IOSurface, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then update the surface's attachments to store the values. If the `IOSurface` has a Clean Aperture rectangle then only pixels within that rectangle are considered. - Parameters: - surface: A mutable `IOSurfaceRef` for which to calculate and attach statistics.

func (*CIContext) CalculateHDRStatsForImage

func (o *CIContext) CalculateHDRStatsForImage(image *CIImage) *CIImage

Given a Core Image image, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then return a new Core Image image that has the calculated values. If the image extent is not finite, then nil will be returned. - Parameters: - image: An immutable “CIImage“ for which to calculate statistics. - Returns: Returns a new “CIImage“ instance that has the calculated statistics attached.

func (*CIContext) ClearCaches

func (o *CIContext) ClearCaches()

func (*CIContext) CreateCGImageFromRect

func (o *CIContext) CreateCGImageFromRect(image *CIImage, fromRect corefoundation.CGRect) unsafe.Pointer

Creates a Core Graphics image from a region of a Core Image image instance. The color space of the created `CGImage` will be sRGB unless the receiving “CIContext“ was created with a `kCIContextOutputColorSpace` option. Normally the pixel format of the created CGImage will be 8 bits-per-component. It will be 16 bits-per-component float if the above color space is HDR. - Parameters: - image: A “CIImage“ image instance for which to create a `CGImage`. - fromRect: The `CGRect` region of the `image` to use. This region relative to the cartesean coordinate system of `image`. This region will be intersected with integralized and intersected with `image.extent`. - Returns: Returns a new `CGImage` instance. You are responsible for releasing the returned image when you no longer need it. The returned value will be `null` if the extent is empty or too big.

func (*CIContext) CreateCGImageFromRectFormatColorSpace

func (o *CIContext) CreateCGImageFromRectFormatColorSpace(image *CIImage, fromRect corefoundation.CGRect, format int, colorSpace unsafe.Pointer) unsafe.Pointer

Creates a Core Graphics image from a region of a Core Image image instance with an option for controlling the pixel format and color space of the `CGImage`. - Parameters: - image: A “CIImage“ image instance for which to create a `CGImage`. - fromRect: The `CGRect` region of the `image` to use. This region relative to the cartesean coordinate system of `image`. This region will be intersected with integralized and intersected with `image.extent`. - format: A “CIFormat“ to specify the pixel format of the created `CGImage`. For example, if `kCIFormatRGBX16` is specified, then the created `CGImage` will be 16 bits-per-component and opaque. - colorSpace: The `CGColorSpace` for the output image. This color space must have either `CGColorSpaceModel.rgb` or `CGColorSpaceModel.monochrome` and be compatible with the specified pixel format. - Returns: Returns a new `CGImage` instance. You are responsible for releasing the returned image when you no longer need it. The returned value will be `null` if the extent is empty or too big.

func (*CIContext) CreateCGImageFromRectFormatColorSpaceDeferred

func (o *CIContext) CreateCGImageFromRectFormatColorSpaceDeferred(image *CIImage, fromRect corefoundation.CGRect, format int, colorSpace unsafe.Pointer, deferred bool) unsafe.Pointer

Creates a Core Graphics image from a region of a Core Image image instance with an option for controlling when the image is rendered. - Parameters: - image: A “CIImage“ image instance for which to create a `CGImage`. - fromRect: The `CGRect` region of the `image` to use. This region relative to the cartesean coordinate system of `image`. This region will be intersected with integralized and intersected with `image.extent`. - format: A “CIFormat“ to specify the pixel format of the created `CGImage`. For example, if `kCIFormatRGBX16` is specified, then the created `CGImage` will be 16 bits-per-component and opaque. - colorSpace: The `CGColorSpace` for the output image. This color space must have either `CGColorSpaceModel.rgb` or `CGColorSpaceModel.monochrome` and be compatible with the specified pixel format. - deferred: Controls when Core Image renders `image`. * True: rendering of `image` is deferred until the created `CGImage` rendered. * False: the `image` is rendered immediately. - Returns: Returns a new `CGImage` instance. You are responsible for releasing the returned image when you no longer need it. The returned value will be `null` if the extent is empty or too big.

func (*CIContext) CreateCGImageFromRectFormatColorSpaceDeferredCalculateHDRStats

func (o *CIContext) CreateCGImageFromRectFormatColorSpaceDeferredCalculateHDRStats(image *CIImage, fromRect corefoundation.CGRect, format int, colorSpace unsafe.Pointer, deferred bool, calculateHDRStats bool) unsafe.Pointer

Creates a Core Graphics image from a region of a Core Image image instance with an option for calculating HDR statistics. - Parameters: - image: A “CIImage“ image instance for which to create a `CGImage`. - fromRect: The `CGRect` region of the `image` to use. This region relative to the cartesean coordinate system of `image`. This region will be intersected with integralized and intersected with `image.extent`. - format: A “CIFormat“ to specify the pixel format of the created `CGImage`. For example, if `kCIFormatRGBX16` is specified, then the created `CGImage` will be 16 bits-per-component and opaque. - colorSpace: The `CGColorSpace` for the output image. This color space must have either `CGColorSpaceModel.rgb` or `CGColorSpaceModel.monochrome` and be compatible with the specified pixel format. - deferred: Controls when Core Image renders `image`. * True: rendering of `image` is deferred until the created `CGImage` rendered. * False: the `image` is rendered immediately. - calculateHDRStats: Controls if Core Image calculates HDR statistics. * True: Core Image will immediately render `image`, calculate the HDR statistics and create a `CGImage` that has the calculated values. * False: the created `CGImage` will not have any HDR statistics. - Returns: Returns a new `CGImage` instance. You are responsible for releasing the returned image when you no longer need it. The returned value will be `null` if the extent is empty or too big.

func (*CIContext) CreateCGLayerWithSizeInfo deprecated

func (o *CIContext) CreateCGLayerWithSizeInfo(size corefoundation.CGSize, info unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func (*CIContext) DepthBlurEffectFilterForImageDataOptions

func (o *CIContext) DepthBlurEffectFilterForImageDataOptions(data *foundation.NSData, options *foundation.NSDictionary[objc.ID, objc.ID]) *CIFilter

func (*CIContext) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions

func (o *CIContext) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions(image *CIImage, disparityImage *CIImage, portraitEffectsMatte *CIImage, hairSemanticSegmentation *CIImage, glassesMatte *CIImage, gainMap *CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[objc.ID, objc.ID]) *CIFilter

func (*CIContext) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions

func (o *CIContext) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions(image *CIImage, disparityImage *CIImage, portraitEffectsMatte *CIImage, hairSemanticSegmentation *CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[objc.ID, objc.ID]) *CIFilter

func (*CIContext) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions

func (o *CIContext) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions(image *CIImage, disparityImage *CIImage, portraitEffectsMatte *CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[objc.ID, objc.ID]) *CIFilter

func (*CIContext) DepthBlurEffectFilterForImageURLOptions

func (o *CIContext) DepthBlurEffectFilterForImageURLOptions(url *foundation.NSURL, options *foundation.NSDictionary[objc.ID, objc.ID]) *CIFilter

func (*CIContext) DrawImageAtPointFromRect deprecated

func (o *CIContext) DrawImageAtPointFromRect(image *CIImage, atPoint corefoundation.CGPoint, fromRect corefoundation.CGRect)

Deprecated: since macOS 10.8.

func (*CIContext) DrawImageInRectFromRect deprecated

func (o *CIContext) DrawImageInRectFromRect(image *CIImage, inRect corefoundation.CGRect, fromRect corefoundation.CGRect)

Deprecated: since macOS 10.8.

func (*CIContext) HEIF10RepresentationOfImageColorSpaceOptionsError

func (o *CIContext) HEIF10RepresentationOfImageColorSpaceOptionsError(image *CIImage, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (*foundation.NSData, error)

func (*CIContext) HEIFRepresentationOfImageFormatColorSpaceOptions

func (o *CIContext) HEIFRepresentationOfImageFormatColorSpaceOptions(image *CIImage, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *foundation.NSData

func (*CIContext) Init

func (o *CIContext) Init() *CIContext

func (*CIContext) InitWithOptions

func (o *CIContext) InitWithOptions(options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIContext

func (*CIContext) JPEGRepresentationOfImageColorSpaceOptions

func (o *CIContext) JPEGRepresentationOfImageColorSpaceOptions(image *CIImage, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *foundation.NSData

func (*CIContext) OpenEXRRepresentationOfImageOptionsError

func (o *CIContext) OpenEXRRepresentationOfImageOptionsError(image *CIImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (*foundation.NSData, error)

func (*CIContext) PNGRepresentationOfImageFormatColorSpaceOptions

func (o *CIContext) PNGRepresentationOfImageFormatColorSpaceOptions(image *CIImage, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *foundation.NSData

func (*CIContext) PrepareRenderFromRectToDestinationAtPointError

func (o *CIContext) PrepareRenderFromRectToDestinationAtPointError(image *CIImage, fromRect corefoundation.CGRect, destination *CIRenderDestination, atPoint corefoundation.CGPoint) (bool, error)

func (*CIContext) ReclaimResources

func (o *CIContext) ReclaimResources()

func (*CIContext) RenderToBitmapRowBytesBoundsFormatColorSpace

func (o *CIContext) RenderToBitmapRowBytesBoundsFormatColorSpace(image *CIImage, data unsafe.Pointer, rowBytes int, bounds corefoundation.CGRect, format int, colorSpace unsafe.Pointer)

func (*CIContext) RenderToCVPixelBuffer

func (o *CIContext) RenderToCVPixelBuffer(image *CIImage, buffer unsafe.Pointer)

func (*CIContext) RenderToCVPixelBufferBoundsColorSpace

func (o *CIContext) RenderToCVPixelBufferBoundsColorSpace(image *CIImage, buffer unsafe.Pointer, bounds corefoundation.CGRect, colorSpace unsafe.Pointer)

func (*CIContext) RenderToIOSurfaceBoundsColorSpace

func (o *CIContext) RenderToIOSurfaceBoundsColorSpace(image *CIImage, surface unsafe.Pointer, bounds corefoundation.CGRect, colorSpace unsafe.Pointer)

func (*CIContext) RenderToMTLTextureCommandBufferBoundsColorSpace

func (o *CIContext) RenderToMTLTextureCommandBufferBoundsColorSpace(image *CIImage, texture metal.MTLTexture, commandBuffer metal.MTLCommandBuffer, bounds corefoundation.CGRect, colorSpace unsafe.Pointer)

func (*CIContext) StartTaskToClearError

func (o *CIContext) StartTaskToClearError(destination *CIRenderDestination) (*CIRenderTask, error)

func (*CIContext) StartTaskToRenderFromRectToDestinationAtPointError

func (o *CIContext) StartTaskToRenderFromRectToDestinationAtPointError(image *CIImage, fromRect corefoundation.CGRect, destination *CIRenderDestination, atPoint corefoundation.CGPoint) (*CIRenderTask, error)

func (*CIContext) StartTaskToRenderToDestinationError

func (o *CIContext) StartTaskToRenderToDestinationError(image *CIImage, destination *CIRenderDestination) (*CIRenderTask, error)

func (*CIContext) TIFFRepresentationOfImageFormatColorSpaceOptions

func (o *CIContext) TIFFRepresentationOfImageFormatColorSpaceOptions(image *CIImage, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *foundation.NSData

func (*CIContext) WorkingColorSpace

func (o *CIContext) WorkingColorSpace() unsafe.Pointer

The working color space of the CIContext. The working color space determines the color space used when executing filter kernels. You specify a working color space using the “kCIContextWorkingColorSpace“ option when creating a “CIContext“. * All input images are color matched from the input's color space to the working space. * All renders are color matched from the working space to the destination space. The property will be `null` if the context was created with color management disabled.

func (*CIContext) WorkingFormat

func (o *CIContext) WorkingFormat() int

The working pixel format that the CIContext uses for intermediate buffers. The working format determines the pixel format that Core Image uses to create intermediate buffers for rendering images. You specify a working pixel format using the “kCIContextWorkingFormat“ option when creating a “CIContext“.

func (*CIContext) WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError

func (o *CIContext) WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError(image *CIImage, url *foundation.NSURL, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

func (*CIContext) WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError

func (o *CIContext) WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image *CIImage, url *foundation.NSURL, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

func (*CIContext) WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError

func (o *CIContext) WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image *CIImage, url *foundation.NSURL, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

func (*CIContext) WriteOpenEXRRepresentationOfImageToURLOptionsError

func (o *CIContext) WriteOpenEXRRepresentationOfImageToURLOptionsError(image *CIImage, url *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

func (*CIContext) WritePNGRepresentationOfImageToURLFormatColorSpaceOptionsError

func (o *CIContext) WritePNGRepresentationOfImageToURLFormatColorSpaceOptionsError(image *CIImage, url *foundation.NSURL, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

func (*CIContext) WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError

func (o *CIContext) WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError(image *CIImage, url *foundation.NSURL, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

type CIDataMatrixCodeDescriptor

type CIDataMatrixCodeDescriptor struct {
	CIBarcodeDescriptor
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cidatamatrixcodedescriptor

func CIDataMatrixCodeDescriptorDescriptorWithPayloadRowCountColumnCountEccVersion

func CIDataMatrixCodeDescriptorDescriptorWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload *foundation.NSData, rowCount int, columnCount int, eccVersion CIDataMatrixCodeECCVersion) *CIDataMatrixCodeDescriptor

Creates a Data Matrix code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the Data Matrix code symbol. - rowCount: The number of rows in the Data Matrix code symbol. - columnCount: The number of columns in the Data Matrix code symbol. - eccVersion: The “CIDataMatrixCodeECCVersion“ for the Data Matrix code symbol. - Returns: An autoreleased “CIAztecCodeDescriptor“ instance or `nil` if the parameters are invalid

func CIDataMatrixCodeDescriptorFromID

func CIDataMatrixCodeDescriptorFromID(id objc.ID) *CIDataMatrixCodeDescriptor

func (*CIDataMatrixCodeDescriptor) ColumnCount

func (o *CIDataMatrixCodeDescriptor) ColumnCount() int

The number of columns in the Data Matrix code symbol. Refer to ISO/IEC 16022:2006(E) for valid module row and column count combinations.

func (*CIDataMatrixCodeDescriptor) EccVersion

The error correction version of the Data Matrix code symbol. The possible error correction version are enumerated in “CIDataMatrixCodeECCVersion“. Any symbol with an even number of rows and columns will be ECC 200.

func (*CIDataMatrixCodeDescriptor) ErrorCorrectedPayload

func (o *CIDataMatrixCodeDescriptor) ErrorCorrectedPayload() *foundation.NSData

The error-corrected payload containing the data encoded in the Data Matrix code symbol. DataMatrix symbols are specified bn ISO/IEC 16022:2006(E). ECC 200-type symbols will always have an even number of rows and columns. For ECC 200-type symbols, the phases of encoding data into a symbol are described in section 5.1 -- Encode procedure overview. The error corrected payload comprises the de-interleaved bits of the message described at the end of Step 1: Data encodation.

func (*CIDataMatrixCodeDescriptor) InitWithPayloadRowCountColumnCountEccVersion

func (o *CIDataMatrixCodeDescriptor) InitWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload *foundation.NSData, rowCount int, columnCount int, eccVersion CIDataMatrixCodeECCVersion) *CIDataMatrixCodeDescriptor

Initializes a Data Matrix code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the Data Matrix code symbol. - rowCount: The number of rows in the Data Matrix code symbol. - columnCount: The number of columns in the Data Matrix code symbol. - eccVersion: The “CIDataMatrixCodeECCVersion“ for the Data Matrix code symbol. - Returns: An initialized “CIAztecCodeDescriptor“ instance or `nil` if the parameters are invalid

func (*CIDataMatrixCodeDescriptor) RowCount

func (o *CIDataMatrixCodeDescriptor) RowCount() int

The number of rows in the Data Matrix code symbol. Refer to ISO/IEC 16022:2006(E) for valid module row and column count combinations.

type CIDataMatrixCodeECCVersion

type CIDataMatrixCodeECCVersion int64
const (
	// Indicates error correction using convolutional code error correction with no data protection.
	CIDataMatrixCodeECCVersion000 CIDataMatrixCodeECCVersion = 0
	// Indicates 1/4 of the symbol is dedicated to convolutional code error correction.
	CIDataMatrixCodeECCVersion050 CIDataMatrixCodeECCVersion = 50
	// Indicates 1/3 of the symbol is dedicated to convolutional code error correction.
	CIDataMatrixCodeECCVersion080 CIDataMatrixCodeECCVersion = 80
	// Indicates 1/2 of the symbol is dedicated to convolutional code error correction.
	CIDataMatrixCodeECCVersion100 CIDataMatrixCodeECCVersion = 100
	// Indicates 3/4 of the symbol is dedicated to convolutional code error correction.
	CIDataMatrixCodeECCVersion140 CIDataMatrixCodeECCVersion = 140
	// Indicates error correction using Reed-Solomon error correction. Data protection overhead varies based on symbol size.
	CIDataMatrixCodeECCVersion200 CIDataMatrixCodeECCVersion = 200
)

func (CIDataMatrixCodeECCVersion) String

type CIDetector

type CIDetector struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cidetector

func CIDetectorDetectorOfTypeContextOptions

func CIDetectorDetectorOfTypeContextOptions(type_ *foundation.NSString, context_ *CIContext, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIDetector

Returns a new detector instance of the given type. The type is used to specify the detection intent. This will return value if the detector type is not supported. The context argument specifies the CIContext to be used to operate on the image. May be nil. If the input image to -featuresInImage: is the output of a CoreImage operation, it may improve performance to specify the same context that was used to operate on that image. The detector may do image processing in this context and if the image is on the GPU and the specified context is a GPU context this may avoid additional upload to / download from the GPU. If the input image is on the CPU (or the output from a CPU based context) specifying a GPU based context (or vice versa) may reduce performance. // The options parameter lets you optionally specify a accuracy / performance tradeoff. Can be nil or an empty dictionary.

func CIDetectorFromID

func CIDetectorFromID(id objc.ID) *CIDetector

func (*CIDetector) FeaturesInImage

func (o *CIDetector) FeaturesInImage(image *CIImage) *foundation.NSArray[*CIFeature]

Returns an array of CIFeature instances in the given image. The array is sorted by confidence, highest confidence first.

func (*CIDetector) FeaturesInImageOptions

func (o *CIDetector) FeaturesInImageOptions(image *CIImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *foundation.NSArray[*CIFeature]

Returns an array of CIFeature instances in the given image. The array is sorted by confidence, highest confidence first. The options dictionary can contain a CIDetectorImageOrientation key value.

type CIFaceFeature

type CIFaceFeature struct {
	CIFeature
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cifacefeature

func CIFaceFeatureFromID

func CIFaceFeatureFromID(id objc.ID) *CIFaceFeature

func (*CIFaceFeature) FaceAngle

func (o *CIFaceFeature) FaceAngle() float32

The rotation of the face. Rotation is measured counterclockwise in degrees, with zero indicating that a line drawn between the eyes is horizontal relative to the image orientation.

func (*CIFaceFeature) HasFaceAngle

func (o *CIFaceFeature) HasFaceAngle() bool

A Boolean value that indicates whether information about face rotation is available.

func (*CIFaceFeature) HasLeftEyePosition

func (o *CIFaceFeature) HasLeftEyePosition() bool

A Boolean value that indicates whether the detector found the face’s left eye.

func (*CIFaceFeature) HasMouthPosition

func (o *CIFaceFeature) HasMouthPosition() bool

A Boolean value that indicates whether the detector found the face’s mouth.

func (*CIFaceFeature) HasRightEyePosition

func (o *CIFaceFeature) HasRightEyePosition() bool

A Boolean value that indicates whether the detector found the face’s right eye.

func (*CIFaceFeature) HasSmile

func (o *CIFaceFeature) HasSmile() bool

A Boolean value that indicates whether a smile is detected in the face. To detect smiles, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorSmile“ option set to true.

func (*CIFaceFeature) HasTrackingFrameCount

func (o *CIFaceFeature) HasTrackingFrameCount() bool

A Boolean value that indicates the face object has a tracking frame count.

func (*CIFaceFeature) HasTrackingID

func (o *CIFaceFeature) HasTrackingID() bool

A Boolean value that indicates whether the face object has a tracking ID.

func (*CIFaceFeature) LeftEyeClosed

func (o *CIFaceFeature) LeftEyeClosed() bool

A Boolean value that indicates whether a closed left eye is detected in the face. To detect closed eyes, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorEyeBlink“ option set to true.

func (*CIFaceFeature) LeftEyePosition

func (o *CIFaceFeature) LeftEyePosition() corefoundation.CGPoint

The image coordinate of the center of the left eye. > Note: The left eye is on the left side of the face from the observer's perspective. It is not the left eye from the subject's perspective.

func (*CIFaceFeature) MouthPosition

func (o *CIFaceFeature) MouthPosition() corefoundation.CGPoint

The image coordinate of the center of the mouth.

func (*CIFaceFeature) RightEyeClosed

func (o *CIFaceFeature) RightEyeClosed() bool

A Boolean value that indicates whether a closed right eye is detected in the face. To detect closed eyes, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorEyeBlink“ option set to true.

func (*CIFaceFeature) RightEyePosition

func (o *CIFaceFeature) RightEyePosition() corefoundation.CGPoint

The image coordinate of the center of the right eye. > Note: The right eye is on the right side of the face from the observer's perspective. It is not the right eye from the subject's perspective.

func (*CIFaceFeature) TrackingFrameCount

func (o *CIFaceFeature) TrackingFrameCount() int

The tracking frame count of the face.

func (*CIFaceFeature) TrackingID

func (o *CIFaceFeature) TrackingID() int

The tracking identifier of the face object. Core Image provides a tracking identifier for faces it detects in a video stream, which you can use to identify when a CIFaceFeature objects detected in one video frame is the same face detected in a previous video frame. This identifier persists only as long as a face is in the frame and is not associated with a specific face. In other words, if a face moves out of the video frame and comes back into the frame later, another ID is assigned. (Core Image detects faces, but does not recognize specific faces.)

type CIFeature

type CIFeature struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cifeature

func CIFeatureFromID

func CIFeatureFromID(id objc.ID) *CIFeature

func (*CIFeature) Bounds

func (o *CIFeature) Bounds() corefoundation.CGRect

The rectangle that bounds the location of discovered feature. The rectangle is in the cartesian coordinate system of the image.

func (*CIFeature) Type

func (o *CIFeature) Type() *foundation.NSString

The type of feature that was discovered. The type can be one of: * “CIFeatureTypeFace“ * “CIFeatureTypeRectangle“ * “CIFeatureTypeQRCode“ * “CIFeatureTypeText“

type CIFilter

type CIFilter struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cifilter

func CIFilterFilterWithCVPixelBufferPropertiesOptions

func CIFilterFilterWithCVPixelBufferPropertiesOptions(pixelBuffer unsafe.Pointer, properties *foundation.NSDictionary[objc.ID, objc.ID], options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIFilter

Returns a CIFilter that will in turn return a properly processed CIImage as "outputImage". Note that when using this initializer, you should pass in a CVPixelBufferRef with one of the following Raw pixel format types kCVPixelFormatType_14Bayer_GRBG, kCVPixelFormatType_14Bayer_RGGB, kCVPixelFormatType_14Bayer_BGGR, kCVPixelFormatType_14Bayer_GBRG as well as the root properties attachment from the CMSampleBufferRef. Deprecated: Use new CIRAWFilter class instead.

func CIFilterFilterWithImageDataOptions

func CIFilterFilterWithImageDataOptions(data *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIFilter

Returns a CIFilter that will in turn return a properly processed CIImage as "outputImage". Note that when using this initializer, you should pass in a source type identifier hint (kCGImageSourceTypeIdentifierHint) key/value pair in order to help the decoder determine the file type, as otherwise confusion and incorrect results are possible. Deprecated: Use new CIRAWFilter class instead.

func CIFilterFilterWithImageURLOptions

func CIFilterFilterWithImageURLOptions(url *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIFilter

Returns a CIFilter that will in turn return a properly processed CIImage as "outputImage". Deprecated: Use new CIRAWFilter class instead.

func CIFilterFilterWithName

func CIFilterFilterWithName(name *foundation.NSString) *CIFilter

Creates a new filter of type 'name'. On OSX, all input values will be undefined. On iOS, all input values will be set to default values.

func CIFilterFilterWithNameWithInputParameters

func CIFilterFilterWithNameWithInputParameters(name *foundation.NSString, params *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIFilter

Creates a new filter of type 'name'. The filter's input parameters are set from the dictionary of key-value pairs. On OSX, any of the filter input parameters not specified in the dictionary will be undefined. On iOS, any of the filter input parameters not specified in the dictionary will be set to default values.

func CIFilterFromID

func CIFilterFromID(id objc.ID) *CIFilter

func (*CIFilter) ApplyArgumentsOptions

func (o *CIFilter) ApplyArgumentsOptions(k *CIKernel, args *foundation.NSArray[objc.ID], dict *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

Used by CIFilter subclasses to apply the array of argument values 'args' to the kernel function 'k'. The supplied arguments must be type-compatible with the function signature of the kernel. The key-value pairs defined by 'dict' (if non-nil) are used to control exactly how the kernel is evaluated. Valid keys include: kCIApplyOptionExtent: the size of the produced image. Value is a four element NSArray [X Y WIDTH HEIGHT]. kCIApplyOptionDefinition: the Domain of Definition of the produced image. Value is either a CIFilterShape object, or a four element NSArray defining a rectangle. @param k CIKernel of the filter @param args Array of arguments that are applied to the kernel @param dict Array of additional options

func (*CIFilter) Attributes

Returns a dictionary containing key/value pairs describing the filter. (see description of keys below)

func (*CIFilter) InputKeys

func (o *CIFilter) InputKeys() *foundation.NSArray[*foundation.NSString]

Returns an array containing the names of all inputs in the filter.

func (*CIFilter) IsEnabled

func (o *CIFilter) IsEnabled() bool

func (*CIFilter) Name

func (o *CIFilter) Name() *foundation.NSString

func (*CIFilter) OutputImage

func (o *CIFilter) OutputImage() *CIImage

func (*CIFilter) OutputKeys

func (o *CIFilter) OutputKeys() *foundation.NSArray[*foundation.NSString]

Returns an array containing the names of all outputs in the filter.

func (*CIFilter) SetDefaults

func (o *CIFilter) SetDefaults()

Sets all inputs to their default values (where default values are defined, other inputs are left as-is).

func (*CIFilter) SetEnabled

func (o *CIFilter) SetEnabled(enabled bool)

func (*CIFilter) SetName

func (o *CIFilter) SetName(aString *foundation.NSString)

type CIFilterConstructor

type CIFilterConstructor interface {
}

CIFilterConstructor wraps the ObjC protocol CIFilterConstructor.

type CIFilterGenerator

type CIFilterGenerator struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cifiltergenerator

func CIFilterGeneratorFilterGenerator

func CIFilterGeneratorFilterGenerator() *CIFilterGenerator

This creates an empty CIFilterGenerator in which you connect filters and images.

func CIFilterGeneratorFilterGeneratorWithContentsOfURL

func CIFilterGeneratorFilterGeneratorWithContentsOfURL(aURL *foundation.NSURL) *CIFilterGenerator

Create a CIFilterGenerator with the contents of the file. @result CIFilterGenerator object. If the file could not be read it returns nil.

func CIFilterGeneratorFromID

func CIFilterGeneratorFromID(id objc.ID) *CIFilterGenerator

func (*CIFilterGenerator) ClassAttributes

func (o *CIFilterGenerator) ClassAttributes() *foundation.NSDictionary[objc.ID, objc.ID]

Retrieve or Set the class attributes that will be used to register the filter using the registerFilterName method. Make sure you set the class attributes before using the registerFilterName method. See CIFilter for a description of the classAttributes that are needed to register a filter.

func (*CIFilterGenerator) ConnectObjectWithKeyToObjectWithKey

func (o *CIFilterGenerator) ConnectObjectWithKeyToObjectWithKey(sourceObject objc.ID, sourceKey *foundation.NSString, targetObject objc.ID, targetKey *foundation.NSString)

Connect two objects into the filter chain. This method connects two object in the filter chain. For instance you can connect the outputImage key of a CISepiaTone filter object to the inputImage key of another CIFilter. @param sourceObject A CIFilter, CIImage, NSString, or NSURL describing the path to the image @param sourceKey For KVC access to the source object. Can be nil which means that the source object will be used directly. @param targetObject The object that you link the source object to. @param targetKey The key that you assign the source object to.

func (*CIFilterGenerator) DisconnectObjectWithKeyToObjectWithKey

func (o *CIFilterGenerator) DisconnectObjectWithKeyToObjectWithKey(sourceObject objc.ID, sourceKey *foundation.NSString, targetObject objc.ID, targetKey *foundation.NSString)

Removes the connection between two objects in the filter chain. Use this method to disconnect two objects that you connected using the connectObject:withKey:toObject:withKey: method. @param sourceObject A CIFilter or CIImage or an NSString or an NSURL describing the path to the image @param sourceKey For KVC access to the source object. Can be nil which means that the source object will be used directly. @param targetObject The object that you linked the source object to. @param targetKey The key that you assigned the source object to.

func (*CIFilterGenerator) ExportKeyFromObjectWithName

func (o *CIFilterGenerator) ExportKeyFromObjectWithName(key *foundation.NSString, targetObject objc.ID, exportedKeyName *foundation.NSString)

This methods allows you to export an input or output key of an object in the filter chain to be available through the inputKeys or outputKeys API when converted into a CIFilter When you create a CIFilter from the CIFilterGenerator, you might want the client of the filter being able to set some of the paramters of the filter chain. To do so these parameters have to be exported as keys much like the inputKeys and outputKeys of all CIFilters. @param key The key path that is to be exported from the target object (eg. inputImage) @param targetObject The object of which the key is to be exported (eg the filter). @param exportedKeyName The name under which you want the new key to be available. This parameter can be nil in which case the original key name will be used. This name has to be unique. If a key being exported is an inputKey of the filter it will be exported as an input key and the other way around for output keys.

func (*CIFilterGenerator) ExportedKeys

func (o *CIFilterGenerator) ExportedKeys() *foundation.NSDictionary[objc.ID, objc.ID]

An array of the exported keys. Use this method to get an NSArray of all the keys that you have exported using exportKey:fromObject:withName: or that were exported before written to a file from which you read the filter chain. @result An array of dictionaries that describe the exported key and target object. See CIExportedKey, CIExportedKeyTargetObject and CIExportedKeyName for keys used in the dictionary.

func (*CIFilterGenerator) Filter

func (o *CIFilterGenerator) Filter() *CIFilter

Create a CIFilter object based on this filter chain. This method creates a CIFilter from the filter chain where the topology of the chain is immutable, meaning that changes to the filter chain will not be reflected in the filter. The filter will have the input and output keys that were exported as described above.

func (*CIFilterGenerator) InitWithContentsOfURL

func (o *CIFilterGenerator) InitWithContentsOfURL(aURL *foundation.NSURL) objc.ID

Initializes a CIFilterGenerator with the contents of the file. @result CIFilterGenerator object. If the file could not be read it returns nil.

func (*CIFilterGenerator) RegisterFilterName

func (o *CIFilterGenerator) RegisterFilterName(name *foundation.NSString)

Register the resulting filter of the chain in the CIFilter repository. This method allows you to register the filter chain as a named filter in the filter repository. You can then create a CIFilter object from it using the filterWithName: method. Make sure you set the class attributes first - see CIFilter for a description of the classAttributes that are needed to register a filter. When registering Core Image automatically adds the kCIFilterGeneratorCategory to the filters categories. The kCIFilterGeneratorCategory is purely for identification purpose and will not be exposed in the filter browser as a seperate category. @param name The name under which the filter will be registered. This name has to be unique.

func (*CIFilterGenerator) RemoveExportedKey

func (o *CIFilterGenerator) RemoveExportedKey(exportedKeyName *foundation.NSString)

Removes a key that was exported before using exportKey:fromObject:withName: Use this method when you want to remove a prior exported key. It will not show up under inputKeys or outputKeys anymore. @param exportedKeyName Name of the key that was exported.

func (*CIFilterGenerator) SetAttributesForExportedKey

func (o *CIFilterGenerator) SetAttributesForExportedKey(attributes *foundation.NSDictionary[objc.ID, objc.ID], key *foundation.NSString)

Set a new dictionary of attributes for an exported key. By default, the exported key inherits the attributes from its original key and target object. Use this method to for instance change the default value or lower the maximum allowed value.

func (*CIFilterGenerator) SetClassAttributes

func (o *CIFilterGenerator) SetClassAttributes(classAttributes *foundation.NSDictionary[objc.ID, objc.ID])

func (*CIFilterGenerator) WriteToURLAtomically

func (o *CIFilterGenerator) WriteToURLAtomically(aURL *foundation.NSURL, flag bool) bool

Write the CIFilterGenerator into a file @result Returns true when the chain with written our succesfully

type CIFilterProtocol

type CIFilterProtocol interface {
	OutputImage() *CIImage
}

CIFilterProtocol wraps the ObjC protocol CIFilter.

type CIFilterShape

type CIFilterShape struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cifiltershape

func CIFilterShapeFromID

func CIFilterShapeFromID(id objc.ID) *CIFilterShape

func CIFilterShapeShapeWithRect

func CIFilterShapeShapeWithRect(r corefoundation.CGRect) *CIFilterShape

func (*CIFilterShape) Extent

func (o *CIFilterShape) Extent() corefoundation.CGRect

func (*CIFilterShape) InitWithRect

func (o *CIFilterShape) InitWithRect(r corefoundation.CGRect) *CIFilterShape

func (*CIFilterShape) InsetByXY

func (o *CIFilterShape) InsetByXY(dx int, dy int) *CIFilterShape

func (*CIFilterShape) IntersectWith

func (o *CIFilterShape) IntersectWith(s2 *CIFilterShape) *CIFilterShape

func (*CIFilterShape) IntersectWithRect

func (o *CIFilterShape) IntersectWithRect(r corefoundation.CGRect) *CIFilterShape

func (*CIFilterShape) TransformByInterior

func (o *CIFilterShape) TransformByInterior(m corefoundation.CGAffineTransform, flag bool) *CIFilterShape

func (*CIFilterShape) UnionWith

func (o *CIFilterShape) UnionWith(s2 *CIFilterShape) *CIFilterShape

func (*CIFilterShape) UnionWithRect

func (o *CIFilterShape) UnionWithRect(r corefoundation.CGRect) *CIFilterShape

type CIImage

type CIImage struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciimage

func CIImageBlackImage

func CIImageBlackImage() *CIImage

func CIImageBlueImage

func CIImageBlueImage() *CIImage

func CIImageClearImage

func CIImageClearImage() *CIImage

func CIImageCyanImage

func CIImageCyanImage() *CIImage

func CIImageEmptyImage

func CIImageEmptyImage() *CIImage

func CIImageFromID

func CIImageFromID(id objc.ID) *CIImage

func CIImageGrayImage

func CIImageGrayImage() *CIImage

func CIImageGreenImage

func CIImageGreenImage() *CIImage

func CIImageImageWithBitmapDataBytesPerRowSizeFormatColorSpace

func CIImageImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data *foundation.NSData, bytesPerRow uint, size corefoundation.CGSize, format int, colorSpace unsafe.Pointer) *CIImage

func CIImageImageWithCGImage

func CIImageImageWithCGImage(image unsafe.Pointer) *CIImage

func CIImageImageWithCGImageOptions

func CIImageImageWithCGImageOptions(image unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithCGImageSourceIndexOptions

func CIImageImageWithCGImageSourceIndexOptions(source unsafe.Pointer, index uint, dict *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithCGLayer deprecated

func CIImageImageWithCGLayer(layer unsafe.Pointer) *CIImage

Deprecated: since macOS 10.11.

func CIImageImageWithCGLayerOptions deprecated

func CIImageImageWithCGLayerOptions(layer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

Deprecated: since macOS 10.11.

func CIImageImageWithCVImageBuffer

func CIImageImageWithCVImageBuffer(imageBuffer unsafe.Pointer) *CIImage

func CIImageImageWithCVImageBufferOptions

func CIImageImageWithCVImageBufferOptions(imageBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithCVPixelBuffer

func CIImageImageWithCVPixelBuffer(pixelBuffer unsafe.Pointer) *CIImage

func CIImageImageWithCVPixelBufferOptions

func CIImageImageWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithColor

func CIImageImageWithColor(color *CIColor) *CIImage

func CIImageImageWithContentsOfURL

func CIImageImageWithContentsOfURL(url *foundation.NSURL) *CIImage

func CIImageImageWithContentsOfURLOptions

func CIImageImageWithContentsOfURLOptions(url *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithData

func CIImageImageWithData(data *foundation.NSData) *CIImage

func CIImageImageWithDataOptions

func CIImageImageWithDataOptions(data *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithDepthData

func CIImageImageWithDepthData(data *avfoundation.AVDepthData) *CIImage

func CIImageImageWithDepthDataOptions

func CIImageImageWithDepthDataOptions(data *avfoundation.AVDepthData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithIOSurface

func CIImageImageWithIOSurface(surface unsafe.Pointer) *CIImage

func CIImageImageWithIOSurfaceOptions

func CIImageImageWithIOSurfaceOptions(surface unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithImageProviderSizeFormatColorSpaceOptions

func CIImageImageWithImageProviderSizeFormatColorSpaceOptions(provider objc.ID, width uint, height uint, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

Create an image object based on pixels from an image provider object. Core Image retains the provider object until the image is deallocated. The image provider object will not be called until the image is rendered. - Parameters: - provider: An object that implements the `CIImageProvider` protocol. - width: The width of the image. - height: The height of the image. - format: The “CIFormat“ of the provided pixels. - colorSpace: The color space that the image is defined in. If `nil`, then the pixels will not be is not color matched to the Core Image working color space. - options: A dictionary that contains various “CIImageOption“ keys that affect the resulting “CIImage“. The option “kCIImageProviderTileSize“ controls if and how the provider object is called in tiles. The option “kCIImageProviderUserInfo“ allows additional state to be passed to the provider object. - Returns: An autoreleased “CIImage“ object based on the data provider.

func CIImageImageWithMTLTextureOptions

func CIImageImageWithMTLTextureOptions(texture metal.MTLTexture, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageImageWithPortaitEffectsMatte

func CIImageImageWithPortaitEffectsMatte(matte *avfoundation.AVPortraitEffectsMatte) *CIImage

func CIImageImageWithSemanticSegmentationMatte

func CIImageImageWithSemanticSegmentationMatte(matte *avfoundation.AVSemanticSegmentationMatte) *CIImage

func CIImageImageWithTextureSizeFlippedColorSpace

func CIImageImageWithTextureSizeFlippedColorSpace(name uint, size corefoundation.CGSize, flipped bool, colorSpace unsafe.Pointer) *CIImage

func CIImageImageWithTextureSizeFlippedOptions

func CIImageImageWithTextureSizeFlippedOptions(name uint, size corefoundation.CGSize, flipped bool, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func CIImageMagentaImage

func CIImageMagentaImage() *CIImage

func CIImageProcessorKernelApplyWithExtentInputsArgumentsError

func CIImageProcessorKernelApplyWithExtentInputsArgumentsError(extent corefoundation.CGRect, inputs *foundation.NSArray[*CIImage], arguments *foundation.NSDictionary[*foundation.NSString, objc.ID]) (*CIImage, error)

Call this method on your Core Image Processor Kernel subclass to create a new image of the specified extent. The inputs and arguments will be retained so that your subclass can be called when the image is drawn. This method will return `nil` and an error if: * calling “outputFormat“ on your subclass returns an unsupported format. * calling “formatForInputAtIndex:“ on your subclass returns an unsupported format. * your subclass does not implement “processWithInputs:arguments:output:error:“ - Parameters: - extent: The bounding `CGRect` of pixels that the `CIImageProcessorKernel` can produce. This method will return “/CIImage/emptyImage“ if extent is empty. - inputs: An array of “CIImage“ objects to use as input. - arguments: This dictionary contains any additional parameters that the processor needs to produce its output. The argument objects can be of any type but in order for CoreImage to cache intermediates, they must be of the following immutable types: `NSArray`, `NSDictionary`, `NSNumber`, `NSValue`, `NSData`, `NSString`, `NSNull`, “CIVector“, “CIColor“, `CGImage`, `CGColorSpace`, or `MLModel`. - error: Pointer to the `NSError` object into which processing errors will be written. - Returns: An autoreleased “CIImage“

func CIImageRedImage

func CIImageRedImage() *CIImage

func CIImageWhiteImage

func CIImageWhiteImage() *CIImage

func CIImageYellowImage

func CIImageYellowImage() *CIImage

func (*CIImage) AutoAdjustmentFilters

func (o *CIImage) AutoAdjustmentFilters() *foundation.NSArray[*CIFilter]

func (*CIImage) AutoAdjustmentFiltersWithOptions

func (o *CIImage) AutoAdjustmentFiltersWithOptions(options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *foundation.NSArray[*CIFilter]

func (*CIImage) CGImage

func (o *CIImage) CGImage() unsafe.Pointer

func (*CIImage) ColorSpace

func (o *CIImage) ColorSpace() unsafe.Pointer

func (*CIImage) ContentAverageLightLevel

func (o *CIImage) ContentAverageLightLevel() float32

Returns the content average light level of the image. If the image average light level is unknown, then the value 0.0 will be returned. If the image headroom is known, then a value greater than or equal to 0.0 will be returned. The image average light level may known when a CIImage is first initialized. If the a CIImage is initialized with a: * `CGImage` : then the headroom will be determined by `CGImageGetContentAverageLightLevel()`. * `CVPixelBuffer` : then the headroom will be determined by `kCVImageBufferContentLightLevelInfoKey`. If the image is the result of applying a “CIFilter-class“ or “CIKernel“, this property will return `0.0`. There are exceptions to this. Applying a “CIWarpKernel“ or certain “CIFilter-class“ (e.g. `CIGaussianBlur`, `CILanczosScaleTransform`, `CIAreaAverage` and some others) to an image will result in a “CIImage“ instance with the same `contentAverageLightLevel` property value.

func (*CIImage) ContentHeadroom

func (o *CIImage) ContentHeadroom() float32

Returns the content headroom of the image. If the image headroom is unknown, then the value 0.0 will be returned. If the image headroom is known, then a value greater than or equal to 1.0 will be returned. A value of 1.0 will be returned if the image is SDR. A value greater than 1.0 will be returned if the image is HDR. The image headroom may known when a CIImage is first initialized. If the a CIImage is initialized using: * `NSURL` or `NSData` : the headroom may be determined by associated metadata or deduced from pixel format or colorSpace information. * `CGImage` : headroom may be determined by `CGImageGetHeadroomInfo()` or deduced from pixel format or colorSpace information. * `IOSurface` : then the headroom will be determined by `kIOSurfaceContentHeadroom`. or deduced from pixel format or colorSpace information. * `CVPixelBuffer` : then the headroom will be determined by `kCVImageBufferContentLightLevelInfoKey`. or deduced from pixel format or colorSpace information. * `BitmapData` : headroom may be deduced from pixel format or colorSpace information. If the image is the result of applying a “CIFilter-class“ or “CIKernel“, this method will return `0.0`. There are exceptions to this. Applying a `CIWarpKernel“ or certain “CIFilter-class“ (e.g. `CIGaussianBlur`, `CILanczosScaleTransform`, `CIAreaAverage` and some others) to an image will result in a “CIImage“ instance with the same `contentHeadroom` property value.

func (*CIImage) Definition

func (o *CIImage) Definition() *CIFilterShape

func (*CIImage) DepthData

func (o *CIImage) DepthData() *avfoundation.AVDepthData

func (*CIImage) Extent

func (o *CIImage) Extent() corefoundation.CGRect

Returns a rectangle the defines the bounds of non-(0,0,0,0) pixels in the image. > Note: the “extent“ of `CIImage“ may be infinite or have a non-zero origin.

func (*CIImage) ImageByApplyingCGOrientation

func (o *CIImage) ImageByApplyingCGOrientation(orientation imageio.CGImagePropertyOrientation) *CIImage

func (*CIImage) ImageByApplyingFilter

func (o *CIImage) ImageByApplyingFilter(filterName *foundation.NSString) *CIImage

func (*CIImage) ImageByApplyingFilterWithInputParameters

func (o *CIImage) ImageByApplyingFilterWithInputParameters(filterName *foundation.NSString, params *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) ImageByApplyingGainMap

func (o *CIImage) ImageByApplyingGainMap(gainmap *CIImage) *CIImage

Create an image that applies a gain map Core Image image to the received Core Image image. The gain map image can be obtained by creating a “CIImage“ instance from `NSURL`/`NSData` and setting the “kCIImageAuxiliaryHDRGainMap“ option set to `@YES`. If the gain map “CIImage“ instance doesn't have the needed “properties“ metadata, the received image will be returned as-is. - Returns: An autoreleased “CIImage“ instance or the received image.

func (*CIImage) ImageByApplyingGainMapHeadroom

func (o *CIImage) ImageByApplyingGainMapHeadroom(gainmap *CIImage, headroom float32) *CIImage

Create an image that applies a gain map Core Image image with a specified headroom to the received Core Image image. - Parameters: - gainmap: The gain map “CIImage“ instance to apply to the receiver. - headroom: a float value that specify how much headroom the resulting image should have. The headroom value will be limited to between 1.0 (i.e. SDR) and the full headroom allowed by the gain map. - Returns: An autoreleased “CIImage“ instance or the received image.

func (*CIImage) ImageByApplyingGaussianBlurWithSigma

func (o *CIImage) ImageByApplyingGaussianBlurWithSigma(sigma float64) *CIImage

Create an image by applying a gaussian blur to the receiver. - Parameters: - sigma: The sigma of the gaussian blur to apply to the receiver. If the sigma is very small (less than `0.16`) then the receiver is returned. - Returns: An autoreleased “CIImage“ instance or the received image.

func (*CIImage) ImageByApplyingOrientation

func (o *CIImage) ImageByApplyingOrientation(orientation int) *CIImage

func (*CIImage) ImageByApplyingTransform

func (o *CIImage) ImageByApplyingTransform(matrix corefoundation.CGAffineTransform) *CIImage

func (*CIImage) ImageByApplyingTransformHighQualityDownsample

func (o *CIImage) ImageByApplyingTransformHighQualityDownsample(matrix corefoundation.CGAffineTransform, highQualityDownsample bool) *CIImage

func (*CIImage) ImageByClampingToExtent

func (o *CIImage) ImageByClampingToExtent() *CIImage

func (*CIImage) ImageByClampingToRect

func (o *CIImage) ImageByClampingToRect(rect corefoundation.CGRect) *CIImage

func (*CIImage) ImageByColorMatchingColorSpaceToWorkingSpace

func (o *CIImage) ImageByColorMatchingColorSpaceToWorkingSpace(colorSpace unsafe.Pointer) *CIImage

func (*CIImage) ImageByColorMatchingWorkingSpaceToColorSpace

func (o *CIImage) ImageByColorMatchingWorkingSpaceToColorSpace(colorSpace unsafe.Pointer) *CIImage

func (*CIImage) ImageByCompositingOverImage

func (o *CIImage) ImageByCompositingOverImage(dest *CIImage) *CIImage

func (*CIImage) ImageByConvertingLabToWorkingSpace

func (o *CIImage) ImageByConvertingLabToWorkingSpace() *CIImage

func (*CIImage) ImageByConvertingWorkingSpaceToLab

func (o *CIImage) ImageByConvertingWorkingSpaceToLab() *CIImage

func (*CIImage) ImageByCroppingToRect

func (o *CIImage) ImageByCroppingToRect(rect corefoundation.CGRect) *CIImage

func (*CIImage) ImageByInsertingIntermediate

func (o *CIImage) ImageByInsertingIntermediate() *CIImage

Create an image that inserts a intermediate that is cacheable This intermediate will be not be cached if “kCIContextCacheIntermediates“ is false. - Returns: An autoreleased “CIImage“.

func (*CIImage) ImageByInsertingIntermediate2

func (o *CIImage) ImageByInsertingIntermediate2(cache bool) *CIImage

Create an image that inserts a intermediate that is cacheable. - Parameters: - cache: Controls if Core Image caches the returned image. * `YES` : This intermediate will be cacheable even if “kCIContextCacheIntermediates“ is false. * `NO` : the intermediate will be not be cached if “kCIContextCacheIntermediates“ is false. - Returns: An autoreleased “CIImage“.

func (*CIImage) ImageByInsertingTiledIntermediate

func (o *CIImage) ImageByInsertingTiledIntermediate() *CIImage

Create an image that inserts a intermediate that is cached in tiles This intermediate will be cacheable even if “kCIContextCacheIntermediates“ is false. - Returns: An autoreleased “CIImage“.

func (*CIImage) ImageByPremultiplyingAlpha

func (o *CIImage) ImageByPremultiplyingAlpha() *CIImage

func (*CIImage) ImageBySamplingLinear

func (o *CIImage) ImageBySamplingLinear() *CIImage

Create an image by changing the receiver's sample mode to bilinear interpolation. - Returns: An autoreleased “CIImage“ instance with a bilinear sampling.

func (*CIImage) ImageBySamplingNearest

func (o *CIImage) ImageBySamplingNearest() *CIImage

Create an image by changing the receiver's sample mode to nearest neighbor. - Returns: An autoreleased “CIImage“ instance with a nearest sampling.

func (*CIImage) ImageBySettingAlphaOneInExtent

func (o *CIImage) ImageBySettingAlphaOneInExtent(extent corefoundation.CGRect) *CIImage

func (*CIImage) ImageBySettingContentAverageLightLevel

func (o *CIImage) ImageBySettingContentAverageLightLevel(average float32) *CIImage

Create an image by changing the receiver's contentAverageLightLevel property. Changing this value will alter the behavior of the `CIToneMapHeadroom` and `CISystemToneMap` filters. * If the value is set to 0.0 or less then the returned image's “contentAverageLightLevel“ is unknown. - Returns: An autoreleased “CIImage“.

func (*CIImage) ImageBySettingContentHeadroom

func (o *CIImage) ImageBySettingContentHeadroom(headroom float32) *CIImage

Create an image by changing the receiver's contentHeadroom property. Changing this value will alter the behavior of the `CIToneMapHeadroom` and `CISystemToneMap` filters. * If the value is set to 0.0 then the returned image's headroom is unknown. * If the value is set to 1.0 then the returned image is SDR. * If the value is set to greater 1.0 then the returned image is HDR. * Otherwise the returned image's headroom is unknown. - Returns: An autoreleased “CIImage“.

func (*CIImage) ImageBySettingProperties

func (o *CIImage) ImageBySettingProperties(properties *foundation.NSDictionary[objc.ID, objc.ID]) *CIImage

Return a new image by changing the receiver's metadata properties. When you create an image, Core Image sets an image’s properties to a metadata dictionary as described here: “properties“. Use this method to override an image’s metadata properties with new values. - Parameters: - properties: A dictionary of metadata properties akin to the `CGImageSourceCopyPropertiesAtIndex()` function. - Returns: An autoreleased “CIImage“ instance with a copy of the new properties.

func (*CIImage) ImageByUnpremultiplyingAlpha

func (o *CIImage) ImageByUnpremultiplyingAlpha() *CIImage

func (*CIImage) ImageTransformForCGOrientation

func (o *CIImage) ImageTransformForCGOrientation(orientation imageio.CGImagePropertyOrientation) corefoundation.CGAffineTransform

func (*CIImage) ImageTransformForOrientation

func (o *CIImage) ImageTransformForOrientation(orientation int) corefoundation.CGAffineTransform

func (*CIImage) InitWithBitmapDataBytesPerRowSizeFormatColorSpace

func (o *CIImage) InitWithBitmapDataBytesPerRowSizeFormatColorSpace(data *foundation.NSData, bytesPerRow uint, size corefoundation.CGSize, format int, colorSpace unsafe.Pointer) *CIImage

func (*CIImage) InitWithCGImage

func (o *CIImage) InitWithCGImage(image unsafe.Pointer) *CIImage

func (*CIImage) InitWithCGImageOptions

func (o *CIImage) InitWithCGImageOptions(image unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithCGImageSourceIndexOptions

func (o *CIImage) InitWithCGImageSourceIndexOptions(source unsafe.Pointer, index uint, dict *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithCGLayer deprecated

func (o *CIImage) InitWithCGLayer(layer unsafe.Pointer) *CIImage

Deprecated: since macOS 10.11.

func (*CIImage) InitWithCGLayerOptions deprecated

func (o *CIImage) InitWithCGLayerOptions(layer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

Deprecated: since macOS 10.11.

func (*CIImage) InitWithCVImageBuffer

func (o *CIImage) InitWithCVImageBuffer(imageBuffer unsafe.Pointer) *CIImage

func (*CIImage) InitWithCVImageBufferOptions

func (o *CIImage) InitWithCVImageBufferOptions(imageBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithCVPixelBuffer

func (o *CIImage) InitWithCVPixelBuffer(pixelBuffer unsafe.Pointer) *CIImage

func (*CIImage) InitWithCVPixelBufferOptions

func (o *CIImage) InitWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithColor

func (o *CIImage) InitWithColor(color *CIColor) *CIImage

func (*CIImage) InitWithContentsOfURL

func (o *CIImage) InitWithContentsOfURL(url *foundation.NSURL) *CIImage

func (*CIImage) InitWithContentsOfURLOptions

func (o *CIImage) InitWithContentsOfURLOptions(url *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithData deprecated

func (o *CIImage) InitWithData(data *foundation.NSData) *CIImage

Deprecated: since macOS 10.11.

func (*CIImage) InitWithDataOptions deprecated

func (o *CIImage) InitWithDataOptions(data *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

Deprecated: since macOS 10.11.

func (*CIImage) InitWithDepthData

func (o *CIImage) InitWithDepthData(data *avfoundation.AVDepthData) *CIImage

func (*CIImage) InitWithDepthDataOptions

func (o *CIImage) InitWithDepthDataOptions(data *avfoundation.AVDepthData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithIOSurface

func (o *CIImage) InitWithIOSurface(surface unsafe.Pointer) *CIImage

func (*CIImage) InitWithIOSurfaceOptions

func (o *CIImage) InitWithIOSurfaceOptions(surface unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithIOSurfacePlaneFormatOptions deprecated

func (o *CIImage) InitWithIOSurfacePlaneFormatOptions(surface unsafe.Pointer, plane uint, format int, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

Deprecated: since macOS 10.11.

func (*CIImage) InitWithImageProviderSizeFormatColorSpaceOptions

func (o *CIImage) InitWithImageProviderSizeFormatColorSpaceOptions(provider objc.ID, width uint, height uint, format int, colorSpace unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

Initializes an image object based on pixels from an image provider object. Core Image retains the provider object until the image is deallocated. The image provider object will not be called until the image is rendered. - Parameters: - provider: An object that implements the `CIImageProvider` protocol. - width: The width of the image. - height: The height of the image. - format: The “CIFormat“ of the provided pixels. - colorSpace: The color space that the image is defined in. If `nil`, then the pixels will not be is not color matched to the Core Image working color space. - options: A dictionary that contains various “CIImageOption“ keys that affect the resulting “CIImage“. The option “kCIImageProviderTileSize“ controls if and how the provider object is called in tiles. The option “kCIImageProviderUserInfo“ allows additional state to be passed to the provider object. - Returns: An initialized “CIImage“ object based on the data provider.

func (*CIImage) InitWithMTLTextureOptions

func (o *CIImage) InitWithMTLTextureOptions(texture metal.MTLTexture, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithPortaitEffectsMatte

func (o *CIImage) InitWithPortaitEffectsMatte(matte *avfoundation.AVPortraitEffectsMatte) *CIImage

func (*CIImage) InitWithPortaitEffectsMatteOptions

func (o *CIImage) InitWithPortaitEffectsMatteOptions(matte *avfoundation.AVPortraitEffectsMatte, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithSemanticSegmentationMatte

func (o *CIImage) InitWithSemanticSegmentationMatte(matte *avfoundation.AVSemanticSegmentationMatte) *CIImage

func (*CIImage) InitWithSemanticSegmentationMatteOptions

func (o *CIImage) InitWithSemanticSegmentationMatteOptions(matte *avfoundation.AVSemanticSegmentationMatte, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) InitWithTextureSizeFlippedColorSpace

func (o *CIImage) InitWithTextureSizeFlippedColorSpace(name uint, size corefoundation.CGSize, flipped bool, colorSpace unsafe.Pointer) *CIImage

func (*CIImage) InitWithTextureSizeFlippedOptions

func (o *CIImage) InitWithTextureSizeFlippedOptions(name uint, size corefoundation.CGSize, flipped bool, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *CIImage

func (*CIImage) IsOpaque

func (o *CIImage) IsOpaque() bool

Returns YES if the image is known to have and alpha value of `1.0` over the entire image extent.

func (*CIImage) MetalTexture

func (o *CIImage) MetalTexture() metal.MTLTexture

Returns a Metal Texture if the Core Image image was created with a texture. This will return non-nil if the image was created with “/CIImage/imageWithMTLTexture:options:“ and no options. Otherwise this property will be `nil` you should instead call “/CIContext/render:toMTLTexture:commandBuffer:bounds:colorSpace:“. > Warning: Modifying the contents of this texture will cause the “CIImage“ instance to render with incorrect results.

func (*CIImage) PixelBuffer

func (o *CIImage) PixelBuffer() unsafe.Pointer

func (*CIImage) PortraitEffectsMatte

func (o *CIImage) PortraitEffectsMatte() *avfoundation.AVPortraitEffectsMatte

func (*CIImage) Properties

Returns the metadata properties dictionary of the image. If the “CIImage“ was created from `NSURL` or `NSData` then this dictionary is determined by calling `CGImageSourceCopyPropertiesAtIndex()`. If the “CIImage“ was created with the “kCIImageProperties“ option, then that dictionary is returned. If the “CIImage“ was created by applying “CIFilter-class“ or “CIKernel“ then the properties of the root inputImage will be returned.

func (*CIImage) RegionOfInterestForImageInRect

func (o *CIImage) RegionOfInterestForImageInRect(image *CIImage, rect corefoundation.CGRect) corefoundation.CGRect

func (*CIImage) SemanticSegmentationMatte

func (o *CIImage) SemanticSegmentationMatte() *avfoundation.AVSemanticSegmentationMatte

func (*CIImage) Url

func (o *CIImage) Url() *foundation.NSURL

type CIImageAccumulator

type CIImageAccumulator struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciimageaccumulator

func CIImageAccumulatorFromID

func CIImageAccumulatorFromID(id objc.ID) *CIImageAccumulator

func CIImageAccumulatorImageAccumulatorWithExtentFormat

func CIImageAccumulatorImageAccumulatorWithExtentFormat(extent corefoundation.CGRect, format int) *CIImageAccumulator

func CIImageAccumulatorImageAccumulatorWithExtentFormatColorSpace

func CIImageAccumulatorImageAccumulatorWithExtentFormatColorSpace(extent corefoundation.CGRect, format int, colorSpace unsafe.Pointer) *CIImageAccumulator

func (*CIImageAccumulator) Clear

func (o *CIImageAccumulator) Clear()

func (*CIImageAccumulator) Extent

func (*CIImageAccumulator) Format

func (o *CIImageAccumulator) Format() int

func (*CIImageAccumulator) Image

func (o *CIImageAccumulator) Image() *CIImage

func (*CIImageAccumulator) InitWithExtentFormat

func (o *CIImageAccumulator) InitWithExtentFormat(extent corefoundation.CGRect, format int) *CIImageAccumulator

func (*CIImageAccumulator) InitWithExtentFormatColorSpace

func (o *CIImageAccumulator) InitWithExtentFormatColorSpace(extent corefoundation.CGRect, format int, colorSpace unsafe.Pointer) *CIImageAccumulator

func (*CIImageAccumulator) SetImage

func (o *CIImageAccumulator) SetImage(image *CIImage)

func (*CIImageAccumulator) SetImageDirtyRect

func (o *CIImageAccumulator) SetImageDirtyRect(image *CIImage, dirtyRect corefoundation.CGRect)

type CIImageProcessorInput

type CIImageProcessorInput interface {
	Region() corefoundation.CGRect
	BytesPerRow() uint
	Format() int
	BaseAddress() unsafe.Pointer
	Surface() unsafe.Pointer
	PixelBuffer() unsafe.Pointer
	MetalTexture() metal.MTLTexture
	Digest() uint64
	RoiTileIndex() uint
	RoiTileCount() uint
}

CIImageProcessorInput wraps the ObjC protocol CIImageProcessorInput.

type CIImageProcessorKernel

type CIImageProcessorKernel struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel

func CIImageProcessorKernelFromID

func CIImageProcessorKernelFromID(id objc.ID) *CIImageProcessorKernel

type CIImageProcessorOutput

type CIImageProcessorOutput interface {
	Region() corefoundation.CGRect
	BytesPerRow() uint
	Format() int
	BaseAddress() unsafe.Pointer
	Surface() unsafe.Pointer
	PixelBuffer() unsafe.Pointer
	MetalTexture() metal.MTLTexture
	MetalCommandBuffer() metal.MTLCommandBuffer
	Digest() uint64
}

CIImageProcessorOutput wraps the ObjC protocol CIImageProcessorOutput.

type CIKernel

type CIKernel struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cikernel

func CIKernelFromID

func CIKernelFromID(id objc.ID) *CIKernel

func CIKernelKernelWithFunctionNameFromMetalLibraryDataError

func CIKernelKernelWithFunctionNameFromMetalLibraryDataError(name *foundation.NSString, data *foundation.NSData) (*CIKernel, error)

func CIKernelKernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError

func CIKernelKernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name *foundation.NSString, data *foundation.NSData, format int) (*CIKernel, error)

func CIKernelKernelWithString

func CIKernelKernelWithString(string_ *foundation.NSString) *CIKernel

func (*CIKernel) ApplyWithExtentRoiCallbackArguments

func (o *CIKernel) ApplyWithExtentRoiCallbackArguments(extent corefoundation.CGRect, callback objc.Block, args *foundation.NSArray[objc.ID]) *CIImage

func (*CIKernel) Name

func (o *CIKernel) Name() *foundation.NSString

func (*CIKernel) SetROISelector

func (o *CIKernel) SetROISelector(method objc.SEL)

type CIPDF417CodeDescriptor

type CIPDF417CodeDescriptor struct {
	CIBarcodeDescriptor
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor

func CIPDF417CodeDescriptorDescriptorWithPayloadIsCompactRowCountColumnCount

func CIPDF417CodeDescriptorDescriptorWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload *foundation.NSData, isCompact bool, rowCount int, columnCount int) *CIPDF417CodeDescriptor

Creates an PDF417 code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the PDF417 code symbol. - isCompact: A Boolean indicating whether or not the PDF417 code is compact. - rowCount: The number of rows in the PDF417 code, from 3 to 90. - columnCount: The number of columns in the Aztec code, from 1 to 30. - Returns: An autoreleased “CIPDF417CodeDescriptor“ instance or `nil` if the parameters are invalid

func CIPDF417CodeDescriptorFromID

func CIPDF417CodeDescriptorFromID(id objc.ID) *CIPDF417CodeDescriptor

func (*CIPDF417CodeDescriptor) ColumnCount

func (o *CIPDF417CodeDescriptor) ColumnCount() int

The number of columns in the PDF417 code symbol. Valid column count values are from 1 to 30. This count excluded the columns used to indicate the symbol structure.

func (*CIPDF417CodeDescriptor) ErrorCorrectedPayload

func (o *CIPDF417CodeDescriptor) ErrorCorrectedPayload() *foundation.NSData

The error-corrected payload containing the data encoded in the PDF417 code symbol. The first codeword indicates the number of data codewords in the errorCorrectedPayload. PDF417 codes are comprised of a start character on the left and a stop character on the right. Each row begins and ends with special characters indicating the current row as well as information about the dimensions of the PDF417 symbol. The errorCorrectedPayload represents the sequence of PDF417 codewords that make up the body of the message. The first codeword indicates the number of codewords in the message. This count includes the "count" codeword and any padding codewords, but does not include the error correction codewords. Each codeword is a 16-bit value in the range of 0...928. The sequence is to be interpreted as described in the PDF417 bar code symbology specification -- ISO/IEC 15438:2006(E).

func (*CIPDF417CodeDescriptor) InitWithPayloadIsCompactRowCountColumnCount

func (o *CIPDF417CodeDescriptor) InitWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload *foundation.NSData, isCompact bool, rowCount int, columnCount int) *CIPDF417CodeDescriptor

Initializes an PDF417 code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the PDF417 code symbol. - isCompact: A Boolean indicating whether or not the PDF417 code is compact. - rowCount: The number of rows in the PDF417 code, from 3 to 90. - columnCount: The number of columns in the Aztec code, from 1 to 30. - Returns: An initialized “CIPDF417CodeDescriptor“ instance or `nil` if the parameters are invalid

func (*CIPDF417CodeDescriptor) IsCompact

func (o *CIPDF417CodeDescriptor) IsCompact() bool

A boolean value telling if the PDF417 code is compact. Compact PDF417 symbols have abbreviated right-side guard bars.

func (*CIPDF417CodeDescriptor) RowCount

func (o *CIPDF417CodeDescriptor) RowCount() int

The number of rows in the PDF417 code symbol. Valid row count values are from 3 to 90.

type CIPlugIn

type CIPlugIn struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciplugin

func CIPlugInFromID

func CIPlugInFromID(id objc.ID) *CIPlugIn

type CIPlugInRegistration

type CIPlugInRegistration interface {
	Load(host unsafe.Pointer) bool
}

CIPlugInRegistration wraps the ObjC protocol CIPlugInRegistration.

type CIQRCodeDescriptor

type CIQRCodeDescriptor struct {
	CIBarcodeDescriptor
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciqrcodedescriptor

func CIQRCodeDescriptorDescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel

func CIQRCodeDescriptorDescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload *foundation.NSData, symbolVersion int, maskPattern uint8, errorCorrectionLevel CIQRCodeErrorCorrectionLevel) *CIQRCodeDescriptor

Creates a QR code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the QR code symbol. - symbolVersion: The symbol version, from 1 through 40. - maskPattern: The mask pattern to use in the QR code, from 0 to 7. - errorCorrectionLevel: The QR code's error correction level: L, M, Q, or H. - Returns: An autoreleased “CIAztecCodeDescriptor“ instance or `nil` if the parameters are invalid

func CIQRCodeDescriptorFromID

func CIQRCodeDescriptorFromID(id objc.ID) *CIQRCodeDescriptor

func (*CIQRCodeDescriptor) ErrorCorrectedPayload

func (o *CIQRCodeDescriptor) ErrorCorrectedPayload() *foundation.NSData

The error-corrected codeword payload that comprises the QR code symbol. QR Codes are formally specified in ISO/IEC 18004:2006(E). Section 6.4.10 "Bitstream to codeword conversion" specifies the set of 8-bit codewords in the symbol immediately prior to splitting the message into blocks and applying error correction. During decode, error correction is applied and if successful, the message is re-ordered to the state immediately following "Bitstream to codeword conversion." The `errorCorrectedPayload` corresponds to this sequence of 8-bit codewords.

func (*CIQRCodeDescriptor) ErrorCorrectionLevel

func (o *CIQRCodeDescriptor) ErrorCorrectionLevel() CIQRCodeErrorCorrectionLevel

The error correction level of the QR code symbol. QR Codes support four levels of Reed-Solomon error correction. The possible error correction levels are enumerated in “CIDataMatrixCodeECCVersion“.

func (*CIQRCodeDescriptor) InitWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel

func (o *CIQRCodeDescriptor) InitWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload *foundation.NSData, symbolVersion int, maskPattern uint8, errorCorrectionLevel CIQRCodeErrorCorrectionLevel) *CIQRCodeDescriptor

Initializes a QR code descriptor for the given payload and parameters. - Parameters: - errorCorrectedPayload: The data to encode in the QR code symbol. - symbolVersion: The symbol version, from 1 through 40. - maskPattern: The mask pattern to use in the QR code, from 0 to 7. - errorCorrectionLevel: The QR code's error correction level: L, M, Q, or H. - Returns: An initialized “CIAztecCodeDescriptor“ instance or `nil` if the parameters are invalid

func (*CIQRCodeDescriptor) MaskPattern

func (o *CIQRCodeDescriptor) MaskPattern() uint8

The data mask pattern for the QR code symbol. QR Codes support eight data mask patterns, which are used to avoid large black or large white areas inside the symbol body. Valid values range from 0 to 7.

func (*CIQRCodeDescriptor) SymbolVersion

func (o *CIQRCodeDescriptor) SymbolVersion() int

The version of the QR code which corresponds to the size of the QR code symbol. ISO/IEC 18004 defines versions from 1 to 40, where a higher symbol version indicates a larger data-carrying capacity. This field is required in order to properly interpret the error corrected payload.

type CIQRCodeErrorCorrectionLevel

type CIQRCodeErrorCorrectionLevel int64
const (
	// Indicates that approximately 20% of the symbol data is dedicated to error correction.
	CIQRCodeErrorCorrectionLevelL CIQRCodeErrorCorrectionLevel = 76
	// Indicates that approximately 37% of the symbol data is dedicated to error correction.
	CIQRCodeErrorCorrectionLevelM CIQRCodeErrorCorrectionLevel = 77
	// Indicates that approximately 55% of the symbol data is dedicated to error correction.
	CIQRCodeErrorCorrectionLevelQ CIQRCodeErrorCorrectionLevel = 81
	// Indicates that approximately 65% of the symbol data is dedicated to error correction.
	CIQRCodeErrorCorrectionLevelH CIQRCodeErrorCorrectionLevel = 72
)

func (CIQRCodeErrorCorrectionLevel) String

type CIQRCodeFeature

type CIQRCodeFeature struct {
	CIFeature
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciqrcodefeature

func CIQRCodeFeatureFromID

func CIQRCodeFeatureFromID(id objc.ID) *CIQRCodeFeature

func (*CIQRCodeFeature) BottomLeft

func (o *CIQRCodeFeature) BottomLeft() corefoundation.CGPoint

The image coordinate of the lower-left corner of the detected QR code.

func (*CIQRCodeFeature) BottomRight

func (o *CIQRCodeFeature) BottomRight() corefoundation.CGPoint

The image coordinate of the lower-right corner of the detected QR code.

func (*CIQRCodeFeature) MessageString

func (o *CIQRCodeFeature) MessageString() *foundation.NSString

The string decoded from the detected barcode.

func (*CIQRCodeFeature) SymbolDescriptor

func (o *CIQRCodeFeature) SymbolDescriptor() *CIQRCodeDescriptor

An abstract representation of a QR Code symbol. The property is a “CIQRCodeDescriptor“ instance that contains the payload, symbol version, mask pattern, and error correction level, so the QR Code can be reproduced.

func (*CIQRCodeFeature) TopLeft

func (o *CIQRCodeFeature) TopLeft() corefoundation.CGPoint

The image coordinate of the upper-left corner of the detected QR code.

func (*CIQRCodeFeature) TopRight

func (o *CIQRCodeFeature) TopRight() corefoundation.CGPoint

The image coordinate of the upper-right corner of the detected QR code.

type CIRAWFilter

type CIRAWFilter struct {
	CIFilter
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cirawfilter

func CIRAWFilterFilterWithCVPixelBufferProperties

func CIRAWFilterFilterWithCVPixelBufferProperties(buffer unsafe.Pointer, properties *foundation.NSDictionary[objc.ID, objc.ID]) *CIRAWFilter

func CIRAWFilterFilterWithImageDataIdentifierHint

func CIRAWFilterFilterWithImageDataIdentifierHint(data *foundation.NSData, identifierHint *foundation.NSString) *CIRAWFilter

func CIRAWFilterFilterWithImageURL

func CIRAWFilterFilterWithImageURL(url *foundation.NSURL) *CIRAWFilter

func CIRAWFilterFromID

func CIRAWFilterFromID(id objc.ID) *CIRAWFilter

func (*CIRAWFilter) BaselineExposure

func (o *CIRAWFilter) BaselineExposure() float32

func (*CIRAWFilter) BoostAmount

func (o *CIRAWFilter) BoostAmount() float32

func (*CIRAWFilter) BoostShadowAmount

func (o *CIRAWFilter) BoostShadowAmount() float32

func (*CIRAWFilter) ColorNoiseReductionAmount

func (o *CIRAWFilter) ColorNoiseReductionAmount() float32

func (*CIRAWFilter) ContrastAmount

func (o *CIRAWFilter) ContrastAmount() float32

func (*CIRAWFilter) DecoderVersion

func (o *CIRAWFilter) DecoderVersion() *foundation.NSString

func (*CIRAWFilter) DetailAmount

func (o *CIRAWFilter) DetailAmount() float32

func (*CIRAWFilter) Exposure

func (o *CIRAWFilter) Exposure() float32

func (*CIRAWFilter) ExtendedDynamicRangeAmount

func (o *CIRAWFilter) ExtendedDynamicRangeAmount() float32

func (*CIRAWFilter) IsColorNoiseReductionSupported

func (o *CIRAWFilter) IsColorNoiseReductionSupported() bool

func (*CIRAWFilter) IsContrastSupported

func (o *CIRAWFilter) IsContrastSupported() bool

func (*CIRAWFilter) IsDetailSupported

func (o *CIRAWFilter) IsDetailSupported() bool

func (*CIRAWFilter) IsDraftModeEnabled

func (o *CIRAWFilter) IsDraftModeEnabled() bool

func (*CIRAWFilter) IsGamutMappingEnabled

func (o *CIRAWFilter) IsGamutMappingEnabled() bool

func (*CIRAWFilter) IsHighlightRecoveryEnabled

func (o *CIRAWFilter) IsHighlightRecoveryEnabled() bool

func (*CIRAWFilter) IsHighlightRecoverySupported

func (o *CIRAWFilter) IsHighlightRecoverySupported() bool

func (*CIRAWFilter) IsLensCorrectionEnabled

func (o *CIRAWFilter) IsLensCorrectionEnabled() bool

func (*CIRAWFilter) IsLensCorrectionSupported

func (o *CIRAWFilter) IsLensCorrectionSupported() bool

func (*CIRAWFilter) IsLocalToneMapSupported

func (o *CIRAWFilter) IsLocalToneMapSupported() bool

func (*CIRAWFilter) IsLuminanceNoiseReductionSupported

func (o *CIRAWFilter) IsLuminanceNoiseReductionSupported() bool

func (*CIRAWFilter) IsMoireReductionSupported

func (o *CIRAWFilter) IsMoireReductionSupported() bool

func (*CIRAWFilter) IsSharpnessSupported

func (o *CIRAWFilter) IsSharpnessSupported() bool

func (*CIRAWFilter) LinearSpaceFilter

func (o *CIRAWFilter) LinearSpaceFilter() *CIFilter

func (*CIRAWFilter) LocalToneMapAmount

func (o *CIRAWFilter) LocalToneMapAmount() float32

func (*CIRAWFilter) LuminanceNoiseReductionAmount

func (o *CIRAWFilter) LuminanceNoiseReductionAmount() float32

func (*CIRAWFilter) MoireReductionAmount

func (o *CIRAWFilter) MoireReductionAmount() float32

func (*CIRAWFilter) NativeSize

func (o *CIRAWFilter) NativeSize() corefoundation.CGSize

func (*CIRAWFilter) NeutralChromaticity

func (o *CIRAWFilter) NeutralChromaticity() corefoundation.CGPoint

func (*CIRAWFilter) NeutralLocation

func (o *CIRAWFilter) NeutralLocation() corefoundation.CGPoint

func (*CIRAWFilter) NeutralTemperature

func (o *CIRAWFilter) NeutralTemperature() float32

func (*CIRAWFilter) NeutralTint

func (o *CIRAWFilter) NeutralTint() float32

func (*CIRAWFilter) Orientation

func (*CIRAWFilter) PortraitEffectsMatte

func (o *CIRAWFilter) PortraitEffectsMatte() *CIImage

func (*CIRAWFilter) PreviewImage

func (o *CIRAWFilter) PreviewImage() *CIImage

func (*CIRAWFilter) Properties

func (o *CIRAWFilter) Properties() *foundation.NSDictionary[objc.ID, objc.ID]

func (*CIRAWFilter) ScaleFactor

func (o *CIRAWFilter) ScaleFactor() float32

func (*CIRAWFilter) SemanticSegmentationGlassesMatte

func (o *CIRAWFilter) SemanticSegmentationGlassesMatte() *CIImage

func (*CIRAWFilter) SemanticSegmentationHairMatte

func (o *CIRAWFilter) SemanticSegmentationHairMatte() *CIImage

func (*CIRAWFilter) SemanticSegmentationSkinMatte

func (o *CIRAWFilter) SemanticSegmentationSkinMatte() *CIImage

func (*CIRAWFilter) SemanticSegmentationSkyMatte

func (o *CIRAWFilter) SemanticSegmentationSkyMatte() *CIImage

func (*CIRAWFilter) SemanticSegmentationTeethMatte

func (o *CIRAWFilter) SemanticSegmentationTeethMatte() *CIImage

func (*CIRAWFilter) SetBaselineExposure

func (o *CIRAWFilter) SetBaselineExposure(baselineExposure float32)

func (*CIRAWFilter) SetBoostAmount

func (o *CIRAWFilter) SetBoostAmount(boostAmount float32)

func (*CIRAWFilter) SetBoostShadowAmount

func (o *CIRAWFilter) SetBoostShadowAmount(boostShadowAmount float32)

func (*CIRAWFilter) SetColorNoiseReductionAmount

func (o *CIRAWFilter) SetColorNoiseReductionAmount(colorNoiseReductionAmount float32)

func (*CIRAWFilter) SetContrastAmount

func (o *CIRAWFilter) SetContrastAmount(contrastAmount float32)

func (*CIRAWFilter) SetDecoderVersion

func (o *CIRAWFilter) SetDecoderVersion(decoderVersion *foundation.NSString)

func (*CIRAWFilter) SetDetailAmount

func (o *CIRAWFilter) SetDetailAmount(detailAmount float32)

func (*CIRAWFilter) SetDraftModeEnabled

func (o *CIRAWFilter) SetDraftModeEnabled(draftModeEnabled bool)

func (*CIRAWFilter) SetExposure

func (o *CIRAWFilter) SetExposure(exposure float32)

func (*CIRAWFilter) SetExtendedDynamicRangeAmount

func (o *CIRAWFilter) SetExtendedDynamicRangeAmount(extendedDynamicRangeAmount float32)

func (*CIRAWFilter) SetGamutMappingEnabled

func (o *CIRAWFilter) SetGamutMappingEnabled(gamutMappingEnabled bool)

func (*CIRAWFilter) SetHighlightRecoveryEnabled

func (o *CIRAWFilter) SetHighlightRecoveryEnabled(highlightRecoveryEnabled bool)

func (*CIRAWFilter) SetLensCorrectionEnabled

func (o *CIRAWFilter) SetLensCorrectionEnabled(lensCorrectionEnabled bool)

func (*CIRAWFilter) SetLinearSpaceFilter

func (o *CIRAWFilter) SetLinearSpaceFilter(linearSpaceFilter *CIFilter)

func (*CIRAWFilter) SetLocalToneMapAmount

func (o *CIRAWFilter) SetLocalToneMapAmount(localToneMapAmount float32)

func (*CIRAWFilter) SetLuminanceNoiseReductionAmount

func (o *CIRAWFilter) SetLuminanceNoiseReductionAmount(luminanceNoiseReductionAmount float32)

func (*CIRAWFilter) SetMoireReductionAmount

func (o *CIRAWFilter) SetMoireReductionAmount(moireReductionAmount float32)

func (*CIRAWFilter) SetNeutralChromaticity

func (o *CIRAWFilter) SetNeutralChromaticity(neutralChromaticity corefoundation.CGPoint)

func (*CIRAWFilter) SetNeutralLocation

func (o *CIRAWFilter) SetNeutralLocation(neutralLocation corefoundation.CGPoint)

func (*CIRAWFilter) SetNeutralTemperature

func (o *CIRAWFilter) SetNeutralTemperature(neutralTemperature float32)

func (*CIRAWFilter) SetNeutralTint

func (o *CIRAWFilter) SetNeutralTint(neutralTint float32)

func (*CIRAWFilter) SetOrientation

func (o *CIRAWFilter) SetOrientation(orientation imageio.CGImagePropertyOrientation)

func (*CIRAWFilter) SetScaleFactor

func (o *CIRAWFilter) SetScaleFactor(scaleFactor float32)

func (*CIRAWFilter) SetShadowBias

func (o *CIRAWFilter) SetShadowBias(shadowBias float32)

func (*CIRAWFilter) SetSharpnessAmount

func (o *CIRAWFilter) SetSharpnessAmount(sharpnessAmount float32)

func (*CIRAWFilter) ShadowBias

func (o *CIRAWFilter) ShadowBias() float32

func (*CIRAWFilter) SharpnessAmount

func (o *CIRAWFilter) SharpnessAmount() float32

func (*CIRAWFilter) SupportedDecoderVersions

func (o *CIRAWFilter) SupportedDecoderVersions() *foundation.NSArray[*foundation.NSString]

type CIRectangleFeature

type CIRectangleFeature struct {
	CIFeature
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cirectanglefeature

func CIRectangleFeatureFromID

func CIRectangleFeatureFromID(id objc.ID) *CIRectangleFeature

func (*CIRectangleFeature) BottomLeft

func (o *CIRectangleFeature) BottomLeft() corefoundation.CGPoint

The image coordinate of the lower-left corner of the detected rectangle.

func (*CIRectangleFeature) BottomRight

func (o *CIRectangleFeature) BottomRight() corefoundation.CGPoint

The image coordinate of the lower-right corner of the detected rectangle.

func (*CIRectangleFeature) TopLeft

The image coordinate of the upper-left corner of the detected rectangle.

func (*CIRectangleFeature) TopRight

The image coordinate of the upper-right corner of the detected rectangle.

type CIRenderDestination

type CIRenderDestination struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cirenderdestination

func CIRenderDestinationFromID

func CIRenderDestinationFromID(id objc.ID) *CIRenderDestination

func (*CIRenderDestination) AlphaMode

func (*CIRenderDestination) BlendKernel

func (o *CIRenderDestination) BlendKernel() *CIBlendKernel

func (*CIRenderDestination) BlendsInDestinationColorSpace

func (o *CIRenderDestination) BlendsInDestinationColorSpace() bool

func (*CIRenderDestination) CaptureTraceURL

func (o *CIRenderDestination) CaptureTraceURL() *foundation.NSURL

Tell the next render using this destination to capture a Metal trace. If this property is set to a file-based URL, then the next render using this destination will capture a Metal trace, deleting any existing file if present. This property is nil by default.

func (*CIRenderDestination) ColorSpace

func (o *CIRenderDestination) ColorSpace() unsafe.Pointer

func (*CIRenderDestination) Height

func (o *CIRenderDestination) Height() uint

func (*CIRenderDestination) InitWithBitmapDataWidthHeightBytesPerRowFormat

func (o *CIRenderDestination) InitWithBitmapDataWidthHeightBytesPerRowFormat(data unsafe.Pointer, width uint, height uint, bytesPerRow uint, format int) *CIRenderDestination

func (*CIRenderDestination) InitWithGLTextureTargetWidthHeight

func (o *CIRenderDestination) InitWithGLTextureTargetWidthHeight(texture uint, target uint, width uint, height uint) *CIRenderDestination

func (*CIRenderDestination) InitWithIOSurface

func (o *CIRenderDestination) InitWithIOSurface(surface unsafe.Pointer) *CIRenderDestination

func (*CIRenderDestination) InitWithMTLTextureCommandBuffer

func (o *CIRenderDestination) InitWithMTLTextureCommandBuffer(texture metal.MTLTexture, commandBuffer metal.MTLCommandBuffer) *CIRenderDestination

func (*CIRenderDestination) InitWithPixelBuffer

func (o *CIRenderDestination) InitWithPixelBuffer(pixelBuffer unsafe.Pointer) *CIRenderDestination

func (*CIRenderDestination) InitWithWidthHeightPixelFormatCommandBufferMtlTextureProvider

func (o *CIRenderDestination) InitWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width uint, height uint, pixelFormat metal.MTLPixelFormat, commandBuffer metal.MTLCommandBuffer, block objc.Block) *CIRenderDestination

func (*CIRenderDestination) IsClamped

func (o *CIRenderDestination) IsClamped() bool

func (*CIRenderDestination) IsDithered

func (o *CIRenderDestination) IsDithered() bool

func (*CIRenderDestination) IsFlipped

func (o *CIRenderDestination) IsFlipped() bool

func (*CIRenderDestination) SetAlphaMode

func (o *CIRenderDestination) SetAlphaMode(alphaMode CIRenderDestinationAlphaMode)

func (*CIRenderDestination) SetBlendKernel

func (o *CIRenderDestination) SetBlendKernel(blendKernel *CIBlendKernel)

func (*CIRenderDestination) SetBlendsInDestinationColorSpace

func (o *CIRenderDestination) SetBlendsInDestinationColorSpace(blendsInDestinationColorSpace bool)

func (*CIRenderDestination) SetCaptureTraceURL

func (o *CIRenderDestination) SetCaptureTraceURL(captureTraceURL *foundation.NSURL)

func (*CIRenderDestination) SetClamped

func (o *CIRenderDestination) SetClamped(clamped bool)

func (*CIRenderDestination) SetColorSpace

func (o *CIRenderDestination) SetColorSpace(colorSpace unsafe.Pointer)

func (*CIRenderDestination) SetDithered

func (o *CIRenderDestination) SetDithered(dithered bool)

func (*CIRenderDestination) SetFlipped

func (o *CIRenderDestination) SetFlipped(flipped bool)

func (*CIRenderDestination) Width

func (o *CIRenderDestination) Width() uint

type CIRenderDestinationAlphaMode

type CIRenderDestinationAlphaMode uint64
const (
	CIRenderDestinationAlphaNone            CIRenderDestinationAlphaMode = 0
	CIRenderDestinationAlphaPremultiplied   CIRenderDestinationAlphaMode = 1
	CIRenderDestinationAlphaUnpremultiplied CIRenderDestinationAlphaMode = 2
)

func (CIRenderDestinationAlphaMode) String

type CIRenderInfo

type CIRenderInfo struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cirenderinfo

func CIRenderInfoFromID

func CIRenderInfoFromID(id objc.ID) *CIRenderInfo

func (*CIRenderInfo) KernelCompileTime

func (o *CIRenderInfo) KernelCompileTime() float64

func (*CIRenderInfo) KernelExecutionTime

func (o *CIRenderInfo) KernelExecutionTime() float64

func (*CIRenderInfo) PassCount

func (o *CIRenderInfo) PassCount() int

func (*CIRenderInfo) PixelsProcessed

func (o *CIRenderInfo) PixelsProcessed() int

type CIRenderTask

type CIRenderTask struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cirendertask

func CIRenderTaskFromID

func CIRenderTaskFromID(id objc.ID) *CIRenderTask

func (*CIRenderTask) WaitUntilCompletedAndReturnError

func (o *CIRenderTask) WaitUntilCompletedAndReturnError() (*CIRenderInfo, error)

type CISampler

type CISampler struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/cisampler

func CISamplerFromID

func CISamplerFromID(id objc.ID) *CISampler

func CISamplerSamplerWithImage

func CISamplerSamplerWithImage(im *CIImage) *CISampler

func CISamplerSamplerWithImageOptions

func CISamplerSamplerWithImageOptions(im *CIImage, dict *foundation.NSDictionary[objc.ID, objc.ID]) *CISampler

func (*CISampler) Definition

func (o *CISampler) Definition() *CIFilterShape

func (*CISampler) Extent

func (o *CISampler) Extent() corefoundation.CGRect

func (*CISampler) InitWithImage

func (o *CISampler) InitWithImage(im *CIImage) *CISampler

func (*CISampler) InitWithImageOptions

func (o *CISampler) InitWithImageOptions(im *CIImage, dict *foundation.NSDictionary[objc.ID, objc.ID]) *CISampler

type CITextFeature

type CITextFeature struct {
	CIFeature
}

Apple documentation: https://developer.apple.com/documentation/coreimage/citextfeature

func CITextFeatureFromID

func CITextFeatureFromID(id objc.ID) *CITextFeature

func (*CITextFeature) BottomLeft

func (o *CITextFeature) BottomLeft() corefoundation.CGPoint

The image coordinate of the lower-left corner of the detected text.

func (*CITextFeature) BottomRight

func (o *CITextFeature) BottomRight() corefoundation.CGPoint

The image coordinate of the lower-right corner of the detected text.

func (*CITextFeature) SubFeatures

func (o *CITextFeature) SubFeatures() *foundation.NSArray[objc.ID]

An array containing additional features detected within the feature. A text detector can identify both a major region that is likely to contain text as well as the areas within that region that likely to contain individual text features. Such features might be single characters, groups of closely-packed characters, or entire words. To detect sub-features, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorReturnSubFeatures“ option set to true.

func (*CITextFeature) TopLeft

func (o *CITextFeature) TopLeft() corefoundation.CGPoint

The image coordinate of the upper-left corner of the detected text.

func (*CITextFeature) TopRight

func (o *CITextFeature) TopRight() corefoundation.CGPoint

The image coordinate of the upper-right corner of the detected text.

type CIVector

type CIVector struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/coreimage/civector

func CIVectorFromID

func CIVectorFromID(id objc.ID) *CIVector

func CIVectorVectorWithCGAffineTransform

func CIVectorVectorWithCGAffineTransform(t corefoundation.CGAffineTransform) *CIVector

Create a Core Image vector object that is initialized with six values provided by a `CGAffineTransform` structure. The `CGAffineTransform` structure’s `a`, `b`, `c`, `d`, `tx` and `ty` values are stored in the vector’s six values. - Parameters: - t: The `CGAffineTransform` structure. - Returns: An autoreleased “CIVector“ object of length 6.

func CIVectorVectorWithCGPoint

func CIVectorVectorWithCGPoint(p corefoundation.CGPoint) *CIVector

Create a Core Image vector object that is initialized with two values provided by a `CGPoint` structure. The `CGRect` structure’s `y` and `y` values are stored in the vector’s two values. - Parameters: - p: The `CGPoint` structure. - Returns: An autoreleased “CIVector“ object of length 2.

func CIVectorVectorWithCGRect

func CIVectorVectorWithCGRect(r corefoundation.CGRect) *CIVector

Create a Core Image vector object that is initialized with four values provided by a `CGRect` structure. The `CGRect` structure’s `x`, `y`, `height` and `width` values are stored in the vector’s four values. - Parameters: - r: The `CGRect` structure. - Returns: An autoreleased “CIVector“ object of length 4.

func CIVectorVectorWithString

func CIVectorVectorWithString(representation *foundation.NSString) *CIVector

Create a Core Image vector object with values provided in a string representation. - Parameters: - representation: A string that is in one of the formats returned by the `stringRepresentation` method. - Returns: An autoreleased “CIVector“ object.

func CIVectorVectorWithValuesCount

func CIVectorVectorWithValuesCount(values *float64, count uint) *CIVector

Create a Core Image vector object that is initialized with the specified values. - Parameters: - values: The pointer `CGFloat` values to initialize the vector with. - count: The number of `CGFloats` specified by the `values` parameter. - Returns: An autoreleased “CIVector“ object of length `count`.

func CIVectorVectorWithX

func CIVectorVectorWithX(x float64) *CIVector

Create a Core Image vector object that is initialized with one value. - Parameters: - x: The value for the first position in the vector. - Returns: An autoreleased “CIVector“ object of length 1.

func CIVectorVectorWithXY

func CIVectorVectorWithXY(x float64, y float64) *CIVector

Create a Core Image vector object that is initialized with two values. - Parameters: - x: The value for the first position in the vector. - y: The value for the second position in the vector. - Returns: An autoreleased “CIVector“ object of length 2.

func CIVectorVectorWithXYZ

func CIVectorVectorWithXYZ(x float64, y float64, z float64) *CIVector

Create a Core Image vector object that is initialized with three values. - Parameters: - x: The value for the first position in the vector. - y: The value for the second position in the vector. - z: The value for the third position in the vector. - Returns: An autoreleased “CIVector“ object of length 3.

func CIVectorVectorWithXYZW

func CIVectorVectorWithXYZW(x float64, y float64, z float64, w float64) *CIVector

Create a Core Image vector object that is initialized with four values. - Parameters: - x: The value for the first position in the vector. - y: The value for the second position in the vector. - z: The value for the third position in the vector. - w: The value for the forth position in the vector. - Returns: An autoreleased “CIVector“ object of length 4.

func (*CIVector) CGAffineTransformValue

func (o *CIVector) CGAffineTransformValue() corefoundation.CGAffineTransform

Returns the values in the vector as a `CGAffineTransformValue` structure. - Returns: Reading this property creates a `CGAffineTransformValue` structure from the first six values in the vector.

func (*CIVector) CGPointValue

func (o *CIVector) CGPointValue() corefoundation.CGPoint

Returns the values in the vector as a `CGPoint` structure. - Returns: Reading this property returns a `CGPoint` structure from the `X` and `Y` values from the vector.

func (*CIVector) CGRectValue

func (o *CIVector) CGRectValue() corefoundation.CGRect

Returns the values in the vector as a `CGRect` structure. - Returns: Reading this property creates a `CGRect` structure whose origin is the `X`, `Y`, `Z` and `W` values from the vector.

func (*CIVector) Count

func (o *CIVector) Count() uint

The number of items in the vector.

func (*CIVector) InitWithCGAffineTransform

func (o *CIVector) InitWithCGAffineTransform(t corefoundation.CGAffineTransform) *CIVector

Initialize a Core Image vector object with six values provided by a `CGAffineTransform` structure. The `CGAffineTransform` structure’s `a`, `b`, `c`, `c`, `tx` and `ty` values are stored in the vector’s six values. - Parameters: - t: The `CGAffineTransform` structure. - Returns: An initialized “CIVector“ object of length 6.

func (*CIVector) InitWithCGPoint

func (o *CIVector) InitWithCGPoint(p corefoundation.CGPoint) *CIVector

Initialize a Core Image vector object with two values provided by a `CGPoint` structure. The `CGRect` structure’s `y` and `y` values are stored in the vector’s two values. - Parameters: - p: The `CGPoint` structure. - Returns: An initialized “CIVector“ object of length 2.

func (*CIVector) InitWithCGRect

func (o *CIVector) InitWithCGRect(r corefoundation.CGRect) *CIVector

Initialize a Core Image vector object with four values provided by a `CGRect` structure. The `CGRect` structure’s `x`, `y`, `height` and `width` values are stored in the vector’s four values. - Parameters: - r: The `CGRect` structure. - Returns: An initialized “CIVector“ object of length 4.

func (*CIVector) InitWithString

func (o *CIVector) InitWithString(representation *foundation.NSString) *CIVector

Initialize a Core Image vector object with values provided in a string representation. - Parameters: - representation: A string that is in one of the formats returned by the `stringRepresentation` method. - Returns: An initialized “CIVector“ object.

func (*CIVector) InitWithValuesCount

func (o *CIVector) InitWithValuesCount(values *float64, count uint) *CIVector

Initialize a Core Image vector object with the specified the values. - Parameters: - values: A pointer `CGFloat` values for vector. - count: The number of `CGFloats` specified by the `values` parameter. - Returns: An initialized “CIVector“ object of length `count`.

func (*CIVector) InitWithX

func (o *CIVector) InitWithX(x float64) *CIVector

Initialize a Core Image vector object with one value. - Parameters: - x: The value for the first position in the vector. - Returns: An initialized “CIVector“ object of length 1.

func (*CIVector) InitWithXY

func (o *CIVector) InitWithXY(x float64, y float64) *CIVector

Initialize a Core Image vector object with two values. - Parameters: - x: The value for the first position in the vector. - y: The value for the second position in the vector. - Returns: An initialized “CIVector“ object of length 2.

func (*CIVector) InitWithXYZ

func (o *CIVector) InitWithXYZ(x float64, y float64, z float64) *CIVector

Initialize a Core Image vector object with three values. - Parameters: - x: The value for the first position in the vector. - y: The value for the second position in the vector. - z: The value for the third position in the vector. - Returns: An initialized “CIVector“ object of length 3.

func (*CIVector) InitWithXYZW

func (o *CIVector) InitWithXYZW(x float64, y float64, z float64, w float64) *CIVector

Initialize a Core Image vector object with four values. - Parameters: - x: The value for the first position in the vector. - y: The value for the second position in the vector. - z: The value for the third position in the vector. - w: The value for the forth position in the vector. - Returns: An initialized “CIVector“ object of length 4.

func (*CIVector) StringRepresentation

func (o *CIVector) StringRepresentation() *foundation.NSString

Returns a formatted string with all the values of a `CIVector`. Some example string representations of vectors: `CIVector` | `stringRepresentation` ---------------------------------------- | -------------- `[CIVector vectorWithX:1.0 Y:0.5 Z:0.3]` | `"[1.0 0.5 0.3]"` `[CIVector vectorWithX:10.0 Y:23.0]` | `"[10.0 23.0]"` To create a “CIVector“ object from a string representation, use the “vectorWithString:“ method.

func (*CIVector) ValueAtIndex

func (o *CIVector) ValueAtIndex(index uint) float64

Returns a value from a specific position in the vector. The numbering of elements in a vector begins with zero. - Parameters: - index: The position in the vector of the value that you want to retrieve. - Returns: The value retrieved from the vector or `0` if the position is undefined.

func (*CIVector) W

func (o *CIVector) W() float64

The value located in the forth position in the vector.

func (*CIVector) X

func (o *CIVector) X() float64

The value located in the first position in the vector.

func (*CIVector) Y

func (o *CIVector) Y() float64

The value located in the second position in the vector.

func (*CIVector) Z

func (o *CIVector) Z() float64

The value located in the third position in the vector.

type CIWarpKernel

type CIWarpKernel struct {
	CIKernel
}

Apple documentation: https://developer.apple.com/documentation/coreimage/ciwarpkernel

func CIWarpKernelFromID

func CIWarpKernelFromID(id objc.ID) *CIWarpKernel

func CIWarpKernelKernelWithString

func CIWarpKernelKernelWithString(string_ *foundation.NSString) *CIWarpKernel

func (*CIWarpKernel) ApplyWithExtentRoiCallbackInputImageArguments

func (o *CIWarpKernel) ApplyWithExtentRoiCallbackInputImageArguments(extent corefoundation.CGRect, callback objc.Block, image *CIImage, args *foundation.NSArray[objc.ID]) *CIImage

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

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

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

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

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

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

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

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

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

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

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

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

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

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

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

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

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

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

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

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

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type MTLBuffer

type MTLBuffer interface {
}

MTLBuffer wraps the ObjC protocol MTLBuffer.

type MTLCommandBuffer

type MTLCommandBuffer interface {
}

MTLCommandBuffer wraps the ObjC protocol MTLCommandBuffer.

type MTLCommandQueue

type MTLCommandQueue interface {
}

MTLCommandQueue wraps the ObjC protocol MTLCommandQueue.

type MTLDevice

type MTLDevice interface {
}

MTLDevice wraps the ObjC protocol MTLDevice.

type MTLTexture

type MTLTexture interface {
}

MTLTexture wraps the ObjC protocol MTLTexture.

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

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

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

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

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

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

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

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

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type PMPageToPaperMappingType

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

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

type Ptrauth_key

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

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

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

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

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

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

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

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

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

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

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