commit | 65a5f90ff6029f9feeadc2ee835c6787cbef7fa5 | [log] [tgz] |
---|---|---|
author | Yogeshwar Nagaraj <nyogeshwar@google.com> | Mon Jan 27 13:51:53 2020 -0800 |
committer | Yogeshwar Nagaraj <nyogeshwar@google.com> | Tue Jan 28 15:20:03 2020 -0800 |
tree | fc4f434a971561eb7df2a90fc519ff6e337a031c | |
parent | 6205632be54b05017ce8b7b9a7159dfef0bcda8f [diff] |
Adding a pixel stream manager. The change adds the following. 1) MemHandle implementation for pixel stream 2) PixelStreamManager that manages the memhandles. This implementation uses a circular buffer of AHardwareBuffers and reuses them when doneWithPacket is called instead of allocating a new buffer every frame. 3) Tests to verify the functionality of pixel stream manager 4) Integration of the pixel stream manager with the runner. Change-Id: I41e1133e53d21ddd58d26cb3f8795a2aa0ab5589 Fix: 147975150 Test: Added new unit tests
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.