javaFlacEncoder
Class BlockEncodeRequest
java.lang.Object
javaFlacEncoder.BlockEncodeRequest
public class BlockEncodeRequest
- extends java.lang.Object
BlockEncodeRequests are used to store a full block and necessary information
to encode such block. It is assumed member variables will be accessed
directly(for speed considerations). This Class simply gathers all values
into a single object, but handles no encoding logic itself.
- Author:
- Preston Lacey
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockEncodeRequest
public BlockEncodeRequest()
setAll
public 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. Member
variable "valid" is set to false by this call.
- Parameters:
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.