commit | 4cbbc1d18ecafea6097630d4dc1f1bcd353cae2e | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Thu Jul 30 16:44:42 2020 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Mon Aug 10 14:04:20 2020 -0700 |
tree | 63c191ff8a86470e5ce6500168f44eac5095213c | |
parent | d7f3b2a010b543e2cbd9d834872519649183aa9e [diff] |
Add emulated camera device support This change implements logics to emulate camera devices for EVS clients. As the first milestone, this synthesizes a video stream from images stored on the device in YUYV format. Source images must be in the same resolution and accessible by automotive_evs user/group. This feature helps the developers to verify and validate their EVS service implementations on predefined static image sequence and therefore also debug the issues more efficiently. "(?i)emulated/[0-9]+" pattern is reserved only for emulated camera devices. Below example command adds an emulated camera device as "emulated/0" and configures it to generate 640x360 video stream from images stored at /data/vendor/evs/, at every 100ms. $ adb shell lshal debug \ android.hardware.automotive.evs@1.1::IEvsEnumerator/default \ --configure-emulated-camera emulated/0 /data/vendor/evs/ 640 360 100 If a emulated camera device with a given identifier is active, updated configurations will be effective when it is closed. Bug: 157678559 Test: Run above example Change-Id: Ib2610f9d2f5bd07246abbf36be07eeaee9ef59d1
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.