Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 20d480ce authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Add AImageDecoder HeaderInfo_get/_setDataSpace

Bug: 135133301
Test: Iffe659e50078139188c3325545624640ae177cc2

Default to ADATASPACE_UNKNOWN for images that do not have a matching
ADataSpace. This matches the behavior of android.graphics.ImageDecoder
and BitmapFactory, which would use an "Unknown" ColorSpace for the same
images. It also means that a client who knows the true underlying
profile information to treat it as if it came from that profile.
Further, it means that if we add more ADataSpace values in the future,
the decode will be unchanged. A client can still choose to use a known
ADataSpace using _setDataSpace.

Change-Id: Id3ecf3bab17e4905fb2b75410ec756233d600c97
parent 46bb0aec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment