Recover camera session failures once with low-resolution native YUV

This commit is contained in:
zenord
2026-10-13 17:50:57 +08:00
parent ddd75fc571
commit e5a7e87f25
32 changed files with 519 additions and 73 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
import com.gorios.lanvoice.expression.*
fun main() {
cameraPixelsCheck()
val fence=CameraCallbackFence()
val initial=fence.nextBinding()
check(fence.accepts(initial))
@@ -18,7 +19,10 @@ fun main() {
boot.stage(CameraStage.WAITING_FRAME,30000)
check(cameraTimeout(boot.snapshot(),34999)==CameraFailure.NONE)
check(canRecoverFirstFrame(boot.snapshot(),cameraTimeout(boot.snapshot(),35000)))
boot.recovering();boot.stage(CameraStage.WAITING_FRAME,35000)
check(canRecoverFirstFrame(boot.snapshot(),CameraFailure.STREAM_CONFIG))
boot.recovering();check(boot.snapshot().profile==CameraProfile.YUV_320)
check(!canRecoverFirstFrame(boot.snapshot(),CameraFailure.STREAM_CONFIG))
boot.stage(CameraStage.WAITING_FRAME,35000)
check(!canRecoverFirstFrame(boot.snapshot(),cameraTimeout(boot.snapshot(),40000)))
boot.received(39000)
check(boot.snapshot().stage==CameraStage.WAITING_RESULT)