The Range element maps the input domain to the output range by scaling and offsetting values.
If a minInValue is present, then minOutValue must also be present and the result is clamped at the low end. Similarly, if maxInValue is present, then maxOutValue must also be present and the result is clamped at the high end. If none of minInValue, minOutValue, maxInValue, or maxOutValue are present, then the Range operator performs only bit-depth conversion.
The scaling of minInValue and maxInValue depends on the input bit-depth, and the scaling of minOutValue and maxOutValue depends the output bit-depth.
If both minimum and maximum values are specified, then the formula for Range is:




<ProcessList id="7f5b1560-fec4-4603-aa8d-c55bf5e22280" version="1.2">
<Description>10-bit full range to SMPTE (legal) range.</Description>
<InputDescriptor>generic RGB</InputDescriptor>
<OutputDescriptor>generic RGB</OutputDescriptor>
<Range inBitDepth="10i" outBitDepth="10i">
<minInValue> 0.0000</minInValue>
<maxInValue>1023.0000</maxInValue>
<minOutValue> 64.0000</minOutValue>
<maxOutValue>940.0000</maxOutValue>
</Range>
</ProcessList>The minValue element specifies the minimum input value for a Range element.
The maxInValue element specifies the maximum input value for a Range element.
The minOutValue element specifies the minimum output value for a Range element.
The maxOutValue element specifies the maximum output value for a Range element.