Colour Management > Autodesk Color Management Technical Reference > Autodesk CTF File Format > Operator Elements >

# 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

In order:

- Description. Optional, any number.
- minInValue. Optional, one only.
- minOutValue. Optional, one only.
- maxInValue. Optional, one only.
- maxOutValue. Optional, one only.

## Contained By

- ProcessList

## Attributes

id, name, 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>

#### Topics in this section

- minInValue

  The minValue element specifies the minimum input value for a Range element.

- maxInValue

  The maxInValue element specifies the maximum input value for a Range element.

- minOutValue

  The minOutValue element specifies the minimum output value for a Range element.

- maxOutValue

  The maxOutValue element specifies the maximum output value for a Range element.