RecommendedStreamConfigurationMap.IsOutputSupportedFor 方法

定义

重载

IsOutputSupportedFor(Int32)

确定是否可以传递 CameraDevice#createCaptureSession createCaptureSession具有特定用户定义格式的输出图面。

IsOutputSupportedFor(Surface)

确定其当前状态是否 surface 适合作为输出包含在 CameraDevice#createCaptureSession capture session 其中。

IsOutputSupportedFor(Int32)

确定是否可以传递 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

参数

format
Int32

来自任一格式 ImageFormatPixelFormat

返回

true如果对此使用surface,则支持<a1/>。CameraDevice#createCaptureSession

属性

注解

确定是否可以传递 CameraDevice#createCaptureSession createCaptureSession具有特定用户定义格式的输出图面。

有关详细信息, StreamConfigurationMap#isOutputSupportedFor请参阅 。

适用于 . 的 android.hardware.camera2.params.RecommendedStreamConfigurationMap.isOutputSupportedFor(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

IsOutputSupportedFor(Surface)

确定其当前状态是否 surface 适合作为输出包含在 CameraDevice#createCaptureSession capture session 其中。

[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

参数

surface
Surface

对象 Surface 引用

返回

true如果支持,则为 ;否则为 false

属性

注解

确定其当前状态是否 surface 适合作为输出包含在 CameraDevice#createCaptureSession capture session 其中。

有关详细信息, StreamConfigurationMap#isOutputSupportedFor请参阅 。

适用于 . 的 android.hardware.camera2.params.RecommendedStreamConfigurationMap.isOutputSupportedFor(android.view.Surface)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于