transformSurfaceConfig

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

Transform to a SurfaceConfig object with image format and size info

Return

new SurfaceConfig object

Parameters

cameraMode

the working camera mode.

imageFormat

the image format info for the surface configuration object

size

the size info for the surface configuration object