diff options
| author | 2017-04-14 03:10:12 +0000 | |
|---|---|---|
| committer | 2017-04-14 03:10:16 +0000 | |
| commit | 4cae059bb9cc810dcd2f3acaf0afd4c0c979b93c (patch) | |
| tree | 7267d19e691960637dcaa06907b0045460e7a315 | |
| parent | 59047acea71e2fa23c049d30a13cc45a5606ad38 (diff) | |
| parent | cb7a24539bc5c0595ee554f982c2e6233d232b7a (diff) | |
Merge "Add more doc to ColorSpace.getName()" into oc-dev
| -rw-r--r-- | graphics/java/android/graphics/ColorSpace.java | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/ColorSpace.java b/graphics/java/android/graphics/ColorSpace.java index f1804e5976de..8f78319e8380 100644 --- a/graphics/java/android/graphics/ColorSpace.java +++ b/graphics/java/android/graphics/ColorSpace.java @@ -885,8 +885,32 @@ public abstract class ColorSpace { } /** - * Returns the name of this color space. The name is never null - * and contains always at least 1 character. + * <p>Returns the name of this color space. The name is never null + * and contains always at least 1 character.</p> + * + * <p>Color space names are recommended to be unique but are not + * guaranteed to be. There is no defined format but the name usually + * falls in one of the following categories:</p> + * <ul> + * <li>Generic names used to identify color spaces in non-RGB + * color models. For instance: {@link Named#CIE_LAB Generic L*a*b*}.</li> + * <li>Names tied to a particular specification. For instance: + * {@link Named#SRGB sRGB IEC61966-2.1} or + * {@link Named#ACES SMPTE ST 2065-1:2012 ACES}.</li> + * <li>Ad-hoc names, often generated procedurally or by the user + * during a calibration workflow. These names often contain the + * make and model of the display.</li> + * </ul> + * + * <p>Because the format of color space names is not defined, it is + * not recommended to programmatically identify a color space by its + * name alone. Names can be used as a first approximation.</p> + * + * <p>It is however perfectly acceptable to display color space names to + * users in a UI, or in debuggers and logs. When displaying a color space + * name to the user, it is recommended to add extra information to avoid + * ambiguities: color model, a representation of the color space's gamut, + * white point, etc.</p> * * @return A non-null String of length >= 1 */ |