Lines Matching refs:to
10 # Unless required by applicable law or agreed to in writing, software
20 The functions below convert from a numerical vector type to another, or from one color
21 representation to another.
34 Converts a vector from one numerical type to another. The conversion are done entry per entry.
36 E.g calling <code>a = convert_short3(b);</code> is equivalent to doing
39 Converting floating point values to integer types truncates.
41 Converting numbers too large to fit the destination type yields undefined results.
42 For example, converting a float that contains 1.0e18 to a short is undefined.
43 Use @clamp() to avoid this.
107 of this range, the resulting outputs will be clamped to be between 0 and 255. As this
108 clamping may be done after the input is multiplied by 255.f and converted to an integer,
112 If the alpha component is not specified, it is assumed to be 1.0, i.e. the result will
113 have an alpha set to 255.
143 # We're doing this to stay backward compatible with the unusual declaration used when this
150 Unpacks a uchar4 color to float4. The resulting floats will be between 0.0 and 1.0 inclusive.
162 summary: Convert a YUV value to RGBA
164 Converts a color from a YUV representation to RGBA.
166 We currently don't provide a function to do the reverse conversion.