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.
-
Constructor Details
-
X3FrameDecode
public X3FrameDecode()
-
-
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 headerx3Data
- x3 dataoffset
- x3 data offset in bytesdata
- Array for wav datablockLen
- block length in x3 data.- Returns:
- array of unpacked data (generally the same as the input data array unless it needed to be reallocated)
-