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 supported image codec formats that can be specified in outputSettings. (read-only)
Example
dim a as new AVCaptureStillImageOutputMBS
MsgBox join(a.availableImageDataCodecTypes)

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 supported image pixel formats that can be specified in outputSettings. (read-only)
Example
dim a as new AVCaptureStillImageOutputMBS
dim availableImageDataCVPixelFormatTypes() as Integer = a.availableImageDataCVPixelFormatTypes
break // check array in debugger

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
Initiates a still image capture and returns immediately.

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
The constructor.

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
The compression settings for the output.

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.


The biggest plugin in space...