edu.umd.cfar.lamp.viper.gui.core
Class DataUtils

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.gui.core.DataUtils

public class DataUtils
extends java.lang.Object

Utility methods for dealing with viper data and video files, something the api doesn't present.


Constructor Summary
DataUtils()
           
 
Method Summary
static int getFrameCount(Sourcefile s)
          Get the number of frames in a given video file.
static int getSourcefileHeight(Sourcefile s)
          Get the height (in pixels) of the
static int getSourcefileWidth(Sourcefile s)
          Gets the width (in pixels) of the given sourcefile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataUtils

public DataUtils()
Method Detail

getSourcefileWidth

public static int getSourcefileWidth(Sourcefile s)
Gets the width (in pixels) of the given sourcefile. This doesn't take into account aspect ratio.

Parameters:
s - The sourcefile to check
Returns:

getSourcefileHeight

public static int getSourcefileHeight(Sourcefile s)
Get the height (in pixels) of the

Parameters:
s -
Returns:

getFrameCount

public static int getFrameCount(Sourcefile s)
Get the number of frames in a given video file.

Parameters:
s -
Returns: