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

Skip to content
Commit 49eeafc9 authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

camera2 vndk: Fix onCaptureBufferLost extra / incorrect callbacks.



Before this change, we were not matching native handles against the
CaptureRequest for which a buffer error occurred, and therefore
producing extra and incorrect onCaptureBufferLost callbacks.

Also, the buffer handles returned in the callbacks must be the same as
what the app configured capture sessions with. This way the app can
match the native handle with outputs configured without needing to
inspect the internal contents of the native handle.

Bug: 224810366

Test: Artificially produce frame drops by putting cpus in power saving
      mode; use camera2 vndk; confirm buffer native handles are not
      repeated per frame number.

Change-Id: I4b54e007576d29529170bc192308d01f18b95a13
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent e526939d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment