An encoder receives a data object (source data) and produces encoding packets (as specified in RFC 6330). The source data is divided into a fixed number of source blocks, and each source block can be encoded independently.
An encoder provides a {@link SourceBlockEncoder} object per source block, and each takes care of actually encodingthe source data into encoding packets. These encoder objects are accessed via the method {@link #sourceBlock(int)}, or the method {@link #sourceBlockIterable()}.
The number of source blocks, the length of the source data and other parameters are specified as the FEC parameters. The method {@link #fecParameters()} provides the associated parameters to the encoder.
|
|