DESY ACOP Beans Home

de.desy.acop.video.displayer
Class ImageCounter

java.lang.Object
  extended by de.desy.acop.video.displayer.ImageCounter

public class ImageCounter
extends java.lang.Object

Images counter. Calculates dropped frames and dropped frames percentage for each new subsequent incoming frame

Author:
sweisse, mdavid

Constructor Summary
ImageCounter()
           
 
Method Summary
 void calculate(long frameNumber)
           
 long getDroppedFrames()
           
 double getDroppedPercent()
           
 long getLastFrameNumber()
           
 double getRatio()
           
 long getReceivedFrames()
           
 void reset()
          Resets image counter
 void setLastFrameNumber(long lastFrameNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCounter

public ImageCounter()
Method Detail

getLastFrameNumber

public long getLastFrameNumber()

setLastFrameNumber

public void setLastFrameNumber(long lastFrameNumber)

calculate

public void calculate(long frameNumber)

getDroppedFrames

public long getDroppedFrames()

getReceivedFrames

public long getReceivedFrames()

getRatio

public double getRatio()

getDroppedPercent

public double getDroppedPercent()

reset

public void reset()
Resets image counter



Copyright © 2010. All Rights Reserved.