Class VideoBuffer

java.lang.Object
javaforce.media.VideoBuffer

public class VideoBuffer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    VideoBuffer(int width, int height, int frames)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static float
    compareFrames(int[] frame1, int[] frame2, int width, int height)
    Compares two frames returning percentage of pixels that are different.
    void
    Frees the image obtained by getNewFrame()
    void
    Frees the image obtained by getNextFrame()
    Returns the next image to add a frame to the buffer (the head) Returns null if buffer is full.
    Returns the next image to be removed from the buffer (the tail)
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VideoBuffer

      public VideoBuffer(int width, int height, int frames)
  • Method Details

    • getNewFrame

      public JFImage getNewFrame()
      Returns the next image to add a frame to the buffer (the head) Returns null if buffer is full.
    • freeNewFrame

      public void freeNewFrame()
      Frees the image obtained by getNewFrame()
    • getNextFrame

      public JFImage getNextFrame()
      Returns the next image to be removed from the buffer (the tail)
    • freeNextFrame

      public void freeNextFrame()
      Frees the image obtained by getNextFrame()
    • size

      public int size()
    • clear

      public void clear()
    • compareFrames

      public static float compareFrames(int[] frame1, int[] frame2, int width, int height)
      Compares two frames returning percentage of pixels that are different.