History log of /frameworks/base/core/java/android/util/Half.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
95b52fd187564cabceb3309daa4ee6ddf697de58 25-Feb-2017 Romain Guy <romainguy@google.com> Make Half look like and behave like a boxed instance

Bug: 35765416
Test: HalfTest
Change-Id: I7ef52428f8b4e2c05b91d7eb37cc4cb5ecc5c6b9
/frameworks/base/core/java/android/util/Half.java
68bd5fdd1ad3cf0b74c225b31adf1f68393bfbb6 15-Nov-2016 Romain Guy <romainguy@google.com> Introduce android.graphics.ColorSpace

This class can be used to define color spaces. A color space has a color model
and a profile connection space (CIE XYZ D50). This implementation can be used
to query various properties of RGB color spaces or perform conversions between
various color spaces (RGB, XYZ and Lab).

Refer to the documentation for more details.

Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.ColorSpaceTest
Bug: 32984164
Change-Id: Ie2117c1212c1375a7d403d3c1afaf73d7c2e0b47
/frameworks/base/core/java/android/util/Half.java
5d7e2352e7369ca4f75b3f883749f908cc82ecde 14-Nov-2016 Romain Guy <romainguy@google.com> Add @HalfFloat annotation for fp16 data types stored in shorts

This CL has a companion CL to add the @HalfFloat annotation to the
support library.

Test: cts-tradefed run singleCommand cts-dev --module CtsUtilTestCases --test android.util.cts.HalfTest
Bug: 29940137
Change-Id: I4e1dc456687c1c026437150e9cc94a54f3264d4e
/frameworks/base/core/java/android/util/Half.java
12ae9a073654ee4d65ed7e5e92c1dfa801697d63 05-Nov-2016 Romain Guy <romainguy@google.com> Improve support for half floats and expose as public API

Half floats (often called fp16) are commonly used to store floating
point data efficiently without having to use lossy compression schemes.

Half floats are commonly used in the following cases:
- Wide gamut colors
- Meshes (OpenGL and Vulkan)
- HDR images/textures
- Lookup tables as textures (OpenGL and Vulkan), particularly
in physically-based renderers
- Maching learning/compute

OpenGL and Renderscript both provide Java language APIs that accept
half floats but the platform offers no support to create fp16 values
from fp32 data. The Half class is an IEEE 754 compliant implementation
of half floats that can be used to feed OpenGL and Renderscript properly
encoded values. A comprehensive series of test is also added to CTS.

Test: cts-tradefed run singleCommand cts-dev --module CtsUtilTestCases --test android.util.cts.HalfTest
Bug: 29940137

Change-Id: I908bde7b3c6f65f7a24e0ab5652be4d16cc0358d
/frameworks/base/core/java/android/util/Half.java
de0a3a893f85afbb34a6ee83ec4a5a860230faf7 20-Oct-2016 Romain Guy <romainguy@google.com> Add a half-precision floating point type

Denormals are fully supported.

This will be useful to store wide-gamut colors in a compact form
(a full RGBA color can be stored in a long using half floats for
each component).

Test: cts-tradefed run singleCommand cts-dev --module CtsUtilTestCases --test android.util.cts.HalfTest
Change-Id: I7e071edd2b66fdf6b375ce0e3e1a72ec3fb635b5
/frameworks/base/core/java/android/util/Half.java