fix(camera): isolate stalled diagnostic modes and gate preview surfaces

This commit is contained in:
zenord
2026-10-14 11:54:14 +08:00
parent 4161a2a7a1
commit 5339949534
18 changed files with 734 additions and 26 deletions
+2
View File
@@ -6,6 +6,8 @@ class Surface(val texture: android.graphics.SurfaceTexture) {
}
class SurfaceHolder {
var isCreating=false
var surfaceFrame=android.graphics.Rect(0,0,640,480)
val surface=Surface(android.graphics.SurfaceTexture(run {
val ids=IntArray(1);android.opengl.GLES20.glGenTextures(1,ids,0);ids[0]
}))