transformSurfaceConfig

open fun transformSurfaceConfig(cameraMode: Int, cameraId: String, imageFormat: Int, size: Size, streamUseCase: <Error class: unknown class>): <Error class: unknown class>

Transform to a SurfaceConfig object with cameraId, image format and size info

Return

new {@link SurfaceConfig} object

Parameters

cameraMode

the working camera mode.

cameraId

the camera id of the camera device to transform the object

imageFormat

the image format info for the surface configuration object

size

the size info for the surface configuration object

streamUseCase

the stream use case for the surface configuration object

Throws

if the {@code cameraId} is not found in the supported combinations, or if there isn't a supported combination of surfaces available for the given parameters.