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.
|
(package private) static javax.media.Format[] |
SUPPORTED_OUTPUT_FORMATS
The Formats supported by Packetizer instances as
output.
|
Constructor and Description |
---|
Packetizer()
Initializes a new Packetizer instance which is to packetize
H.264 encoded data/NAL units into RTP packets in accord with RFC 3984
"RTP Payload Format for H.264 Video".
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this Packetizer.
|
java.lang.String |
getName()
Gets the name of this PlugIn.
|
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format in)
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 (packetize) 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
static final javax.media.Format[] SUPPORTED_OUTPUT_FORMATS
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 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
- 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.