Class DDPDatagram

All Implemented Interfaces:
LXPath, LXSerializable, LXOutput.InetOutput, LXParameterListener

public class DDPDatagram extends LXDatagram
Distributed Display Protocol is a simple protocol developed by 3waylabs. It's a simple framing of raw color buffers, without DMX size limitations. The specification is available at http://www.3waylabs.com/ddp/
  • Field Details

  • Constructor Details

    • DDPDatagram

      public DDPDatagram(LX lx, LXModel model)
    • DDPDatagram

      public DDPDatagram(LX lx, int[] indexBuffer)
    • DDPDatagram

      public DDPDatagram(LX lx, int[] indexBuffer, int dataOffset)
    • DDPDatagram

      public DDPDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, int dataOffset)
    • DDPDatagram

      public DDPDatagram(LX lx, IndexBuffer indexBuffer, int dataOffset)
  • Method Details

    • setPushFlag

      public DDPDatagram setPushFlag(boolean push)
      Sets whether the push flag is set on this datagram.
      Parameters:
      push - Whether push flag is true
      Returns:
      this
    • setDataOffset

      public DDPDatagram setDataOffset(int offset)
      Sets the data offset for this packet
      Parameters:
      offset - Offset into the remote data buffer
      Returns:
      this
    • getDataBufferOffset

      protected int getDataBufferOffset()
      Description copied from class: LXBufferOutput
      Offset into raw byte buffer where color data is written
      Specified by:
      getDataBufferOffset in class LXBufferOutput
      Returns:
      Offset into raw byte buffer for color data