RecommendedStreamConfigurationMap Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Immutable class to store the recommended stream configurations to set up
android.view.Surface Surfaces
for creating a
android.hardware.camera2.CameraCaptureSession capture session
with
android.hardware.camera2.CameraDevice#createCaptureSession
.
[Android.Runtime.Register("android/hardware/camera2/params/RecommendedStreamConfigurationMap", ApiSince=29, DoNotGenerateAcw=true)]
public sealed class RecommendedStreamConfigurationMap : Java.Lang.Object
[<Android.Runtime.Register("android/hardware/camera2/params/RecommendedStreamConfigurationMap", ApiSince=29, DoNotGenerateAcw=true)>]
type RecommendedStreamConfigurationMap = class
inherit Object
- Inheritance
- Attributes
Remarks
Immutable class to store the recommended stream configurations to set up android.view.Surface Surfaces
for creating a android.hardware.camera2.CameraCaptureSession capture session
with android.hardware.camera2.CameraDevice#createCaptureSession
.
The recommended list does not replace or deprecate the exhaustive complete list found in StreamConfigurationMap
. It is a suggestion about available power and performance efficient stream configurations for a specific use case. Per definition it is only a subset of StreamConfigurationMap
and can be considered by developers for optimization purposes.
This also duplicates the minimum frame durations and stall durations from the StreamConfigurationMap
for each format/size combination that can be used to calculate effective frame rate when submitting multiple captures.
An instance of this object is available by invoking CameraCharacteristics#getRecommendedStreamConfigurationMap
and passing a respective usecase id. For more information about supported use case constants see #USECASE_PREVIEW
.
<code>{@code
CameraCharacteristics characteristics = cameraManager.getCameraCharacteristics(cameraId);
RecommendedStreamConfigurationMap configs = characteristics.getRecommendedStreamConfigurationMap(
RecommendedStreamConfigurationMap.USECASE_PREVIEW);
}</code>
Java documentation for android.hardware.camera2.params.RecommendedStreamConfigurationMap
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Fields
Usecase10bitOutput |
Obsolete.
If supported, the recommended 10-bit output stream configurations must include
a subset of the advertised |
UsecaseLowLatencySnapshot |
Obsolete.
The recommended stream configuration map for use case low latency snapshot must contain subset of configurations with end-to-end latency that does not exceed 200 ms. |
UsecasePreview |
Obsolete.
The recommended stream configuration map for use case preview must contain a subset of
efficient, non-stalling configurations that must include both
|
UsecaseRaw |
Obsolete.
In case the device supports
|
UsecaseRecord |
Obsolete.
The recommended stream configuration map for recording must contain a subset of efficient
video configurations that include |
UsecaseSnapshot |
Obsolete.
The recommended stream configuration map for use case snapshot must contain a subset of
efficient still capture configurations that must include
|
UsecaseVideoSnapshot |
Obsolete.
The recommended stream configuration map for use case video snapshot must only contain a
subset of efficient liveshot configurations that include
|
UsecaseZsl |
Obsolete.
In case the device supports
|
Properties
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
HighSpeedVideoFpsRanges |
Get a list of supported high speed video recording FPS ranges. |
HighSpeedVideoSizes |
Get a list of supported high speed video recording sizes. |
InputFormats |
Get the image |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
OutputFormats |
Get the image |
PeerReference | (Inherited from Object) |
RecommendedUseCase |
Get the use case value for the recommended stream configurations. |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetHighResolutionOutputSizes(Int32) |
Get a list of supported high resolution sizes, which cannot operate at full BURST_CAPTURE rate. |
GetHighSpeedVideoFpsRangesFor(Size) |
Get the frame per second ranges (fpsMin, fpsMax) for input high speed video size. |
GetHighSpeedVideoSizesFor(Range) |
Get the supported video sizes for an input high speed FPS range. |
GetInputSizes(Int32) |
Get the supported input sizes for this input format. |
GetOutputMinFrameDuration(Class, Size) |
Get the minimum |
GetOutputMinFrameDuration(Int32, Size) |
Get the minimum
|
GetOutputSizes(Class) |
Get a list of sizes compatible with |
GetOutputSizes(Int32) |
Get a list of sizes compatible with the requested image |
GetOutputStallDuration(Class, Size) |
Get the stall duration for the class/size combination (in nanoseconds). |
GetOutputStallDuration(Int32, Size) |
Get the stall duration for the format/size combination (in nanoseconds). |
GetValidOutputFormatsForInput(ImageFormatType) |
Get the image |
IsOutputSupportedFor(Int32) |
Determine whether or not output surfaces with a particular user-defined format can be passed
|
IsOutputSupportedFor(Surface) |
Determine whether or not the |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |