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

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

java.lang.Object
  extended by net.java.sip.communicator.impl.media.codec.video.h264.H264Parser

public class H264Parser
extends Object

Parses H264 rtp headers and extracts the data in the format the decoder expects it. RFC3984.

Author:
Damian Minkov, Lubomir Marinov

Constructor Summary
H264Parser()
           
H264Parser(int encodedFramePaddingSize)
           
 
Method Summary
 byte[] getEncodedFrame()
          Returns the result data extracted from one ore more rtp packest.
 int getEncodedFrameLen()
          Returns the result data length.
 boolean pushRTPInput(javax.media.Buffer inputBuffer)
          New rtp packet is received.
(package private)  void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H264Parser

public H264Parser()

H264Parser

public H264Parser(int encodedFramePaddingSize)
Method Detail

pushRTPInput

public boolean pushRTPInput(javax.media.Buffer inputBuffer)
New rtp packet is received. We push it to the parser to extract the data.

Parameters:
inputBuffer - the data from the rtp packet
Returns:
true if the result data must be passed to the decoder.

getEncodedFrame

public byte[] getEncodedFrame()
Returns the result data extracted from one ore more rtp packest.

Returns:
the result data.

getEncodedFrameLen

public int getEncodedFrameLen()
Returns the result data length.

Returns:
the result length.

reset

void reset()

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

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