You are here: Elements > Frame Transformers > Output Variables

Output Variables

The Frame Transformer creates a new copy of the layer data. It works with the following output variables:

Abyte& abVirtualFrame is the array that receives the transformed layer. So abytLayer holds the pre-transform data and abVirtualFrame has the post-transform data.

Aushort& ausLowIndex and ausHighIndex serve to relate how the old data maps into the new. For each byte abVirtualFrame[i], ausLowIndex[i] holds the index in abytLayer of the first transformed byte and ausHighIndex[i] contains the index in abytLayer of the last transformed byte. These values allow for those bytes that correspond to the selected byte or bytes in the Decode Pane to be highlighted in the Event Pane.

The bool bFrameTransformed is set to true if the method transforms the frame. Depending upon what data is found in the layer, the method may or may not perform any actual transformation. If no transformation is done then bFrameTransformed should be set to false and the other outputs can be left unset. This setting will promote efficiency ‐ two identical copies of a frame will not be stored.