Android.Hardware.Camera2.Params.StreamConfigurationMap.GetOutputMinFrameDuration Method
Get the minimum Android.Hardware.Camera2.CaptureRequest.SensorFrameDuration for the format/size combination (in nanoseconds).

Syntax

[Android.Runtime.Register("getOutputMinFrameDuration", "(ILandroid/util/Size;)J", "")]
public long GetOutputMinFrameDuration (int format, Android.Util.Size size)

See Also

Android.Hardware.Camera2.CaptureRequest.SensorFrameDuration
StreamConfigurationMap.GetOutputStallDuration(int, Android.Util.Size)
Android.Graphics.ImageFormat
Android.Graphics.PixelFormat

Parameters

format
an image format from Android.Graphics.ImageFormat or Android.Graphics.PixelFormat
size
an output-compatible size

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif format or size was not supported
Java.Lang.NullPointerExceptionif size was null

Remarks

Get the minimum Android.Hardware.Camera2.CaptureRequest.SensorFrameDuration for the format/size combination (in nanoseconds).

format should be one of the ones returned by StreamConfigurationMap.GetOutputFormats.

size should be one of the ones returned by StreamConfigurationMap.GetOutputSizes(int).

This should correspond to the frame duration when only that stream is active, with all processing (typically in android.*.mode) set to either OFF or FAST.

When multiple streams are used in a request, the minimum frame duration will be max(individual stream min durations).

For devices that do not support manual sensor control (Android.Hardware.Camera2.CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR), this function may return 0.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Camera2.Params
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0