Range

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:
If only minimum values are specified, the formula is:
If only maximum values are specified, the formula is:
Where:

Contains

Contained By

Attributes

id, name, bypass, inBitDepth, outBitDepth
See Common Operator Attributes.

Example

<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>