public int process(Buffer input, Buffer output) {
Format inputFormat = input.getFormat();
Format outputFormat = output.getFormat();
if(inputFormat.relax().matches(rgbFormat) && outputFormat.relax().matches(jpegFormat)) {
return processRGBtoJPEG(input,output);
}
return PlugIn.BUFFER_PROCESSED_FAILED;
}
static Hashtable imageTable = new Hashtable();