StreamConfigurationMap.GetValidOutputFormatsForInput(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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[]。
此函數回傳的所有影像格式都會在 或 中PixelFormat定義ImageFormat(且不存在碰撞)。
此陣列中列出的格式若以 #isOutputSupportedFor(int)查詢,保證回傳 true。
Java 文件 android.hardware.camera2.params.StreamConfigurationMap.getValidOutputFormatsForInput(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。