Share via


StreamConfigurationMap 类

定义

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

[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.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces <-- TODO:输入流配置的链接 -->

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

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

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

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

android.hardware.camera2.params.StreamConfigurationMapJava 文档。

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

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)
JniPeerMembers

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

PeerReference

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)
ThresholdClass

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

(继承自 Object)
ThresholdType

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

(继承自 Object)

方法

Clone()

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

(继承自 Object)
Dispose()

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)
Dispose(Boolean)

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 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.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)
ToString()

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

(继承自 Object)
UnregisterFromRuntime()

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 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.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)
IJavaPeerable.Finalized()

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)
IJavaPeerable.JniManagedPeerState

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

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

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

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

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

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

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

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

JavaCast<TResult>(IJavaObject)

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

GetJniTypeName(IJavaPeerable)

不可变类,用于存储要设置的可用流CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations,以便使用 android.hardware.camera2.CameraDevice#createCaptureSession创建 android.hardware.camera2.CameraCaptureSession capture sessionandroid.view.Surface Surfaces

适用于