Contents

init(cvPixelBuffer:options:)

Initializes an image object from the contents of a Core Video pixel buffer using the specified options.

Declaration

init(cvPixelBuffer pixelBuffer: CVPixelBuffer, options: [CIImageOption : Any]? = nil)

Parameters

  • pixelBuffer:

    A CVPixelBuffer object.

  • options:

    A dictionary that contains options for creating an image object. (See Image Dictionary Keys.) The pixel format is supplied by the CVPixelBuffer object.

Return Value

The initialized image object.

See Also

Creating an Image