com.smaxe.uv.media.core
Class VideoFrame

java.lang.Object
  extended by com.smaxe.uv.media.core.VideoFrame

public final class VideoFrame
extends java.lang.Object

VideoFrame - video frame.

Author:
Andrei Sochirca

Field Summary
 int height
          height.
 int[] rgb
          RGB data (array size is width * height) in the ARGB-int format (A-highest byte, B - lowest byte).
 java.lang.Object tag
          tag associated with the video frame.
 long timestamp
          timestamp.
 int width
          width.
 
Constructor Summary
VideoFrame(com.smaxe.video.VideoFrame frame)
          Constructor.
VideoFrame(int width, int height)
          Constructor.
VideoFrame(int width, int height, int[] rgb)
          Constructor.
VideoFrame(long timestamp, int width, int height, int[] rgb)
          Constructor.
VideoFrame(long timestamp, VideoFrame frame)
          Constructor.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

public final long timestamp
timestamp.


width

public final int width
width.


height

public final int height
height.


rgb

public final int[] rgb
RGB data (array size is width * height) in the ARGB-int format (A-highest byte, B - lowest byte). The first pixel is top-left corner pixel.


tag

public java.lang.Object tag
tag associated with the video frame.

Constructor Detail

VideoFrame

public VideoFrame(int width,
                  int height)
Constructor.

Parameters:
width - frame width
height - frame height

VideoFrame

public VideoFrame(int width,
                  int height,
                  int[] rgb)
Constructor.

Parameters:
width - frame width
height - frame height
rgb - frame rgb data (array size is width * height)

VideoFrame

public VideoFrame(long timestamp,
                  int width,
                  int height,
                  int[] rgb)
Constructor.

Parameters:
timestamp - frame timestamp
width - frame width
height - frame height
rgb - frame rgb data (array size is width * height)

VideoFrame

public VideoFrame(long timestamp,
                  VideoFrame frame)
Constructor.

Parameters:
timestamp - frame timestamp
frame - frame

VideoFrame

public VideoFrame(com.smaxe.video.VideoFrame frame)
Constructor.

Parameters:
frame - frame
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object