commit | c07b11df11ed1f27a16f3e01b5aaed44a39537fc | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Thu Jun 17 09:00:25 2021 -0500 |
committer | chaviw <chaviw@google.com> | Thu Jun 17 10:49:15 2021 -0500 |
tree | c54f8766f2e9e303882e9482257efdf3af9dcb1a | |
parent | 6c7eb17f05053ea437a9dc82267c99e44f46986d [diff] |
Compress buffer array into 1 byte per pixel instead of 4 The incoming buffer into ImageHashManager contains 4 bytes per pixel. The pHash algorithm expects 1 byte per pixel. Since the image is in grayscale, r,g,b should all be the same and we can ignore alpha. Therefore, compress the 4 bytes into 1 byte. Test: DisplayHashManagerTest Test: ImageHashManager_test Fixes: 191354046 Change-Id: I7e0f203df7eb4e04134f0dcb2bcc288701171ea1
ExtServices is an updatable Mainline module that contains the logic used by Android framework components such as storage cache, autofill, textclassifier, package watchdog, notifications and notification ranking that run continually. For the new features or bug fixes of these platform defined services above or a new added platform service, it will provide more flexibility and benefits by updating ExtServices in a more frequent cycle than a platform release cycle.
Before you start to develop on ExtServices, please read go/smart-os-extservices to get the guideline.