Class VideoBuffer

java.lang.Object
javaforce.media.VideoBuffer

public class VideoBuffer extends Object
  • Constructor Details

    • VideoBuffer

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

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • 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.