Operator CastParallel

Operator Library: Base

Library: Base

The operator CastParallel enables the re-interpretation of the input link bits. Change the parallelism at the output link for re-interpretation. For example, an input link width of 16-bit per pixel and a parallelism of two transmits 32-bits at each clock cycle. The CastParallel operator gives you the possibility to interpret these 32-bits as 8-bit per pixel at parallelism 4 or 4-bit per pixel at parallelism 8, etc. One constraint of the cast is that the product of the width and the parallelism must be identical for the input and the output link. The 2nd constraint is that the output pixel width must not exceed 64-bits.

At parallelism casts, the lower parallel components will be mapped to the lower bits.

Note that the operator will change the bit width of a pixel and the width of the images.

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]1 auto2
Arithmetic {unsigned, signed} as I
Parallelism any any
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format any as I
Color Flavor any as I
Max. Img Width any auto3
Max. Img Height any as I

1

The range of the input bit width is [1, 64]. For signed inputs, the range is [2, 64]. For unsigned color inputs, the range is [3, 63] and for signed color, the range is [6, 63].

2

The output bit width is determined from the output parallelism, the input parallelism and the input bit width by

where = bit width at the input, = parallelism at the input, = output parallleism and = bit width at the output.

3

The output image width must not exceed 2^31 - 1.

Parameters

None

Examples of Use

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