共用方式為


StreamConfigurationMap.GetValidOutputFormatsForInput(Int32) 方法

定義

取得重新處理輸入格式的影像 format 輸出格式。

[Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)]
public int[]? GetValidOutputFormatsForInput (int inputFormat);
[<Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)>]
member this.GetValidOutputFormatsForInput : int -> int[]

參數

inputFormat
Int32

傳回

Int32[]

整數格式的陣列

屬性

備註

取得重新處理輸入格式的影像 format 輸出格式。

CaptureRequest 提交具有指定格式之輸入 Surface 的 時,唯一允許的目標輸出 CaptureRequest 就是這個方法傳回值中列出的格式。 將任何其他輸出 Surface 作為目標,都會擲回 IllegalArgumentException。 如果沒有輸入格式支援輸出格式,則會傳回空白 int[] 。

此函式傳回的所有影像格式都會在 或 中 ImageFormatPixelFormat 定義(而且不可能發生衝突)。

如果使用 #isOutputSupportedFor(int)查詢,此陣列中列出的格式保證會傳回 true。

android.hardware.camera2.params.StreamConfigurationMap.getValidOutputFormatsForInput(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於