diff options
author | Leon Scroggins III <scroggo@google.com> | 2020-01-23 16:20:39 -0500 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2020-01-23 16:26:47 -0500 |
commit | 949c6006cbffee4afbe01a4e180299abafc7c4b9 (patch) | |
tree | 3a4857274c510c3eff3047d9f1c65b179cfbd772 /startop/scripts/lib/cmd_utils.py | |
parent | 6e62dbb263eace8451d3acb1964ee6b1dbd6ace9 (diff) |
Make bitmap compression retain the ColorSpace
Bug: 147877556
Test: I72b5f28903a67445bc205cdad8848384ad675b31
In Bitmap#compress and AndroidBitmap_compress, remove the conversion
from F16 to 8888 P3. This was originally done because F16 forced a
particular ColorSpace, and we wanted to use a wider gamut than SRGB.
Now that F16 can be any RGB ColorSpace, encode it with the ColorSpace
that it already has. Skip the conversion to 8888, which is unnecessary.
The encoders can already convert from F16.
Remove Bitmap::CompressResult. Now that compress does not allocate a
Bitmap, there is no reason to return ALLOCATION_FAILED.
Change-Id: I8190664398e762daf57092d919f382a56267dd07
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions