|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.jpeg.jj2000.j2k.decoder.Grib2JpegDecoder
public class Grib2JpegDecoder
This class is the main class of JJ2000's decoder. It instantiates all objects and performs the decoding operations. It then writes the image to an array for use in Grib2 getData routines
First the decoder should be initialized with a ParameterList object given through the constructor. The when the run() method is invoked and the decoder 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 ocurred.
The decoding chain corresponds to the following sequence of modules:
The 2 last modules cannot be used at the same time and corresponds respectively to the writing of decoded image into a file or the graphical display of this same image.
The behaviour of each module may be modified according to the current tile-component. All the specifications are kept in modules extending ModuleSpec and accessible through an instance of DecoderSpecs class.
BitstreamReaderAgent
,
EntropyDecoder
,
ROIDeScaler
,
Dequantizer
,
InverseWT
,
ImgDataConverter
,
InvCompTransf
,
ImgWriter
,
BlkImgDataSrcImageProducer
,
ModuleSpec
,
DecoderSpecs
Field Summary | |
---|---|
int[] |
data
the decoded image data |
Constructor Summary | |
---|---|
Grib2JpegDecoder(String[] argv)
Instantiates a decoder object, width the 'argv' command line arguments. |
Method Summary | |
---|---|
void |
decode(byte[] buf)
Runs the decoder. |
void |
decode(RandomAccessFile raf,
int dataSize)
|
void |
exit()
Exit the decoding process according to the isChildProcess variable |
static String[][] |
getAllParameters()
Returns all the parameters used in the decoding chain. |
String[] |
getCOMInfo()
Return the information found in the COM marker segments encountered in the decoded codestream. |
int |
getExitCode()
Returns the exit code of the class. |
int[] |
getGdata()
Return the decoded image as byte array |
int |
getPackBytes()
Return the packBytes ie number bytes / number 1,2 or 4 |
static String[][] |
getParameterInfo()
Returns the parameters that are used in this class. |
void |
setChildProcess(boolean b)
Set isChildProcess variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int[] data
Constructor Detail |
---|
public Grib2JpegDecoder(String[] argv)
IllegalArgumentException
- If 'argv' is emptygetExitCode()
Method Detail |
---|
public int getExitCode()
public static String[][] getParameterInfo()
public void decode(byte[] buf)
getExitCode()
public void decode(RandomAccessFile raf, int dataSize)
public int getPackBytes()
public int[] getGdata()
public String[] getCOMInfo()
public static String[][] getAllParameters()
getParameterInfo()
public void exit()
public void setChildProcess(boolean b)
b
- The boolean value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |