public class JNIEncoder
extends net.sf.fmj.media.AbstractCodec
Constructor and Description |
---|
JNIEncoder()
Initializes a new JNIEncoder instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this Codec.
|
java.lang.String |
getName()
Gets the name of this Codec.
|
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format in)
Returns the list of formats supported at the output.
|
void |
open()
Opens this Codec.
|
int |
process(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer)
Processes/encodes a buffer.
|
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the Format of the media data to be input to this
Codec.
|
javax.media.Format |
setOutputFormat(javax.media.Format format)
Sets the Format in which this Codec is to output media
data.
|
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
public void close()
close
in interface javax.media.PlugIn
close
in class net.sf.fmj.media.AbstractPlugIn
public java.lang.String getName()
getName
in interface javax.media.PlugIn
getName
in class net.sf.fmj.media.AbstractPlugIn
public javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
getSupportedOutputFormats
in interface javax.media.Codec
getSupportedOutputFormats
in class net.sf.fmj.media.AbstractCodec
in
- input Format to determine corresponding output
Format/tt>spublic void open() throws javax.media.ResourceUnavailableException
open
in interface javax.media.PlugIn
open
in class net.sf.fmj.media.AbstractPlugIn
javax.media.ResourceUnavailableException
public int process(javax.media.Buffer inBuffer, javax.media.Buffer outBuffer)
process
in interface javax.media.Codec
process
in class net.sf.fmj.media.AbstractCodec
inBuffer
- input bufferoutBuffer
- output bufferpublic javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat
in interface javax.media.Codec
setInputFormat
in class net.sf.fmj.media.AbstractCodec
format
- the Format of media data to set on this
Codecpublic javax.media.Format setOutputFormat(javax.media.Format format)
setOutputFormat
in interface javax.media.Codec
setOutputFormat
in class net.sf.fmj.media.AbstractCodec
format
- the Format in which this Codec is to
output media data
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.