fix: allow preview surface for RAW capture requests
This commit is contained in:
1 parent
44596e05e5
commit
a61995aa4a
1 file changed
+1
-3
@@ -3028,10 +3028,8 @@ class Camera2Controller(private val context: Context) {
|
||||
val captureBuilder = device.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE).apply {
|
||||
addTarget(reader.surface)
|
||||
|
||||
if (!isRawCapture && shouldMirrorStillCaptureToPreview()) {
|
||||
if (shouldMirrorStillCaptureToPreview()) {
|
||||
previewSurface?.let { addTarget(it) }
|
||||
} else if (isRawCapture) {
|
||||
PLog.d(TAG, "RAW capture uses RAW target only to avoid unstable RAW+preview still requests")
|
||||
}
|
||||
|
||||
// 应用所有相机参数(曝光、白平衡、闪光灯、变焦、色调映射)
|
||||
|
||||
Reference in new issue
Block a user