CameraExtensionCharacteristics.GetExtensionSupportedSizes 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetExtensionSupportedSizes(Int32, Int32) |
检查给定扩展是否可用,并返回支持的输出图面分辨率,这些分辨率可用于通过 |
| GetExtensionSupportedSizes(Int32, Class) |
获取与作为重复请求 |
GetExtensionSupportedSizes(Int32, Int32)
检查给定扩展是否可用,并返回支持的输出图面分辨率,这些分辨率可用于通过 CameraExtensionSession#capture的高质量捕获请求。
[Android.Runtime.Register("getExtensionSupportedSizes", "(II)Ljava/util/List;", "", ApiSince=31)]
public System.Collections.Generic.IList<Android.Util.Size> GetExtensionSupportedSizes(int extension, int format);
[<Android.Runtime.Register("getExtensionSupportedSizes", "(II)Ljava/util/List;", "", ApiSince=31)>]
member this.GetExtensionSupportedSizes : int * int -> System.Collections.Generic.IList<Android.Util.Size>
参数
- extension
- Int32
扩展类型
- format
- Int32
特定于设备的扩展输出格式
返回
如果不支持格式,则为可用大小的不可修改列表或空列表。
- 特性
注解
检查给定扩展是否可用,并返回支持的输出图面分辨率,这些分辨率可用于通过 CameraExtensionSession#capture的高质量捕获请求。
请注意,允许设备特定的扩展仅支持播发的 StreamConfigurationMap#getOutputSizes相机分辨率的子集。
设备特定的扩展目前最多支持三种多帧捕获图面格式。 当ImageFormat.YUV_420_888、ImageFormat.JPEG_R、ImageFormat.YCBCR_P010或ImageFormat.DEPTH_JPEG时,所有扩展都支持ImageFormat.JPEG,也可能不受支持。
Java文档android.hardware.camera2.CameraExtensionCharacteristics.getExtensionSupportedSizes(int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
GetExtensionSupportedSizes(Int32, Class)
获取与作为重复请求klass的输出兼容的CameraExtensionSession#setRepeatingRequest大小列表。
[Android.Runtime.Register("getExtensionSupportedSizes", "(ILjava/lang/Class;)Ljava/util/List;", "", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public System.Collections.Generic.IList<Android.Util.Size> GetExtensionSupportedSizes(int extension, Java.Lang.Class klass);
[<Android.Runtime.Register("getExtensionSupportedSizes", "(ILjava/lang/Class;)Ljava/util/List;", "", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.GetExtensionSupportedSizes : int * Java.Lang.Class -> System.Collections.Generic.IList<Android.Util.Size>
参数
- extension
- Int32
扩展类型
- klass
- Class
非nullClass 对象引用
返回
不支持Surface输出时,可用大小不可修改的列表或空列表
- 特性
注解
获取与作为重复请求klass的输出兼容的CameraExtensionSession#setRepeatingRequest大小列表。
请注意,允许设备特定的扩展仅支持相机输出图面和分辨率的子集。 对于 android.graphics.SurfaceTexture 向后兼容的相机,该类至少保证一个大小,而其他输出类则不保证受支持。
从 Android 类开始也保证受支持,并包含与 android.view.SurfaceHolder#setFixedSize来设置所需的 SurfaceView 分辨率。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。