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[] 。

此函数返回的所有图像格式都将在任一 ImageFormat 或中 PixelFormat 定义(并且不存在冲突的可能性)。

如果查询 #isOutputSupportedFor(int)了此数组,则保证此数组中列出的格式返回 true。

适用于 . 的 android.hardware.camera2.params.StreamConfigurationMap.getValidOutputFormatsForInput(int)Java 文档

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

适用于