commit | a8e795a7c2f178f48e37d8f3221066e2d1a8a188 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Thu Aug 13 11:46:14 2020 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Thu Aug 20 09:02:11 2020 -0700 |
tree | c1d622f6ed039b6c3040f60b1f8eac216e92ebc9 | |
parent | 4667be00bf4657c246cc520040ef5ac7cd3196c0 [diff] |
Update a frame metadata When the device supports Android synchronization framework, EVS frame delivery logic enables a timestamp-based frame synchronization even if a target device is not a logical camera device. A recent change (c6313cc1e438afa7024bb425aea5f39bd4288af7) to handle VIDIOC_REQBUFS ioctl correctly unfornately missed to update a frame metadata EVS manager holds and erases a timestamp on the EVS frame. Therefore, delivered EVS frames are ignored by a synchronization logic. This change adds a line to store a frame metadata right after VIDIOC_DQBUF ioctl so makes it can be referred later. Fix: 164118107 Test: adb shell evs_app --test Change-Id: If2c72162e54b3b6a81f924c9671aadac7a77c7bb Merged-In: If2c72162e54b3b6a81f924c9671aadac7a77c7bb (cherry picked from commit e2bc68b4298abe56e091c7b388121ad13993b17a)
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.