BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED| Constructor and Description |
|---|
JPEGEncoder() |
| 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 |
processRGBtoJPEG(Buffer input,
Buffer output) |
void |
reset() |
Format |
setInputFormat(Format f) |
Format |
setOutputFormat(Format f) |
protected static int |
writeJPEG(java.awt.image.BufferedImage image,
byte[] data) |
public Format[] getSupportedInputFormats()
getSupportedInputFormats in interface Codecpublic Format[] getSupportedOutputFormats(Format input)
getSupportedOutputFormats in interface Codecprotected static int writeJPEG(java.awt.image.BufferedImage image,
byte[] data)
throws java.io.IOException
image - data - 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