Operator SelectBitField

Operator Library: Base

The module SelectBitField makes it feasible to select a field of succeeding bits form the input link. Define the required output bit width using the output link. Additionally, you can define the bit offset using parameter BitOffset. If the input arithmetic is signed, the values will be reinterpreted and always output as unsigned values.

Each color component is sliced separately.

See the following figure for explanation. In this example, the output transports 3 bits cut from the 6 bit input values with an offset of two. For example, input value 20 will become 5.

I/O Properties

Property Value
Operator Type O
Input Link I, data input
Output Link O, data output

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [1, 64] unsigned, [2, 64] signed [1, 64]1
Arithmetic {unsigned, signed} unsigned
Parallelism {1, 2, 4, 8, 16, 32, 64, 128} as I
Kernel Columns any as I
Kernel Rows any as I
Color Format any as I
Color Flavor any as I
Max. Img Width any as I
Max. Img Height any as I


The output bit width has to be in


Type static parameter
Default 0
Range [0, InputBitWidth - OutputBitWidth] if gray [0, (InputBitWidth - OutputBitWidth) / 3] if color

This parameter defines the bit offset for the first bit to be used. This first bit is mapped to bit position 0 at the output link. For color formats, the offset is handled per component.

Examples of Use

The use of operator SelectBitField is shown in the following examples: