该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
比如下面这个函数,怎么用?
setPhysicalCameraIdAdded in API level 28public void setPhysicalCameraId (String physicalCameraId)
Set the id of the physical camera for this OutputConfiguration
In the case one logical camera is made up of multiple physical cameras, it could be desirable for the camera application to request streams from individual physical cameras. This call achieves it by mapping the OutputConfiguration to the physical camera id.
The valid physical camera ids can be queried by CameraCharacteristics.getPhysicalCameraIds().
Passing in a null physicalCameraId means that the OutputConfiguration is for a logical stream.
This function must be called before CameraDevice#createCaptureSessionByOutputConfigurations or CameraDevice#createReprocessableCaptureSessionByConfigurations. Calling this function after CameraDevice#createCaptureSessionByOutputConfigurations or CameraDevice#createReprocessableCaptureSessionByConfigurations has no effect.
The surface belonging to a physical camera OutputConfiguration must not be used as input or output of a reprocessing request.
Parameters
physicalCameraId String: This value may be null.