Class HFlip

  • All Implemented Interfaces:
    javax.media.Codec, javax.media.Controls, javax.media.Effect, javax.media.PlugIn

    public class HFlip
    extends AbstractCodec2
    implements javax.media.Effect
    Implements a video Effect which horizontally flips AVFrames.
    Author:
    Sebastien Vincent, Lyubomir Marinov
    • Constructor Detail

      • HFlip

        public HFlip()
        Initializes a new HFlip instance.
    • Method Detail

      • doOpen

        protected void doOpen()
                       throws javax.media.ResourceUnavailableException
        Opens this Effect.
        Specified by:
        doOpen in class AbstractCodec2
        Throws:
        javax.media.ResourceUnavailableException - if any of the required resource cannot be allocated
        See Also:
        AbstractCodec2.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 AbstractCodec2
        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:
        AbstractCodec2.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