transform Surface Config
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
camera Mode
the working camera mode.
camera Id
the camera id of the camera device to transform the object
image Format
the image format info for the surface configuration object
size
the size info for the surface configuration object
stream Use Case
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.