Add one-button bounded front-camera diagnostics and automatic report

This commit is contained in:
zenord
2026-10-13 19:28:04 +08:00
parent 688bb7d6b3
commit 8cf7d7316c
30 changed files with 937 additions and 56 deletions
+8
View File
@@ -1,5 +1,13 @@
package android.view
class Surface(val texture: android.graphics.SurfaceTexture) {
val isValid get()=!released
var released=false
fun release() {check(!released);released=true}
}
class SurfaceHolder {
val surface=Surface(android.graphics.SurfaceTexture(run {
val ids=IntArray(1);android.opengl.GLES20.glGenTextures(1,ids,0);ids[0]
}))
fun setFixedSize(width: Int,height: Int) {}
}