Share via


CameraExtensionCharacteristics.GetExtensionSupportedSizes Method

Definition

Overloads

GetExtensionSupportedSizes(Int32, Class)

Get a list of sizes compatible with klass to use as an output for the repeating request CameraExtensionSession#setRepeatingRequest.

GetExtensionSupportedSizes(Int32, Int32)

Check whether a given extension is available and return the supported output surface resolutions that can be used for high-quality capture requests via CameraExtensionSession#capture.

GetExtensionSupportedSizes(Int32, Class)

Get a list of sizes compatible with klass to use as an output for the repeating request CameraExtensionSession#setRepeatingRequest.

[Android.Runtime.Register("getExtensionSupportedSizes", "(ILjava/lang/Class;)Ljava/util/List;", "", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public System.Collections.Generic.IList<Android.Util.Size> GetExtensionSupportedSizes (int extension, Java.Lang.Class klass);
[<Android.Runtime.Register("getExtensionSupportedSizes", "(ILjava/lang/Class;)Ljava/util/List;", "", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.GetExtensionSupportedSizes : int * Java.Lang.Class -> System.Collections.Generic.IList<Android.Util.Size>

Parameters

extension
Int32

the extension type

klass
Class

a non-nullClass object reference

Returns

non-modifiable list of available sizes or an empty list if the Surface output is not supported

Attributes

Remarks

Get a list of sizes compatible with klass to use as an output for the repeating request CameraExtensionSession#setRepeatingRequest.

Note that device-specific extensions are allowed to support only a subset of the camera output surfaces and resolutions. The android.graphics.SurfaceTexture class is guaranteed at least one size for backward compatible cameras whereas other output classes are not guaranteed to be supported.

Starting with Android android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKEandroid.view.SurfaceView classes are also guaranteed to be supported and include the same resolutions as android.graphics.SurfaceTexture. Clients must set the desired SurfaceView resolution by calling android.view.SurfaceHolder#setFixedSize.

Java documentation for android.hardware.camera2.CameraExtensionCharacteristics.getExtensionSupportedSizes(int, java.lang.Class<T>).

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

GetExtensionSupportedSizes(Int32, Int32)

Check whether a given extension is available and return the supported output surface resolutions that can be used for high-quality capture requests via CameraExtensionSession#capture.

[Android.Runtime.Register("getExtensionSupportedSizes", "(II)Ljava/util/List;", "", ApiSince=31)]
public System.Collections.Generic.IList<Android.Util.Size> GetExtensionSupportedSizes (int extension, int format);
[<Android.Runtime.Register("getExtensionSupportedSizes", "(II)Ljava/util/List;", "", ApiSince=31)>]
member this.GetExtensionSupportedSizes : int * int -> System.Collections.Generic.IList<Android.Util.Size>

Parameters

extension
Int32

the extension type

format
Int32

device-specific extension output format

Returns

non-modifiable list of available sizes or an empty list if the format is not supported.

Attributes

Remarks

Check whether a given extension is available and return the supported output surface resolutions that can be used for high-quality capture requests via CameraExtensionSession#capture.

Note that device-specific extensions are allowed to support only a subset of the camera resolutions advertised by StreamConfigurationMap#getOutputSizes.

Device-specific extensions currently support at most two multi-frame capture surface formats. ImageFormat.JPEG will be supported by all extensions and ImageFormat.YUV_420_888 may or may not be supported.

Java documentation for android.hardware.camera2.CameraExtensionCharacteristics.getExtensionSupportedSizes(int, 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