Share via


StreamConfigurationMap.GetHighSpeedVideoSizes Method

Definition

Get a list of supported high speed video recording sizes.

[Android.Runtime.Register("getHighSpeedVideoSizes", "()[Landroid/util/Size;", "")]
public Android.Util.Size[]? GetHighSpeedVideoSizes ();
[<Android.Runtime.Register("getHighSpeedVideoSizes", "()[Landroid/util/Size;", "")>]
member this.GetHighSpeedVideoSizes : unit -> Android.Util.Size[]

Returns

Size[]

an array of supported high speed video recording sizes

Attributes

Remarks

Get a list of supported high speed video recording sizes.

When CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO is supported in CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES, this method will list the supported high speed video size configurations. All the sizes listed will be a subset of the sizes reported by #getOutputSizes for processed non-stalling formats (typically ImageFormat#PRIVATEImageFormat#YUV_420_888, etc.)

To enable high speed video recording, application must create a constrained create high speed capture session via CameraDevice#createConstrainedHighSpeedCaptureSession, and submit a CaptureRequest list created by android.hardware.camera2.CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList to this session. The application must select the video size from this method and CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE FPS range from #getHighSpeedVideoFpsRangesFor to configure the constrained high speed session and generate the high speed request list. For example, if the application intends to do high speed recording, it can select the maximum size reported by this method to create high speed capture session. Note that for the use case of multiple output streams, application must select one unique size from this method to use (e.g., preview and recording streams must have the same size). Otherwise, the high speed session creation will fail. Once the size is selected, application can get the supported FPS ranges by #getHighSpeedVideoFpsRangesFor, and use these FPS ranges to setup the recording request lists via android.hardware.camera2.CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList.

Java documentation for android.hardware.camera2.params.StreamConfigurationMap.getHighSpeedVideoSizes().

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.

Applies to

See also