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。

Java文档android.hardware.camera2.params.StreamConfigurationMap.getValidOutputFormatsForInput(int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于