BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED| Constructor and Description |
|---|
JPEGDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.Object |
getControl(java.lang.String controlType) |
java.lang.Object[] |
getControls() |
java.lang.String |
getName() |
Format[] |
getSupportedInputFormats() |
Format[] |
getSupportedOutputFormats(Format input) |
void |
open() |
int |
process(Buffer input,
Buffer output) |
protected int |
processJPEGtoRGB(Buffer input,
Buffer output) |
protected static void |
readJPEG(byte[] data,
java.awt.image.BufferedImage dest) |
void |
reset() |
Format |
setInputFormat(Format f) |
Format |
setOutputFormat(Format f) |
public Format[] getSupportedInputFormats()
getSupportedInputFormats in interface Codecpublic Format[] getSupportedOutputFormats(Format input)
getSupportedOutputFormats in interface Codecprotected static void readJPEG(byte[] data,
java.awt.image.BufferedImage dest)
throws java.io.IOException
java.io.IOExceptionpublic Format setInputFormat(Format f)
setInputFormat in interface Codecpublic Format setOutputFormat(Format f)
setOutputFormat in interface Codecpublic void open()
throws ResourceUnavailableException
open in interface PlugInResourceUnavailableExceptionpublic java.lang.Object getControl(java.lang.String controlType)
getControl in interface Controlspublic java.lang.Object[] getControls()
getControls in interface Controls