Remove frame duplication for capture intents other than PREVIEW
Most camera applications are made to handle only the on device camera. When an application runs on a virtual device with a virtual camera, the client might not expect potential remote camera latency and/or disconnections. For [CAPTURE_INTENT_PREVIEW](https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#CONTROL_CAPTURE_INTENT_PREVIEW) use case, to counterbalance these disruptions, virtual camera will duplicate the last frames if the producer does not post a new frame in time. If for other capture intents, no frame duplication takes place. The virtual camera will wait at most `1/minFps` second (see CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE) or the current FPS range and will notify the framework of a timeout. Flag: android.companion.virtualdevice.flags.camera_multiple_input_streams Bug: 383779587 Test: atest android.virtualdevice.cts.camera.VirtualCameraCaptureTest#captureMultipleImages_motionCapture_noDuplication Change-Id: I3f46b9d32b307cc8a84ac4ea159711ec031d42f4
Loading
Please register or sign in to comment