getSuggestedStreamSpecs

open fun getSuggestedStreamSpecs(cameraMode: Int, cameraId: String, existingSurfaces: List<<Error class: unknown class>>, newUseCaseConfigsSupportedSizeMap: Map<<Error class: unknown class><out <Error class: unknown class>>, List<Size>>, videoStabilization: <Error class: unknown class>, hasVideoCapture: Boolean, isFeatureComboInvocation: Boolean, findMaxSupportedFrameRate: Boolean): <Error class: unknown class>

Retrieves a map of suggested stream specifications for the given list of use cases.

Return

map of suggested stream specifications for given use cases

Parameters

cameraMode

the working camera mode.

cameraId

the camera id of the camera device used by the use cases

existingSurfaces

list of surfaces already configured and used by the camera. The resolutions for these surface can not change.

newUseCaseConfigsSupportedSizeMap

map of configurations of the use cases to the supported sizes list that will be given a suggested stream specification

videoStabilization

the video stabilization mode.

hasVideoCapture

whether the use cases has video capture.

Throws

if {@code newUseCaseConfigs} is an empty list, if there isn't a supported combination of surfaces available, or if the {@code cameraId} is not a valid id.