public class Encoder extends Object implements Runnable
First the encoder should be initialized with a ParameterList object provided through the constructor. Then, the run() method is invoked and the encoder executes. The exit code of the class can be obtained with the getExitCode() method, after the constructor and after the run method. A non-zero value indicates that an error has occurred.
The modules are inserted in the encoding chain with the following order:
The encoder uses a pull model. This means that the last module (PostCompRateAllocator) requests data from its source (EntropyCoder), ...
Writing of the codestream writing (header+bit stream) is realized by HeaderEncoder and CodestreamWriter modules.
Packed packet headers and file-format creation are carried out by CodestreamManipulator and FileFormatWriter modules respectively.
Many modules of the encoder may behave differently depending on the tile-component. The specifications of their behaviour are kept in specialized modules extending ModuleSpec class. All these modules are accessible through an instance of EncoderSpecs class.
| Modifier and Type | Field and Description |
|---|---|
static char[] |
vprfxs
The valid list of options prefixes
|
| Constructor and Description |
|---|
Encoder(ParameterList pl)
Instantiates an encoder object, width the ParameterList object given as
argument.
|
| Modifier and Type | Method and Description |
|---|---|
static String[][] |
getAllParameters()
Returns all the parameters used in the encoding chain.
|
int |
getExitCode()
Returns the exit code of the class.
|
static String[][] |
getParameterInfo()
Returns the parameters that are used in this class and
implementing classes.
|
void |
run()
Runs the encoder.
|
public Encoder(ParameterList pl)
pl - The ParameterList for this decoder (contains also defaults
values);public int getExitCode()
public void run()
run in interface RunnablegetExitCode()public static String[][] getParameterInfo()
public static String[][] getAllParameters()
getParameterInfo()Copyright © 2015. All rights reserved.