javaFlacEncoder
Class BlockEncodeRequest

java.lang.Object
  extended by 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

Constructor Summary
BlockEncodeRequest()
           
 
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
 

Constructor Detail

BlockEncodeRequest

public BlockEncodeRequest()
Method Detail

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 used
count - Number of valid samples
start - Index of first valid sample
skip - 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.