Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.video
Class HFlip

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.java.sip.communicator.impl.neomedia.codec.AbstractCodecExt
                  extended by net.java.sip.communicator.impl.neomedia.codec.video.HFlip
All Implemented Interfaces:
javax.media.Codec, javax.media.Controls, javax.media.Effect, javax.media.PlugIn

public class HFlip
extends AbstractCodecExt
implements javax.media.Effect

Implements a video Effect which horizontally flips AVFrames.

Author:
Sebastien Vincent, Lyubomir 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
HFlip()
          Initializes a new HFlip instance.
 
Method Summary
protected  void doClose()
          Closes this Effect.
protected  void doOpen()
          Opens this Effect.
protected  int doProcess(javax.media.Buffer inputBuffer, javax.media.Buffer outputBuffer)
          Performs the media processing defined by this Effect.
 void reset()
          Resets the state of this PlugIn.
 
Methods inherited from class net.java.sip.communicator.impl.neomedia.codec.AbstractCodecExt
close, discardOutputBuffer, getMatchingOutputFormats, getName, getSupportedOutputFormats, matches, open, process, setInputFormat, setOutputFormat, updateOutput, validateByteArraySize, validateShortArraySize
 
Methods inherited from class net.sf.fmj.media.AbstractCodec
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
 
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.Codec
getSupportedInputFormats, getSupportedOutputFormats, process, setInputFormat, setOutputFormat
 
Methods inherited from interface javax.media.PlugIn
close, getName, open
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Constructor Detail

HFlip

public HFlip()
Initializes a new HFlip instance.

Method Detail

doClose

protected void doClose()
Closes this Effect.

Specified by:
doClose in class AbstractCodecExt
See Also:
AbstractCodecExt.doClose()

doOpen

protected void doOpen()
               throws javax.media.ResourceUnavailableException
Opens this Effect.

Specified by:
doOpen in class AbstractCodecExt
Throws:
javax.media.ResourceUnavailableException - if any of the required resource cannot be allocated
See Also:
AbstractCodecExt.doOpen()

doProcess

protected int doProcess(javax.media.Buffer inputBuffer,
                        javax.media.Buffer outputBuffer)
Performs the media processing defined by this Effect.

Specified by:
doProcess in class AbstractCodecExt
Parameters:
inputBuffer - the Buffer that contains the media data to be processed
outputBuffer - the Buffer in which to store the processed media data
Returns:
BUFFER_PROCESSED_OK if the processing is successful
See Also:
AbstractCodecExt.doProcess(Buffer, Buffer)

reset

public void reset()
Resets the state of this PlugIn.

Specified by:
reset in interface javax.media.PlugIn
Overrides:
reset in class net.sf.fmj.media.AbstractPlugIn

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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