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.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.
|
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, setPacketSizeImplcheckInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOMaddControl, getControl, getControls, removeControlpublic static final int MAX_PAYLOAD_SIZE
public Packetizer()
public void close()
close in interface javax.media.PlugInclose in class net.sf.fmj.media.AbstractPlugInpublic String getName()
getName in interface javax.media.PlugIngetName in class net.sf.fmj.media.AbstractPlugInpublic javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
getSupportedOutputFormats in interface javax.media.CodecgetSupportedOutputFormats in class net.sf.fmj.media.AbstractCodecin - input Format to determine corresponding output
Formatspublic void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInopen in class net.sf.fmj.media.AbstractPlugInjavax.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.Codecprocess in class net.sf.fmj.media.AbstractPacketizerinBuffer - input bufferoutBuffer - output bufferpublic javax.media.Format setInputFormat(javax.media.Format in)
setInputFormat in interface javax.media.CodecsetInputFormat in class net.sf.fmj.media.AbstractCodecin - format to setpublic 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 dataCopyright © 2021 jitsi.org. All rights reserved.