diff options
Diffstat (limited to 'docs/html/guide/topics/renderscript/reference/rs_convert.jd')
| -rw-r--r-- | docs/html/guide/topics/renderscript/reference/rs_convert.jd | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/html/guide/topics/renderscript/reference/rs_convert.jd b/docs/html/guide/topics/renderscript/reference/rs_convert.jd index bf1f611..d4bf77f 100644 --- a/docs/html/guide/topics/renderscript/reference/rs_convert.jd +++ b/docs/html/guide/topics/renderscript/reference/rs_convert.jd @@ -1765,9 +1765,14 @@ Use <a href='rs_math.html#android_rs:clamp'>clamp</a>() to avoid this. </tbody></table> </div> <div class='jd-tagdata jd-tagdescr'> -<p> Packs three or four floating point RGBA values into a uchar4. The RGBA values should be -between 0.0 and 1.0 inclusive. Values outside of this range are clamped to this range. -However numbers greater than INT_MAX or less than INT_MIN can result in undefined behavior. +<p> Packs three or four floating point RGBA values into a uchar4. +</p> + +<p> The input values are typically between 0.0f and 1.0f inclusive. For input values outside +of this range, the resulting outputs will be clamped to be between 0 and 255. As this +clamping may be done after the input is multiplied by 255.f and converted to an integer, +input numbers greater than INT_MAX/255.f or less than INT_MIN/255.f result in +undefined behavior. </p> <p> If the alpha component is not specified, it is assumed to be 1.0, i.e. the result will |
