Operator Library: Synchronization
Operator IsFirstPixel marks the first pixel in a line (in line mode) or in a frame (in frame mode). The operator outputs a 1 on its output port IsFirstO for each first pixel of a line/frame.
Empty line: If the operator receives an empty line, it also outputs an empty line. IsFirstO is NOT set to 1 in this case.
Empty frame: If the operator receives an empty frame, it also outputs an empty frame. IsFirstO is NOT set to 1 in this case.
Operator IsFirstPixel is an O-type operator. The pixel values received on the input port I are not interpreted.
Example (parameter Mode = Line):

![]() |
Parallelism > 1 |
|---|---|
|
If parallelism > 1, only the first pixel in the parallelism is marked with a 1 on output port IsFirstO. All other parallelism components are 0. Example: If Parallelism = 4, IsFirstO is 0x1 at the first pixel, and in all other cases 0. |
| Property | Value |
|---|---|
| Operator Type | O |
| Input Link | I, data input |
| Output Link | IsFirstO, output of 1 for first pixel in line/frame and 0 for all other pixels |
| Mode | |
|---|---|
| Type | static or dynamic write parameter |
| Default | Frame |
| Range | {Line, Frame} |
|
If set to "Line", the operator marks the first pixel in a line. The operator outputs a 1 on its output port IsFirstO for each first pixel of a line. If set to "Frame", the operator marks the first pixel in a frame. The operator outputs a 1 on its output port IsFirstO for each first pixel of a frame. This parameter you can set to static or dynamic. When you use the parameter as a dynamic parameter: A shadow register is implemented, and the change is taken over between
and always at reset. Until then, the old value is used. |
|
The use of operator IsFirstPixel is shown in the following examples:
-
'Functional Example for Specific Operators of Library Synchronization, Base and Filter'
Examples - Demonstration of how to use the operator

![[Note]](../common/images/admon/note.png)

Prev

