Searched refs:MAX_SHORT (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/awt/org/apache/harmony/awt/gl/color/
H A DColorScaler.java35 private static final float MAX_SHORT = 0xFFFF; field in class:ColorScaler
88 channelMulipliers[i] = MAX_SHORT / MAX_SIGNED_SHORT;
89 invChannelMulipliers[i] = MAX_SIGNED_SHORT / MAX_SHORT;
92 channelMulipliers[i] = MAX_SHORT / maxVal;
93 invChannelMulipliers[i] = maxVal / MAX_SHORT;
145 MAX_SHORT / (maxValues[i] - channelMinValues[i]);
148 (maxValues[i] - channelMinValues[i]) / MAX_SHORT;
167 MAX_SHORT / (cs.getMaxValue(i) - channelMinValues[i]);
170 (cs.getMaxValue(i) - channelMinValues[i]) / MAX_SHORT;
188 // Change max value from MAX_SHORT t
[all...]
/frameworks/base/awt/java/awt/color/
H A DICC_ColorSpace.java69 * The Constant MAX_SHORT.
71 private static final float MAX_SHORT = 65535f; field in class:ICC_ColorSpace
76 private static final float INV_MAX_SHORT = 1f/MAX_SHORT;
81 private static final float SHORT2XYZ_FACTOR = MAX_XYZ/MAX_SHORT;
86 private static final float XYZ2SHORT_FACTOR = MAX_SHORT/MAX_XYZ;
291 scaledRGBValue[0] = (short)(rgbvalue[0] * MAX_SHORT + 0.5f);
292 scaledRGBValue[1] = (short)(rgbvalue[1] * MAX_SHORT + 0.5f);
293 scaledRGBValue[2] = (short)(rgbvalue[2] * MAX_SHORT + 0.5f);

Completed in 25 milliseconds