Class ThincVideoFormatYUY2

java.lang.Object
  extended by ThincVideoFormat
      extended by ThincVideoFormatYUY2

public class ThincVideoFormatYUY2
extends ThincVideoFormat

class for YUY2 video format used in ThincSMsgVideo.

Author:
Young Jin Yoon
See Also:
ThincVideoFormat, http://www.fourcc.org

Field Summary
(package private)  ThincMsgHandler handler
           
static int MESSAGE_SIZE
           
(package private)  int pitch
           
 
Fields inherited from class ThincVideoFormat
finalFormats, MAX_FORMAT, UYVY, YUY2, YV12
 
Constructor Summary
ThincVideoFormatYUY2(ThincMsgHandler th, short width, short height)
          creates ThincVideoFormatYUY2 object. it also receives the message format information from the server.
 
Method Summary
 java.nio.IntBuffer process(int width, int height, int size)
          process() receives YUV image and converts it into ARGB images. it is used in ThinSMsgVideo to draw ARGB image into frame buffer.
 
Methods inherited from class ThincVideoFormat
getFormat, setFormat, yuvToRgb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_SIZE

public static final int MESSAGE_SIZE
See Also:
Constant Field Values

pitch

int pitch

handler

ThincMsgHandler handler
Constructor Detail

ThincVideoFormatYUY2

public ThincVideoFormatYUY2(ThincMsgHandler th,
                            short width,
                            short height)
                     throws ThincException
creates ThincVideoFormatYUY2 object. it also receives the message format information from the server.

Parameters:
th - ThincMsgHandler to handle the message
height -
width -
Throws:
ThincException
Method Detail

process

public java.nio.IntBuffer process(int width,
                                  int height,
                                  int size)
                           throws ThincException
Description copied from class: ThincVideoFormat
process() receives YUV image and converts it into ARGB images. it is used in ThinSMsgVideo to draw ARGB image into frame buffer.

Specified by:
process in class ThincVideoFormat
Parameters:
width - width of YUV image
height - height of YUV image
size - size of YUV image
Returns:
ARGB image represented as IntBuffer object
Throws:
ThincException