|
FireSync API
|
| kStatus kProjector_LoadPatterns | ( | kProjector | projector, |
| kArray2 | patterns | ||
| ) |
Loads the input pattern to be projected.
The interpretation of the pattern data depends on the current pattern mode. In 2D_1BPP mode, pattern data should be provided as a kArray2<k8u>, with eight 1-bit pixels packed into each array element. Each output pixel in the 2D display is represented by a single bit in this 2D input array.
In 1D_8BPP mode, pattern data should be provided as a kArray2<k8u>, with one 8-bit pixel in each array element. In this mode, each row of the input pattern is used to generate an entire 2D display frame by repeating the same input row across every output row. The resulting 2D display frame contains vertical stripes of varying widths. The FrameCount property determines how many individual input rows will be used to generate output frames (output frame N is defined by input pattern row N, modulo input pattern height).
If settings have been changed, kNode_Apply should be called prior to calling kProjector_LoadPatterns, to ensure that uncommitted settings are successfully applied before writing a pattern to the node. This ensures that the node has updated projector properites, which are required to correctly interpret the pattern.
| projector | Projector object. |
| patterns | Pattern(s) to project. |