OutputConfiguration.CreateInstancesForMultiResolutionOutput Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateInstancesForMultiResolutionOutput(ICollection<MultiResolutionStreamInfo>, ImageFormatType) |
Create a list of |
CreateInstancesForMultiResolutionOutput(MultiResolutionImageReader) |
Create a list of |
CreateInstancesForMultiResolutionOutput(ICollection<MultiResolutionStreamInfo>, ImageFormatType)
Create a list of OutputConfiguration
instances for a
android.hardware.camera2.params.MultiResolutionImageReader
.
[Android.Runtime.Register("createInstancesForMultiResolutionOutput", "(Ljava/util/Collection;I)Ljava/util/List;", "", ApiSince=35)]
public static System.Collections.Generic.IList<Android.Hardware.Camera2.Params.OutputConfiguration> CreateInstancesForMultiResolutionOutput (System.Collections.Generic.ICollection<Android.Hardware.Camera2.Params.MultiResolutionStreamInfo> streams, Android.Graphics.ImageFormatType format);
[<Android.Runtime.Register("createInstancesForMultiResolutionOutput", "(Ljava/util/Collection;I)Ljava/util/List;", "", ApiSince=35)>]
static member CreateInstancesForMultiResolutionOutput : System.Collections.Generic.ICollection<Android.Hardware.Camera2.Params.MultiResolutionStreamInfo> * Android.Graphics.ImageFormatType -> System.Collections.Generic.IList<Android.Hardware.Camera2.Params.OutputConfiguration>
Parameters
- streams
- ICollection<MultiResolutionStreamInfo>
The group of multi-resolution stream info objects, which are used to create a multi-resolution image reader containing a number of ImageReaders.
- format
- ImageFormatType
The format of the MultiResolutionImageReader. This must be one of the android.graphics.ImageFormat
or android.graphics.PixelFormat
constants
supported by the camera device. Note that not all formats are supported, like
ImageFormat.NV21
. The supported multi-resolution reader format can be
queried by MultiResolutionStreamConfigurationMap#getOutputFormats
.
Returns
The list of OutputConfiguration
objects for a MultiResolutionImageReader.
- Attributes
Remarks
Create a list of OutputConfiguration
instances for a android.hardware.camera2.params.MultiResolutionImageReader
.
This method can be used to create query OutputConfigurations for a MultiResolutionImageReader that can be included in a SessionConfiguration passed into CameraDeviceSetup#isSessionConfigurationSupported
before opening and setting up a camera device in full, at which point #setSurfacesForMultiResolutionOutput
can be used to link to the actual MultiResolutionImageReader.
This constructor takes same arguments used to create a MultiResolutionImageReader
: a collection of MultiResolutionStreamInfo
objects and the format.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
CreateInstancesForMultiResolutionOutput(MultiResolutionImageReader)
Create a list of OutputConfiguration
instances for the outputs used by a
android.hardware.camera2.MultiResolutionImageReader
.
[Android.Runtime.Register("createInstancesForMultiResolutionOutput", "(Landroid/hardware/camera2/MultiResolutionImageReader;)Ljava/util/Collection;", "", ApiSince=31)]
public static System.Collections.Generic.ICollection<Android.Hardware.Camera2.Params.OutputConfiguration> CreateInstancesForMultiResolutionOutput (Android.Hardware.Camera2.MultiResolutionImageReader multiResolutionImageReader);
[<Android.Runtime.Register("createInstancesForMultiResolutionOutput", "(Landroid/hardware/camera2/MultiResolutionImageReader;)Ljava/util/Collection;", "", ApiSince=31)>]
static member CreateInstancesForMultiResolutionOutput : Android.Hardware.Camera2.MultiResolutionImageReader -> System.Collections.Generic.ICollection<Android.Hardware.Camera2.Params.OutputConfiguration>
Parameters
- multiResolutionImageReader
- MultiResolutionImageReader
The multi-resolution image reader object.
Returns
- Attributes
Remarks
Create a list of OutputConfiguration
instances for the outputs used by a android.hardware.camera2.MultiResolutionImageReader
.
This constructor takes an argument for a android.hardware.camera2.MultiResolutionImageReader
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.