public class Packetizer
extends net.sf.fmj.media.AbstractPacketizer
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PAYLOAD_SIZE
Maximum payload size without the headers.
|
Constructor and Description |
---|
Packetizer()
Initializes a new Packetizer instance which is to packetize
H.263+ encoded data into RTP packets in accord with
RFC 4529 "RTP Payload Format for ITU-T Rec.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this Packetizer.
|
java.lang.String |
getName()
Get codec name.
|
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format inputFormat)
Return the list of formats supported at the output.
|
void |
open()
Open this Packetizer.
|
int |
process(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer)
Processes/packetizes a buffer.
|
javax.media.Format |
setInputFormat(javax.media.Format in)
Sets the input format.
|
javax.media.Format |
setOutputFormat(javax.media.Format format)
Sets the Format in which this Codec is to output media
data.
|
doBuildPacketHeader, setDoNotSpanInputBuffers, setPacketSize, setPacketSizeImpl
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
public static final int MAX_PAYLOAD_SIZE
public Packetizer()
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 inputFormat)
getSupportedOutputFormats
in interface javax.media.Codec
getSupportedOutputFormats
in class net.sf.fmj.media.AbstractCodec
inputFormat
- 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
- if something goes wrong during
initialization of the Packetizer.public int process(javax.media.Buffer inBuffer, javax.media.Buffer outBuffer)
process
in interface javax.media.Codec
process
in class net.sf.fmj.media.AbstractPacketizer
inBuffer
- input bufferoutBuffer
- output bufferpublic javax.media.Format setInputFormat(javax.media.Format in)
setInputFormat
in interface javax.media.Codec
setInputFormat
in class net.sf.fmj.media.AbstractCodec
in
- format to setpublic 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.