Package x3

Class X3FrameDecode

java.lang.Object
x3.X3FrameDecode

public class X3FrameDecode
extends java.lang.Object
Functions to decode a single x3 frame. Although the header structures are different in the d3 code from Mark and the code I wrote in PAMBuoy, the frame packing is fortunately identical so this code will work with both formats.
Author:
Doug Gillespie
  • Constructor Summary

    Constructors 
    Constructor Description
    X3FrameDecode()  
  • Method Summary

    Modifier and Type Method Description
    short[] unpackX3Frame​(X3FrameHeader x3Head, byte[] x3Data, int offset, short[] data, int blockLen)
    Unpack a frame of X3 data.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • unpackX3Frame

      public short[] unpackX3Frame​(X3FrameHeader x3Head, byte[] x3Data, int offset, short[] data, int blockLen)
      Unpack a frame of X3 data.
      Parameters:
      x3Head - X3 header
      x3Data - x3 data
      offset - x3 data offset in bytes
      data - Array for wav data
      blockLen - block length in x3 data.
      Returns:
      array of unpacked data (generally the same as the input data array unless it needed to be reallocated)