Recover camera session failures once with low-resolution native YUV
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user