net.sf.fmj.media.codec.video
Class ImageIOEncoder

java.lang.Object
  extended by net.sf.fmj.media.AbstractControls
      extended by net.sf.fmj.media.AbstractPlugIn
          extended by net.sf.fmj.media.AbstractCodec
              extended by net.sf.fmj.media.codec.video.ImageIOEncoder
All Implemented Interfaces:
Codec, Controls, PlugIn
Direct Known Subclasses:
GIFEncoder, PNGEncoder

public abstract class ImageIOEncoder
extends AbstractCodec
implements Codec

Base class for image encoder Codecs which use ImageIO.

Author:
Ken Larson

Field Summary
 
Fields inherited from class net.sf.fmj.media.AbstractCodec
inputFormat, inputFormats, opened, outputFormat
 
Fields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
Constructor Summary
ImageIOEncoder(java.lang.String formatName)
           
 
Method Summary
 Format[] getSupportedInputFormats()
           
 int process(Buffer input, Buffer output)
           
 Format setInputFormat(Format format)
           
 
Methods inherited from class net.sf.fmj.media.AbstractCodec
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedOutputFormats, isEOM, propagateEOM, setOutputFormat
 
Methods inherited from class net.sf.fmj.media.AbstractPlugIn
close, getName, open, reset
 
Methods inherited from class net.sf.fmj.media.AbstractControls
addControl, getControl, getControls, removeControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.Codec
getSupportedOutputFormats, setOutputFormat
 
Methods inherited from interface javax.media.PlugIn
close, getName, open, reset
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Constructor Detail

ImageIOEncoder

public ImageIOEncoder(java.lang.String formatName)
Method Detail

getSupportedInputFormats

public Format[] getSupportedInputFormats()
Specified by:
getSupportedInputFormats in interface Codec
Overrides:
getSupportedInputFormats in class AbstractCodec

setInputFormat

public Format setInputFormat(Format format)
Specified by:
setInputFormat in interface Codec
Overrides:
setInputFormat in class AbstractCodec

process

public int process(Buffer input,
                   Buffer output)
Specified by:
process in interface Codec
Specified by:
process in class AbstractCodec