語言

RecommendedStreamConfigurationMap.IsOutputSupportedFor 方法

定義

多載

名稱 Description
IsOutputSupportedFor(Int32)

判斷輸出表面是否能傳遞 CameraDevice#createCaptureSession(SessionConfiguration) createCaptureSession特定使用者定義格式。

IsOutputSupportedFor(Surface)

判斷 在 surface 當前狀態下是否適合作為輸出包含在 a CameraDevice#createCaptureSession(SessionConfiguration) capture session 中。

IsOutputSupportedFor(Int32)

判斷輸出表面是否能傳遞 CameraDevice#createCaptureSession(SessionConfiguration) 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

影像格式來自任一 ImageFormat 或 PixelFormat

傳回

true 若使用 A surface , format 則支援為 CameraDevice#createCaptureSession(SessionConfiguration)

屬性

備註

判斷輸出表面是否能傳遞 CameraDevice#createCaptureSession(SessionConfiguration) createCaptureSession特定使用者定義格式。

欲了解更多資訊,請參見 StreamConfigurationMap#isOutputSupportedFor。

Java 文件 android.hardware.camera2.params.RecommendedStreamConfigurationMap.isOutputSupportedFor(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

IsOutputSupportedFor(Surface)

判斷 在 surface 當前狀態下是否適合作為輸出包含在 a CameraDevice#createCaptureSession(SessionConfiguration) 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 當前狀態下是否適合作為輸出包含在 a CameraDevice#createCaptureSession(SessionConfiguration) capture session 中。

更多資訊請參考 StreamConfigurationMap#isOutputSupportedFor。

Java 文件 android.hardware.camera2.params.RecommendedStreamConfigurationMap.isOutputSupportedFor(android.view.Surface)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於