com.fatwire.agent
Class ItemFrame

java.lang.Object
  extended by com.fatwire.agent.ItemFrame

public class ItemFrame
extends java.lang.Object

Item video frame. This class is used to store the frame extracted from a video file. The fixed number of frames (typically key frames) are usually extracted.


Constructor Summary
ItemFrame(byte[] frame, int sampleTime)
          Constructor.
 
Method Summary
 byte[] getBytes()
          Returns the frame data in bytes;
 int getSampleTime()
          Gets time in milliseconds from the beginning of the video file when this frame was taken.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemFrame

public ItemFrame(byte[] frame,
                 int sampleTime)
Constructor.

Parameters:
frame - an array of bytes costituting a frame
sampleTime - time in milliseconds from the beginning of the video file when this frame was taken.
Method Detail

getBytes

public byte[] getBytes()
Returns the frame data in bytes;

Returns:
frame data.

getSampleTime

public int getSampleTime()
Gets time in milliseconds from the beginning of the video file when this frame was taken.

Returns:
time in milliseconds.