CIContext
Undocumented
-
Creates a UIImage from the given sample buffer input
Parameter
Parameter sampleBuffer: sample buffer inputReturns
UIImage from the sample buffer, otherwise nilDeclaration
Swift
public func uiimage(withSampleBuffer sampleBuffer: CMSampleBuffer) -> UIImage?
-
Creates a UIImage from the given pixel buffer input
Parameter
Parameter pixelBuffer: Pixel buffer inputReturns
UIImage from the pixel buffer, otherwise nilDeclaration
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 nilDeclaration
Swift
public func createPixelBuffer(fromPixelBuffer pixelBuffer: CVPixelBuffer, withOrientation orientation: CGImagePropertyOrientation, pixelBufferPool: CVPixelBufferPool) -> CVPixelBuffer?
- Parameters: