History log of /frameworks/base/graphics/java/android/graphics/ColorSpace.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
910e081216ac530432ac9d0aab10d5e5e4c73ab8 22-Apr-2017 Jeff Sharkey <jsharkey@android.com> More auto-doc work.

Add support for AnyThread, CallSuper, and UiThread.

Another related CL started documenting @RequiresPermission, so remove
duplicated information in existing APIs.

Suppress auto-doc on a handful of classes that are already
well-documented.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
55455181233cadcd6d2e28d28d0dfc9a653f7787 16-Apr-2017 Romain Guy <romainguy@google.com> Properly decode colors spaces in BitmapRegionDecoder

Reusing a bitmap with BitmapRegionDecoder would preserve the
previous color space. This change also tweaks color space
matching to make sure we pick Display P3 with parameter d=0.039
or d=0.04045

Bug: 36905374
Test: CtsGraphicsTestCases
Change-Id: I4d2d66e5babebb0b5ce5cbdc7e8244177b4b7f9c
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
03758701fb2498dd25ca0cc2a03ecd892fe0d26b 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix API feedback on Color" into oc-dev
26ca96ecb82cdbc058a39cebbfb16b402bf0fe03 14-Apr-2017 Romain Guy <romainguy@google.com> Fix API feedback on Color

Bug: 37323188
Test: Color_ColorLongTest and ColorSpaceTest in CtsGraphicsTestCases
Change-Id: I1e52d3f63f95b9bdb4410938b727a87c45429aac
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
4cae059bb9cc810dcd2f3acaf0afd4c0c979b93c 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add more doc to ColorSpace.getName()" into oc-dev
bfa58aab0a7723f2757f7919f37a520f469b7b04 13-Apr-2017 Romain Guy <romainguy@google.com> Range check transfer params in float domain

Our native code uses floats for transfer parameters, the range
check was too small (using the next representable double instead
of the next representable float).

Bug: 37013532
Test: Manual run of broken app, CtsGraphicsTestCases
Change-Id: Id91a3e62068be0abf13ee75e39c758eb106a5f24
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
cb7a24539bc5c0595ee554f982c2e6233d232b7a 13-Apr-2017 Romain Guy <romainguy@google.com> Add more doc to ColorSpace.getName()

Bug: 37084802
Test: make offline SDK docs
Change-Id: Ia2c3406951d615dcee1eafad8035c5c8aea4305b
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
66d7da6a41d2ae2acf8220d8b146ba6eea385a28 11-Apr-2017 Romain Guy <romainguy@google.com> Hide ColorSpace.Renderer

Bug: 37073273
Test: Compile, make sure CTS does not rely on this API
Change-Id: Ia5d2638676be44464a173f904a21158c554b9ebf
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
1cf7b4fcb3b2c239e3f0a68ec78cfedff510b779 06-Apr-2017 Romain Guy <romainguy@google.com> Rename getIntent() to getRenderIntent()

Bug: 37077433
Test: compile and ColorSpaceTests
Change-Id: I8eb1fa6136582eaac1d509ebfef7f67b0fffe1aa
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
c7dacca00828e586ce4496d83a25a4d60a6fb60f 01-Apr-2017 Romain Guy <romainguy@google.com> Documentation for PorterDuffXfermode

It tooks 10 years, but better late than never!

Bug: 32984164
Test: Compiled documentation and checked in Chrome
Change-Id: I6dfd7fba6d3077f8c774b203589083bdbc15f9d2
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
494f784e47e74a65e8bce485065f5b7b077800fb 13-Mar-2017 Romain Guy <romainguy@google.com> Use d=0.039 for Display P3 instead of sRGB's 0.04045

Bug: 32984164
Test: ColorSpaceTest
Change-Id: I4dd38a660e5130f36e424a3e7eb62e3d65ef2d2f
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
efb4b06493fe7b1604c762a448b13c7af2845a8d 27-Feb-2017 Romain Guy <romainguy@google.com> Add ColorSpace information on Bitmap

This is the first step toward interpreting color spaces at render time.

Bug: 32984164
Test: BitmapColorSpaceTest in CtsGraphicsTestCases

Change-Id: I0164a18f1ed74a745874fe5229168042afe27a04
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
4db2c229be8e4d243ca19fac4080cda1eeb22710 24-Feb-2017 Romain Guy <romainguy@google.com> Add CIECAT02 chromatic adaptation transform

Bug: 32984164
Test: CtsGraphicsTestCases
Change-Id: Id13ff88ab7a21901bd914ed740f859588099a18e
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
77b161e0b14372e3eb124ed19321a9639aeb4271 10-Jan-2017 Romain Guy <romainguy@google.com> Color API to create/store wide-gamut colors in a long

This change also includes the ability to create instances of
the Color class to represent more complex colors (any number
of components, etc.).

Test: CtsGraphicsTestCase
Bug: 32984164

Change-Id: I59399547c4aa2580901c93dd16e626fe07f8f23a
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
9505a6552764461c22ce48f1ac13d025d23e1579 14-Dec-2016 Romain Guy <romainguy@google.com> 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
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
15296a2d3478f53402e2d98f49724bb791eb339d 30-Nov-2016 Romain Guy <romainguy@google.com> Add API to visualize/debug/compare color spaces and colors

ColorSpace.createRenderer() returns a ColorSpace.Renderer which
can be used to visualize multiple color spaces and colors (each
associated with a specific color space) in the same CIE 1931 xyY
chromaticity diagram. This API was used to generate all the
diagrams shown in the documentation.

Bug: 32984164
Test: ColorSpaceTest in CTS
Change-Id: Ic94d939d5cfd563d826701f5e876b67b47ed56ec
/frameworks/base/graphics/java/android/graphics/ColorSpace.java
199e5a98ddc4402ba4b4cdafaa3d8deb58ef3c7d 29-Nov-2016 Romain Guy <romainguy@google.com> Add images to document built-in color spaces

Bug: 32984164
Test: make offline-sdk-referenceonly-docs and manual validation of output

Change-Id: I2f0e00e5a0581517bb7c535e8aee150f87ac7a6e
/frameworks/base/graphics/java/android/graphics/ColorSpace.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/graphics/java/android/graphics/ColorSpace.java