diff options
| author | Joe Fernandez <joefernandez@google.com> | 2015-08-16 20:25:45 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-16 20:25:45 +0000 |
| commit | 5c7817bc2f784e6f48a7d26aadf901ac3eb7aca2 (patch) | |
| tree | 90d658bc0f0e332d075bdb6668245a3a4c95a4fc /docs/html/guide/topics/renderscript/reference/rs_convert.jd | |
| parent | 1017f9862fb2cdfbff0abe12ef7d20b657a38e36 (diff) | |
| parent | 8bf69a48672a57d739354a2188f80f6213bbd771 (diff) | |
| download | frameworks_base-5c7817bc2f784e6f48a7d26aadf901ac3eb7aca2.zip frameworks_base-5c7817bc2f784e6f48a7d26aadf901ac3eb7aca2.tar.gz frameworks_base-5c7817bc2f784e6f48a7d26aadf901ac3eb7aca2.tar.bz2 | |
Merge "Update the RenderScript runtime documentation for MNC." into mnc-dev
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 |
