Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b8363a8 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Update doc for stale queued buffer in input surface

In case a reprocessable capture session is re-created, any pending
queued buffers in the input surface will be flushed. This makes sure
newly created reprocessable capture session won't be stuck waiting for
stale buffers from previous session.

Test: Read docs
Bug: 138729150
Change-Id: Ia14221f31a6d4f6ebf35f630036ece66de1d0874
parent a34d0b78
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -567,6 +567,9 @@ public abstract class CameraDevice implements AutoCloseable {
     * match one of the supported input sizes for {@link android.graphics.ImageFormat#PRIVATE}
     * format. Otherwise, creating a reprocessable capture session will fail.</p>
     *
     * <p>Starting from API level 30, recreating a reprocessable capture session will flush all the
     * queued but not yet processed buffers from the input surface.</p>
     *
     * <p>The guaranteed stream configurations listed in
     * {@link #createCaptureSession createCaptureSession} are also guaranteed to work for
     * {@link #createReprocessableCaptureSession createReprocessableCaptureSession}. In addition,