Sdílet prostřednictvím


StreamConfigurationMap.GetValidOutputFormatsForInput(Int32) Method

Definition

Get the image format output formats for a reprocessing input format.

[Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)]
public int[]? GetValidOutputFormatsForInput (int inputFormat);
[<Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)>]
member this.GetValidOutputFormatsForInput : int -> int[]

Parameters

inputFormat
Int32

Returns

Int32[]

an array of integer format

Attributes

Remarks

Get the image format output formats for a reprocessing input format.

When submitting a CaptureRequest with an input Surface of a given format, the only allowed target outputs of the CaptureRequest are the ones with a format listed in the return value of this method. Including any other output Surface as a target will throw an IllegalArgumentException. If no output format is supported given the input format, an empty int[] will be returned.

All image formats returned by this function will be defined in either ImageFormat or in PixelFormat (and there is no possibility of collision).

Formats listed in this array are guaranteed to return true if queried with #isOutputSupportedFor(int).

Java documentation for android.hardware.camera2.params.StreamConfigurationMap.getValidOutputFormatsForInput(int).

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