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 Codec
public Format[] getSupportedOutputFormats(Format input)
getSupportedOutputFormats
in interface Codec
protected static int writeJPEG(java.awt.image.BufferedImage image, byte[] data) throws java.io.IOException
image
- data
- java.io.IOException
public Format setInputFormat(Format f)
setInputFormat
in interface Codec
public Format setOutputFormat(Format f)
setOutputFormat
in interface Codec
public void open() throws ResourceUnavailableException
open
in interface PlugIn
ResourceUnavailableException
public java.lang.Object getControl(java.lang.String controlType)
getControl
in interface Controls
public java.lang.Object[] getControls()
getControls
in interface Controls