Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVCaptureStillImageOutputMBS class.
AVCaptureStillImageOutputMBS.availableImageDataCodecTypes as string()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The value of this property is an array of Strings that you can use as values for the AVVideoCodecKey in the outputSettings property.
AVCaptureStillImageOutputMBS.availableImageDataCVPixelFormatTypes as Integer()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The value of this property is an array of numbers that you can use as values for the kCVPixelBufferPixelFormatTypeKey in the outputSettings property.
Currently only "jpeg".
Available in OS X v10.7 and later.
AVCaptureStillImageOutputMBS.captureStillImageAsynchronously(connection as AVCaptureConnectionMBS, prepareJpegStillImage as boolean, tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
connection: The connection from which to capture the image.
Pass true for prepareJpegStillImage to have the plugin prepare jpeg data for you.
The buffer attachments may contain metadata appropriate to the image data format. For example, a buffer containing JPEG data may carry a kCGImagePropertyExifDictionary as an attachment. See ImageIO/CGImageProperties.h for a list of keys and value types.
error
If the request could not be completed, an NSError object that describes the problem; otherwise nil.
This method returns immediately after it is invoked, later calling the AVFoundationMBS.captureStillImageAsynchronouslyCompleted event when image data is ready. If the request could not be completed, the error parameter will contain an NSError object describing the failure.
Available in OS X v10.7 and later.
With tag you can pass any value you like to the event later. This can be for example an object reference or a number in an array. Be aware that the reference to this tag value is kept until the event is called and can cause memory reference cycles.
Some examples using this method:
AVCaptureStillImageOutputMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVCaptureStillImageOutputMBS.outputSettings as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You specify the compression settings using keys from AVVideoSettings.h, or a dictionary of pixel buffer attributes using keys from CVPixelBuffer.h.
Currently the only supported keys are AVVideoCodecKey and kCVPixelBufferPixelFormatTypeKey. The recommended values are kCMVideoCodecType_JPEG, kCVPixelFormatType_420YpCbCr8BiPlanarFullRange and kCVPixelFormatType_32BGRA.
Available in OS X v10.7 and later.
(Read and Write computed property)
The items on this page are in the following plugins: MBS AVFoundation Plugin.