StreamConfigurationMap 类

定义

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

[Android.Runtime.Register("android/hardware/camera2/params/StreamConfigurationMap", DoNotGenerateAcw=true)]
public sealed class StreamConfigurationMap : Java.Lang.Object
[<Android.Runtime.Register("android/hardware/camera2/params/StreamConfigurationMap", DoNotGenerateAcw=true)>]
type StreamConfigurationMap = class
    inherit Object
继承
StreamConfigurationMap
属性

注解

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。 <-- TODO:指向输入流配置的链接 ->

这是相机设备支持的所有 <--输入/->输出格式(以及相应格式的大小)的权威列表。

这还包含每个格式/大小组合的最小帧持续时间和停止持续时间,可用于在提交多个捕获时计算有效帧速率。

可以使用CameraCharacteristics键和CameraCharacteristics#get方法获取CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP此对象的实例。

<code>{@code
            CameraCharacteristics characteristics = cameraManager.getCameraCharacteristics(cameraId);
            StreamConfigurationMap configs = characteristics.get(
                    CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
            }</code>

适用于 . 的 android.hardware.camera2.params.StreamConfigurationMapJava 文档

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

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
JniPeerMembers

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

PeerReference

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

(继承自 Object)
ThresholdType

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

(继承自 Object)

方法

Clone()

创建并返回此对象的副本。

(继承自 Object)
Dispose()

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
Dispose(Boolean)

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
GetHighResolutionOutputSizes(Int32)

获取支持的高分辨率大小列表,该大小不能以完全BURST_CAPTURE速率运行。

GetHighSpeedVideoFpsRanges()

获取受支持的高速视频录制 FPS 范围的列表。

GetHighSpeedVideoFpsRangesFor(Size)

获取输入高速视频大小的每秒帧范围(fpsMin,fpsMax)。

GetHighSpeedVideoSizes()

获取受支持的高速视频录制大小列表。

GetHighSpeedVideoSizesFor(Range)

获取输入高速 FPS 范围的受支持视频大小。

GetInputFormats()

获取此流配置中的图像 format 输入格式。

GetInputSizes(Int32)

获取此输入格式支持的输入大小。

GetOutputFormats()

获取此流配置中的图像 format 输出格式。

GetOutputMinFrameDuration(Class, Size)

获取类/大小组合(以纳秒为单位)的最小值 CaptureRequest#SENSOR_FRAME_DURATION frame duration

GetOutputMinFrameDuration(Int32, Size)

获取格式/大小组合(以纳秒为单位)的最小值 CaptureRequest#SENSOR_FRAME_DURATION frame duration

GetOutputSizes(Class)

获取与用作输出兼容的 klass 大小列表。

GetOutputSizes(Int32)

获取与请求的图像 format兼容的大小列表。

GetOutputStallDuration(Class, Size)

获取类/大小组合(以纳秒为单位)的停止持续时间。

GetOutputStallDuration(Int32, Size)

获取格式/大小组合(以纳秒为单位)的停止持续时间。

GetValidOutputFormatsForInput(Int32)

获取重新处理输入格式的图像 format 输出格式。

IsOutputSupportedFor(Class)

确定是否可以使用特定类作为使用者配置输出流。

IsOutputSupportedFor(Int32)

确定是否可以传递 CameraDevice#createCaptureSession createCaptureSession具有特定用户定义格式的输出图面。

IsOutputSupportedFor(Surface)

确定其当前状态是否 surface 适合作为输出包含在 CameraDevice#createCaptureSession capture session 其中。

JavaFinalize()

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
ToArray<T>()

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
Wait()

使当前线程等待,直到唤醒它,通常是通过 em 通知/em> 或 <em>interrupted</em>。<><

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

IJavaPeerable.Disposed()

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
IJavaPeerable.Finalized()

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

GetJniTypeName(IJavaPeerable)

用于存储可用流的 CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations 不可变类,用于设置 android.view.Surface Surfaces 用于创建 android.hardware.camera2.CameraCaptureSession capture session with android.hardware.camera2.CameraDevice#createCaptureSession的流。

适用于