diff options
author | Leon Scroggins III <scroggo@google.com> | 2020-01-15 15:31:40 -0500 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2020-01-21 13:27:58 -0500 |
commit | e5ace3f9cb9fdf81d34fe5d37e6b3cc148ae2427 (patch) | |
tree | 6cf84b63799f68276b7c385f545a70d3f8ab6aff /opengl/java | |
parent | d256790d13c66f902db22d9661234be4bd160ed5 (diff) |
Implement AImageDecoder dataspace methods
Bug: 135133301
Test: Iffe659e50078139188c3325545624640ae177cc2
Implement AImageDecoderHeaderInfo_getDataSpace, which reports the
default ADataSpace to decode to. It may report ADATASPACE_UNKNOWN, which
means that we've mostly left the colors in their original color profile.
This matches android.graphics.ImageDecoder/BitmapFactory, which would
use a ColorSpace named "Unknown". (It will standardize on DISPLAY_P3 for
some profiles, which again matches the Java classes.)
Implement AImageDecoder_setDataSpace, which allows specifying the
ADataSpace to decode to. It only supports explicit ADataSpaces.
Change-Id: Iba2f9e09531c23fae83ebe13cb9d18394ee3cd59
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions