CIContext

Undocumented

  • Creates a UIImage from the given sample buffer input

    Parameter

    Parameter sampleBuffer: sample buffer input

    Returns

    UIImage from the sample buffer, otherwise nil

    Declaration

    Swift

    public func uiimage(withSampleBuffer sampleBuffer: CMSampleBuffer) -> UIImage?
  • Creates a UIImage from the given pixel buffer input

    Parameter

    Parameter pixelBuffer: Pixel buffer input

    Returns

    UIImage from the pixel buffer, otherwise nil

    Declaration

    Swift

    public func uiimage(withPixelBuffer pixelBuffer: CVPixelBuffer) -> UIImage?
  • Orient a pixel buffer using an exif orientation value.

  • Parameters:

    • pixelBuffer: Pixel buffer input
    • orientation: CGImage orientation for the new pixel buffer
    • pixelBufferPool: Pixel buffer pool at which to allocate the new buffer
  • Returns

    Oriented pixel buffer, otherwise nil

    Declaration

    Swift

    public func createPixelBuffer(fromPixelBuffer pixelBuffer: CVPixelBuffer, withOrientation orientation: CGImagePropertyOrientation, pixelBufferPool: CVPixelBufferPool) -> CVPixelBuffer?