SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.codec.video.h264
Class Packetizer

java.lang.Object
  extended by net.sf.fmj.media.AbstractControls
      extended by net.sf.fmj.media.AbstractPlugIn
          extended by net.sf.fmj.media.AbstractCodec
              extended by net.sf.fmj.media.AbstractPacketizer
                  extended by net.java.sip.communicator.impl.media.codec.video.h264.Packetizer
All Implemented Interfaces:
javax.media.Codec, javax.media.Controls, javax.media.PlugIn

public class Packetizer
extends net.sf.fmj.media.AbstractPacketizer

Packets supplied data and encapsulates it in RTP in accord with RFC3984.

Author:
Damian Minkov, Lubomir Marinov

Field Summary
 
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()
          Constructor
 
Method Summary
 void close()
           
 String getName()
           
 javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
          Return the list of formats supported at the output.
 void open()
           
 int process(javax.media.Buffer inBuffer, javax.media.Buffer outBuffer)
           
 javax.media.Format setInputFormat(javax.media.Format in)
           
 javax.media.Format setOutputFormat(javax.media.Format out)
           
 
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
 

Constructor Detail

Packetizer

public Packetizer()
Constructor

Method Detail

getSupportedOutputFormats

public javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
Return the list of formats supported at the output.

Specified by:
getSupportedOutputFormats in interface javax.media.Codec
Specified by:
getSupportedOutputFormats in class net.sf.fmj.media.AbstractCodec

setInputFormat

public javax.media.Format setInputFormat(javax.media.Format in)
Specified by:
setInputFormat in interface javax.media.Codec
Overrides:
setInputFormat in class net.sf.fmj.media.AbstractCodec

setOutputFormat

public javax.media.Format setOutputFormat(javax.media.Format out)
Specified by:
setOutputFormat in interface javax.media.Codec
Overrides:
setOutputFormat in class net.sf.fmj.media.AbstractCodec

process

public int process(javax.media.Buffer inBuffer,
                   javax.media.Buffer outBuffer)
Specified by:
process in interface javax.media.Codec
Overrides:
process in class net.sf.fmj.media.AbstractPacketizer

open

public void open()
          throws javax.media.ResourceUnavailableException
Specified by:
open in interface javax.media.PlugIn
Overrides:
open in class net.sf.fmj.media.AbstractPlugIn
Throws:
javax.media.ResourceUnavailableException

close

public void close()
Specified by:
close in interface javax.media.PlugIn
Overrides:
close in class net.sf.fmj.media.AbstractPlugIn

getName

public String getName()
Specified by:
getName in interface javax.media.PlugIn
Overrides:
getName in class net.sf.fmj.media.AbstractPlugIn

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.