Contents

init(cvImageBuffer:options:)

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

Declaration

init(cvImageBuffer imageBuffer: CVImageBuffer, options: [CIImageOption : Any]? = nil)

Parameters

  • imageBuffer:

    A CVImageBuffer object in a supported pixel format constant. For more information, see Corevideo.

  • options:

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

Return Value

The initialized image object.

Discussion

The imageBuffer parameter must be in one of the following formats:

See Also

Creating an Image