net.sf.fmj.media.renderer.video
Class JPEGRenderer
java.lang.Object
net.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractRenderer
net.sf.fmj.media.AbstractVideoRenderer
net.sf.fmj.media.renderer.video.JPEGRenderer
- All Implemented Interfaces:
- Control, FrameGrabbingControl, Controls, PlugIn, Renderer, VideoRenderer
public class JPEGRenderer
- extends AbstractVideoRenderer
- implements VideoRenderer
Renderer which renders JPEG directly.
There is a comparable class in JMF, hence this implementation. However, it
seems like this is not really needed if there is a JPEGDecoder Codec registered.
However, the original cross-platform JMF did not include such a Codec.
Because this class does not use BufferToImage, it is not subject to any of
its limitations and will render images that BufferToImage does not support
yet. This is not really anything good, it is only worth pointing out because
it can be confusing when testing JPEG playback.
- Author:
- Ken Larson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPEGRenderer
public JPEGRenderer()
getName
public java.lang.String getName()
- Specified by:
getName in interface PlugIn- Overrides:
getName in class AbstractPlugIn
getSupportedInputFormats
public Format[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormats in interface Renderer- Specified by:
getSupportedInputFormats in class AbstractRenderer
getComponent
public java.awt.Component getComponent()
- Specified by:
getComponent in interface VideoRenderer- Specified by:
getComponent in class AbstractVideoRenderer
getControls
public java.lang.Object[] getControls()
- Description copied from class:
AbstractControls
- Retrieve an array of objects that control the object. If no controls are supported,
a zero length array is returned.
- Specified by:
getControls in interface Controls- Overrides:
getControls in class AbstractControls
- Returns:
- the array of object controls
setInputFormat
public Format setInputFormat(Format format)
- Specified by:
setInputFormat in interface Renderer- Overrides:
setInputFormat in class AbstractRenderer
doProcess
public int doProcess(Buffer buffer)
- Specified by:
doProcess in class AbstractVideoRenderer