|
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.sf.fmj.media.AbstractPacketizer
net.java.sip.communicator.impl.neomedia.codec.video.h264.Packetizer
public class Packetizer
Packetizes H.264 encoded data/NAL units into RTP packets in accord with RFC 3984 "RTP Payload Format for H.264 Video".
| Field Summary | |
|---|---|
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. |
| 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 | |
|---|---|
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". |
|
| Method Summary | |
|---|---|
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 output)
Sets the Format in which this Codec is to output media data. |
| Methods inherited from class net.sf.fmj.media.AbstractPacketizer |
|---|
doBuildPacketHeader, setDoNotSpanInputBuffers, setPacketSize, setPacketSizeImpl |
| Methods inherited from class net.sf.fmj.media.AbstractCodec |
|---|
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM |
| Methods inherited from class net.sf.fmj.media.AbstractPlugIn |
|---|
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 |
|---|
reset |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Field Detail |
|---|
public static final int MAX_PAYLOAD_SIZE
static final javax.media.Format[] SUPPORTED_OUTPUT_FORMATS
| Constructor Detail |
|---|
public Packetizer()
| Method Detail |
|---|
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
Format/tt>s
public 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 buffer
public javax.media.Format setInputFormat(javax.media.Format in)
setInputFormat in interface javax.media.CodecsetInputFormat in class net.sf.fmj.media.AbstractCodecin - format to set
public javax.media.Format setOutputFormat(javax.media.Format output)
setOutputFormat in interface javax.media.CodecsetOutputFormat in class net.sf.fmj.media.AbstractCodecoutput - the Format in which this Codec is to
output media data
|
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 | |||||||||