ScanbotCameraSurfaceAdapter

class ScanbotCameraSurfaceAdapter(context: Context, cameraComponent: Any?, availableCameraIds: Set<String>)

Adapt the CameraDeviceSurfaceManager interface to CameraPipe.

This class provides Context-specific utility methods for querying and computing supported outputs, and its internal state is updated transactionally.

Constructors

Link copied to clipboard
constructor(context: Context, cameraComponent: Any?, availableCameraIds: Set<String>)

Functions

Link copied to clipboard
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.

Link copied to clipboard
open fun onCamerasUpdated(cameraIds: List<String>)

Transactionally updates the supported surface combinations from the full list of available camera IDs. This method is optimized to only build combinations for newly added cameras.

Link copied to clipboard
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