次の方法で共有


RecommendedStreamConfigurationMap.IsOutputSupportedFor Method

Definition

Overloads

IsOutputSupportedFor(Int32)

Determine whether or not output surfaces with a particular user-defined format can be passed CameraDevice#createCaptureSession createCaptureSession.

IsOutputSupportedFor(Surface)

Determine whether or not the surface in its current state is suitable to be included in a CameraDevice#createCaptureSession capture session as an output.

IsOutputSupportedFor(Int32)

Determine whether or not output surfaces with a particular user-defined format can be passed CameraDevice#createCaptureSession createCaptureSession.

[Android.Runtime.Register("isOutputSupportedFor", "(I)Z", "", ApiSince=29)]
public bool IsOutputSupportedFor (int format);
[<Android.Runtime.Register("isOutputSupportedFor", "(I)Z", "", ApiSince=29)>]
member this.IsOutputSupportedFor : int -> bool

Parameters

format
Int32

an image format from either ImageFormat or PixelFormat

Returns

true if using a surface with this format will be supported with CameraDevice#createCaptureSession

Attributes

Remarks

Determine whether or not output surfaces with a particular user-defined format can be passed CameraDevice#createCaptureSession createCaptureSession.

For further information refer to StreamConfigurationMap#isOutputSupportedFor.

Java documentation for android.hardware.camera2.params.RecommendedStreamConfigurationMap.isOutputSupportedFor(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

IsOutputSupportedFor(Surface)

Determine whether or not the surface in its current state is suitable to be included in a CameraDevice#createCaptureSession capture session as an output.

[Android.Runtime.Register("isOutputSupportedFor", "(Landroid/view/Surface;)Z", "", ApiSince=29)]
public bool IsOutputSupportedFor (Android.Views.Surface surface);
[<Android.Runtime.Register("isOutputSupportedFor", "(Landroid/view/Surface;)Z", "", ApiSince=29)>]
member this.IsOutputSupportedFor : Android.Views.Surface -> bool

Parameters

surface
Surface

a Surface object reference

Returns

true if this is supported, false otherwise

Attributes

Remarks

Determine whether or not the surface in its current state is suitable to be included in a CameraDevice#createCaptureSession capture session as an output.

For more information refer to StreamConfigurationMap#isOutputSupportedFor.

Java documentation for android.hardware.camera2.params.RecommendedStreamConfigurationMap.isOutputSupportedFor(android.view.Surface).

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