commit | 7b0673036d3caf8b2905b182eaaf401da38a4f10 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Sun Mar 07 21:37:07 2021 -0800 |
committer | Changyeon Jo <changyeon@google.com> | Sun Apr 18 12:28:41 2021 -0700 |
tree | 6a798967aee479d1719bbb0113e9d9da26011226 | |
parent | 175f1f7eba312b15e20f95f57cd1927263aff784 [diff] |
Update CarEvsCameraPreviewApp This change updates CarEvsCameraPreviewApp with below changes: - Use OpenGL ES to render a frame buffer from CarEvsService. This improves the throughput by removing a slow data copy to create a software bitmap. - Add a permission to monitor CarEvsService's state - Use a privileged API to request a rearview service and request to start a video stream upon a state transition to REQUESTED. - A progress bar to control the color saturation is removed. - Show the default screen if no EVS service is available - Set use_embedded_native_lib as true, to be able to re-install - Set android::extractNativeLibs as false To launch CarEvsCameraPreviewApp: > adb shell am start -n \ com.google.android.car.evs/\ com.google.android.car.evs.CarEvsCameraPreviewActivity To stop: > adb shell am force-stop com.google.android.car.evs Fix: 177272806 Bug: 182035464 Test: Run above examples Change-Id: Ie36ecb0f1c1420af81bf55e1538a90e746dbd4b6 Merged-In: Ie36ecb0f1c1420af81bf55e1538a90e746dbd4b6 (cherry picked from commit 642ae076b248721ac2384b9a1f1dc49920d6499e)
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.