commit | f912bdb6e11b7bc20108d1d36c63acfd6a7fb158 | [log] [tgz] |
---|---|---|
author | Haoxiang Li <haoxiangl@google.com> | Wed Jul 08 15:25:47 2020 -0700 |
committer | Haoxiang Li <haoxiangl@google.com> | Tue Aug 04 11:46:42 2020 -0700 |
tree | a2ccd6074f62a0fea86d40f6153f326a2c848168 | |
parent | 1e1069602e5b620ffba81001a81e05f5b9362473 [diff] |
Align the order of buffers to the listed cameras There is no guarantee that the order of the EVS incoming buffers follows the order of listed cameras in the config. So I added a logic to check the deviceId of the buffers, and re-order them based on the camera ids. Also added locks to protect the doneWithFrame_1_1 method calls. Bug:160805910 Bug: 162599435 Test: Build and run on local machine. Change-Id: I150b1fa5f38c83d6a5a4385d03181878ba3182b5 Merged-In: I150b1fa5f38c83d6a5a4385d03181878ba3182b5 (cherry picked from commit cf3ea74f7a528e16966330a4199c6e4cd78c7189)
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.