net.java.sip.communicator.impl.media.codec.video
Class ImageScaler
java.lang.Object
net.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractCodec
net.java.sip.communicator.impl.media.codec.video.ImageScaler
- All Implemented Interfaces:
- javax.media.Codec, javax.media.Controls, javax.media.PlugIn
public class ImageScaler
- extends net.sf.fmj.media.AbstractCodec
- implements javax.media.Codec
Codec that scales images from one size to another.
Interestingly, cross-platform JMF does not appear to have a corresponding codec.
- Author:
- Ken Larson
Original from fmj project, changed only output format sizes.
The sizes are those supported in h263 and h264., Damian Minkov
| 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 |
| Methods inherited from class net.sf.fmj.media.AbstractCodec |
checkInputBuffer, dump, getInputFormat, getOutputFormat, isEOM, propagateEOM |
| 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.PlugIn |
close, getName, open, reset |
| Methods inherited from interface javax.media.Controls |
getControl, getControls |
ImageScaler
public ImageScaler()
getSupportedInputFormats
public javax.media.Format[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormats in interface javax.media.Codec- Overrides:
getSupportedInputFormats in class net.sf.fmj.media.AbstractCodec
getSupportedOutputFormats
public javax.media.Format[] getSupportedOutputFormats(javax.media.Format input)
- Specified by:
getSupportedOutputFormats in interface javax.media.Codec- Specified by:
getSupportedOutputFormats in class net.sf.fmj.media.AbstractCodec
setInputFormat
public javax.media.Format setInputFormat(javax.media.Format format)
- Specified by:
setInputFormat in interface javax.media.Codec- Overrides:
setInputFormat in class net.sf.fmj.media.AbstractCodec
setOutputFormat
public javax.media.Format setOutputFormat(javax.media.Format format)
- Specified by:
setOutputFormat in interface javax.media.Codec- Overrides:
setOutputFormat in class net.sf.fmj.media.AbstractCodec
process
public int process(javax.media.Buffer input,
javax.media.Buffer output)
- Specified by:
process in interface javax.media.Codec- Specified by:
process in class net.sf.fmj.media.AbstractCodec
SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.