The operator works as a switch between up to 20 M-Type sources. It can be used to switch between alternative implementations. You can use it, for example, to switch between different camera ports, or between different DMA inputs.
The selection is controlled by parameter SelectSource. The switching between two input ports keeps the granularity of the currently transmitted frame and line, i.e., the current frame being transmitted will be completely transmitted before switching to a new input port. In other words, the operator will not switch to another input while a frame is processed.
The operator acts like a Trash operator for all links which are currently not selected.
Note that all input links must be in the same format except the maximal image width and height.
The source type is specified by the parameter InfiniteSource. Setting it to ENABLED allows the operator to be connected to camera sources. Setting it to DISABLED allows the operator to be used between normal VA operators subsequent to a buffer.
We recommend not to use the SourceSelector operator for switching between sources which are sourced by the same M-type source. In such cases, use the IF or the CASE operator instead since these operators use much less resources than the SourceSelector operator.
- Empty frames are not supported.
- Empty lines are not supported.
|Input Links||I, data input
I[k], data input
|Output Link||O, data output|
The range of the input bit width is [1, 64] for unsigned inputs. 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].
The maximum output image width is the maximum of all input widths.
The maximum output image height is the maximum of all input heights.
|Type||static/dynamic read/write parameter|
This parameter selects the port and forwards its image data to the output. The data at all other ports is discarded.
When set to ENABLE, the operator allows its direct connection to infinite sources like Camera operators without the need of a buffer.
The use of operator SourceSelector is shown in the following examples:
Operator used to switch between two cameras.
An example for hardware self test of DMA, RAM, GPIOs, Trigger and LEDs.
Example - The image dimension is measured and can be used to analyze the design flow.
Example - For debugging purposes images can be inserted manually.
Example - For debugging purposes image transfer states on links can be investigated.
Example - For debugging purposes the Scope operator provides options for analyzing gray-scale pictures. .