com.t4l.jmf
Class JPEGDecoder
java.lang.Object
com.t4l.jmf.JPEGDecoder
- All Implemented Interfaces:
- Codec, Controls, PlugIn
public class JPEGDecoder
- extends java.lang.Object
- implements Codec
This type of MOV file just stores frames as a series of JPEG
images.
This codec uses ImageIO classes to convert from the jpeg VideoFormat
to RGBFormats.
- Author:
- Jeremy Wood
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPEGDecoder
public JPEGDecoder()
getSupportedInputFormats
public Format[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormats
in interface Codec
getSupportedOutputFormats
public Format[] getSupportedOutputFormats(Format input)
- Specified by:
getSupportedOutputFormats
in interface Codec
process
public int process(Buffer input,
Buffer output)
- Specified by:
process
in interface Codec
processJPEGtoRGB
protected int processJPEGtoRGB(Buffer input,
Buffer output)
readJPEG
protected static void readJPEG(byte[] data,
java.awt.image.BufferedImage dest)
throws java.io.IOException
- Throws:
java.io.IOException
setInputFormat
public Format setInputFormat(Format f)
- Specified by:
setInputFormat
in interface Codec
setOutputFormat
public Format setOutputFormat(Format f)
- Specified by:
setOutputFormat
in interface Codec
close
public void close()
- Specified by:
close
in interface PlugIn
getName
public java.lang.String getName()
- Specified by:
getName
in interface PlugIn
open
public void open()
throws ResourceUnavailableException
- Specified by:
open
in interface PlugIn
- Throws:
ResourceUnavailableException
reset
public void reset()
- Specified by:
reset
in interface PlugIn
getControl
public java.lang.Object getControl(java.lang.String controlType)
- Specified by:
getControl
in interface Controls
getControls
public java.lang.Object[] getControls()
- Specified by:
getControls
in interface Controls