public class SteimFrameBlock
extends java.lang.Object
Constructor and Description |
---|
SteimFrameBlock(int numFrames,
int steimVersion)
Create a new block of Steim frames for a particular version of Steim
copression.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
addEncodedWord(int word,
int samples,
int nibble)
Add a single 32-bit word to current frame.
|
byte[] |
getEncodedData()
Return the compressed byte representation of the data for inclusion
in a data record.
|
int |
getNumFrames()
Return the number of frames in this frame block
|
int |
getNumSamples()
Return the number of data samples represented by this frame block
|
edu.iris.dmc.seedcodec.SteimFrameBlock.SteimFrame[] |
getSteimFrames() |
int |
getSteimVersion()
Return the version of Steim compression used
|
int |
numNonEmptyFrames() |
protected void |
setXsubN(int word)
Set the reverse integration constant X(N) explicitly to the
provided word value.
|
void |
trimEmptyFrames() |
public SteimFrameBlock(int numFrames, int steimVersion)
numFrames
- the number of frames in this Steim recordsteimVersion
- which version of Steim compression is being used
(1,2,3).public int getNumSamples()
public int getSteimVersion()
public edu.iris.dmc.seedcodec.SteimFrameBlock.SteimFrame[] getSteimFrames()
public int numNonEmptyFrames()
public void trimEmptyFrames()
public byte[] getEncodedData() throws java.io.IOException
java.io.IOException
- from called method(s)public int getNumFrames()
protected boolean addEncodedWord(int word, int samples, int nibble)
samples
- the number of sample differences in the wordnibble
- a value of 0 to 3 that reflects the W0 encoding
for this wordprotected void setXsubN(int word)
word
- integer value to be placed in X(N)