public class BlockEncodeRequest
extends java.lang.Object
Constructor and Description |
---|
BlockEncodeRequest() |
Modifier and Type | Method and Description |
---|---|
int |
addInterleavedSamples(int[] newSamples,
int offset,
int addCount,
int max) |
boolean |
isFull(int max) |
void |
setAll(int[] samples,
int count,
int start,
int skip,
long frameNumber,
EncodedElement result)
Set all values, preparing this object to be sent to an encoder.
|
public void setAll(int[] samples, int count, int start, int skip, long frameNumber, EncodedElement result)
samples
- Sample data, interleaved if multiple channels are usedcount
- Number of valid samplesstart
- Index of first valid sampleskip
- Number of samples to skip between samples(this should be
equal to number-of-channels minus 1.frameNumber
- Framenumber assigned to this block.result
- Location to store result of encode.public int addInterleavedSamples(int[] newSamples, int offset, int addCount, int max)
public boolean isFull(int max)