summaryrefslogtreecommitdiff
path: root/docs/html/reference
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2016-12-14 09:43:50 -0800
committerRomain Guy <romainguy@google.com>2016-12-16 09:15:07 -0800
commit9505a6552764461c22ce48f1ac13d025d23e1579 (patch)
tree8cd7b889674ada52f773a26fc6c5acaf20cb3649 /docs/html/reference
parentde315b99dcaf7202898d6334570753ffee43c1f1 (diff)
Add new RGBA_F16 bitmap config
This configuration uses 64 bits per pixel. Heach component is stored as a half precision float value (16 bits). Half floats can be decoded/encoded using android.util.Half. RGBA_F16 bitmaps are used to decode wide-gamut images stored in 16 bit formats (PNG 16 bit for instance). aapt is currently not aware of PNG 16 bits so such files must be placed in raw/ resource directories. This first pass provides only partial drawing support with hardware acceleration. RGBA_F16 bitmaps are stored in linear space and need to be encoded to gamma space with the appropriate OETF to be rendered properly on Android's current surfaces. They are however suitable for linear blending. Full rendering support will be provided in a future CL (BitmapShaders might be a bit tricky to handle properly during shader generation). Bug: 32984164 Test: bit CtsGraphicsTestCases:android.graphics.cts.BitmapRGBAF16Test Change-Id: I328e6b567441a1b9d152a3e7be944a2cf63193bd
Diffstat (limited to 'docs/html/reference')
-rw-r--r--docs/html/reference/images/graphics/colorspace_ucs.pngbin0 -> 291374 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/docs/html/reference/images/graphics/colorspace_ucs.png b/docs/html/reference/images/graphics/colorspace_ucs.png
new file mode 100644
index 000000000000..3e0f0c6f0cc4
--- /dev/null
+++ b/docs/html/reference/images/graphics/colorspace_ucs.png
Binary files differ