|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractCodec
net.java.sip.communicator.impl.neomedia.codec.video.SwScaler
public class SwScaler
Implements a Codec which uses libswscale to scale images and convert between color spaces (typically, RGB and YUV).
| 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 | |
|---|---|
|
SwScaler()
Initializes a new SwScaler instance which doesn't have an output size and will use a default one when it becomes necessary unless an explicit one is specified in the meantime. |
protected |
SwScaler(boolean fixOddYuv420Size)
Initializes a new SwScaler instance which can optionally attempt to keep the width and height of YUV 420 output even. |
| Method Summary | |
|---|---|
void |
close()
Close codec. |
javax.media.Format |
getInputFormat()
Gets the Format in which this Codec is currently configured to accept input media data. |
static int |
getNativeRGBFormat(javax.media.format.RGBFormat rgb)
Gets native (FFmpeg) RGB format. |
Dimension |
getOutputSize()
Gets the output size. |
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format input)
Gets the supported output formats for an input one. |
int |
process(javax.media.Buffer input,
javax.media.Buffer output)
Processes (converts color space and/or scales) a buffer. |
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the input format. |
javax.media.Format |
setOutputFormat(javax.media.Format format)
Sets the Format in which this Codec is to output media data. |
void |
setOutputSize(Dimension size)
Sets the output size. |
| Methods inherited from class net.sf.fmj.media.AbstractCodec |
|---|
checkInputBuffer, dump, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM |
| Methods inherited from class net.sf.fmj.media.AbstractPlugIn |
|---|
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 |
|---|
getName, open, reset |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Constructor Detail |
|---|
public SwScaler()
protected SwScaler(boolean fixOddYuv420Size)
fixOddYuv420Size - true to keep the width and height of YUV
420 output even; otherwise, false| Method Detail |
|---|
public void close()
close in interface javax.media.PlugInclose in class net.sf.fmj.media.AbstractPlugInpublic javax.media.Format getInputFormat()
Makes the protected super implementation public.
getInputFormat in class net.sf.fmj.media.AbstractCodecAbstractCodec.getInputFormat()public static int getNativeRGBFormat(javax.media.format.RGBFormat rgb)
rgb - JMF RGBFormat
public Dimension getOutputSize()
public javax.media.Format[] getSupportedOutputFormats(javax.media.Format input)
getSupportedOutputFormats in interface javax.media.CodecgetSupportedOutputFormats in class net.sf.fmj.media.AbstractCodecinput - input format to get supported output ones for
public int process(javax.media.Buffer input,
javax.media.Buffer output)
process in interface javax.media.Codecprocess in class net.sf.fmj.media.AbstractCodecinput - input bufferoutput - output buffer
public javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat in interface javax.media.CodecsetInputFormat in class net.sf.fmj.media.AbstractCodecformat - format to set
public javax.media.Format setOutputFormat(javax.media.Format format)
setOutputFormat in interface javax.media.CodecsetOutputFormat in class net.sf.fmj.media.AbstractCodecformat - the Format in which this Codec is to
output media data
public void setOutputSize(Dimension size)
size - the size to set as the output size
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||