commit | 5cb6905de9f9ce0b5b8bd6e59834c542a2a6d807 | [log] [tgz] |
---|---|---|
author | Haoxiang Li <haoxiangl@google.com> | Fri Aug 30 16:24:25 2019 -0700 |
committer | Haoxiang Li <haoxiangl@google.com> | Tue Sep 17 16:05:07 2019 -0700 |
tree | e3822e2f549b418983b1edc56b61fb2f50a083f1 | |
parent | d0aec72d6e1195e11d6f7b0306bcf0485499c6a0 [diff] |
Move RenderCallback from VideoTex to StreamHandler. This is a pre-requisite CL for the coming analyze use case. More buffer copying are needed when analyze use case is taken into account. Then it becomes an issue to manage the copies respectively in analyze use case(s) and display use case. Besides, before this CL, the render callback is embedded deeply in a display/graphic-related class (VideoTex). That was because the display use case used to be the only scenario. Since the coming analyze use case has nothing to do with the display pipeline, now is a good timing to de-couple the camera frame processing and display pipeline, by moving the callback from VideoTex to StreamHandler, which is a class that is only related to the camera frame processing. Test: build and run on Hawk device Bug: 130246434 Change-Id: I228685ec904cb28272c6099f0c2e54acf611a941
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.