Android.Hardware.Camera2.Params.StreamConfigurationMap.GetHighSpeedVideoSizes Method
Get a list of supported high speed video recording sizes.

Syntax

[Android.Runtime.Register("getHighSpeedVideoSizes", "()[Landroid/util/Size;", "")]
public Android.Util.Size[] GetHighSpeedVideoSizes ()

See Also

StreamConfigurationMap.GetHighSpeedVideoFpsRangesFor(Android.Util.Size)

Returns

Documentation for this section has not yet been entered.

Remarks

Get a list of supported high speed video recording sizes.

When HIGH_SPEED_VIDEO is supported in Android.Hardware.Camera2.CameraCharacteristics.ControlAvailableSceneModes, this method will list the supported high speed video size configurations. All the sizes listed will be a subset of the sizes reported by StreamConfigurationMap.GetOutputSizes(int) for processed non-stalling formats (typically ImageFormat#YUV_420_888, ImageFormat#NV21, ImageFormat#YV12)

To enable high speed video recording, application must set Android.Hardware.Camera2.CaptureRequest.ControlSceneMode to Android.Hardware.Camera2.CameraMetadata.CONTROL_SCENE_MODE_HIGH_SPEED_VIDEO in capture requests and select the video size from this method and Android.Hardware.Camera2.CaptureRequest.ControlAeTargetFpsRange from StreamConfigurationMap.GetHighSpeedVideoFpsRangesFor(Android.Util.Size) to configure the recording and preview streams and setup the recording requests. For example, if the application intends to do high speed recording, it can select the maximum size reported by this method to configure output streams. Note that for the use case of multiple output streams, application must select one unique size from this method to use. Otherwise a request error might occur. Once the size is selected, application can get the supported FPS ranges by StreamConfigurationMap.GetHighSpeedVideoFpsRangesFor(Android.Util.Size), and use these FPS ranges to setup the recording requests.

[Android Documentation]

Requirements

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