Freigeben über


CameraExtensionCharacteristics.GetPostviewSupportedSizes Method

Definition

Get a list of the postview sizes supported for a still capture, using its capture size captureSize, to use as an output for the postview request.

[Android.Runtime.Register("getPostviewSupportedSizes", "(ILandroid/util/Size;I)Ljava/util/List;", "", ApiSince=34)]
public System.Collections.Generic.IList<Android.Util.Size> GetPostviewSupportedSizes (Android.Hardware.Camera2.CameraExtensionTypes extension, Android.Util.Size captureSize, int format);
[<Android.Runtime.Register("getPostviewSupportedSizes", "(ILandroid/util/Size;I)Ljava/util/List;", "", ApiSince=34)>]
member this.GetPostviewSupportedSizes : Android.Hardware.Camera2.CameraExtensionTypes * Android.Util.Size * int -> System.Collections.Generic.IList<Android.Util.Size>

Parameters

extension
CameraExtensionTypes

the extension type

captureSize
Size

size of the still capture for which the postview is requested

format
Int32

device-specific extension output format of the still capture and postview

Returns

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

Attributes

Remarks

Get a list of the postview sizes supported for a still capture, using its capture size captureSize, to use as an output for the postview request.

Available postview sizes will always be either equal to or less than the still capture size. When choosing the most applicable postview size for a usecase, it should be noted that lower resolution postviews will generally be available more quickly than larger resolution postviews. For example, when choosing a size for an optimized postview that will be displayed as a placeholder while the final image is processed, the resolution closest to the preview size may be most suitable.

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

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