CameraExtensionCharacteristics.GetExtensionSupportedSizes 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
GetExtensionSupportedSizes(Int32, Class) |
Get a list of sizes compatible with |
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 |
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-null
Class
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_CAKE
android.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
.
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.
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.