Class ThincVideoFormatYV12

java.lang.Object
  extended by ThincVideoFormat
      extended by ThincVideoFormatYV12

public class ThincVideoFormatYV12
extends ThincVideoFormat

class for YV12 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 yuv_uoffset
           
(package private)  int yuv_upitch
           
(package private)  int yuv_voffset
           
(package private)  int yuv_vpitch
           
(package private)  int yuv_yoffset
           
(package private)  int yuv_ypitch
           
 
Fields inherited from class ThincVideoFormat
finalFormats, MAX_FORMAT, UYVY, YUY2, YV12
 
Constructor Summary
ThincVideoFormatYV12(ThincMsgHandler th, short width, short height)
          creates ThincVideoFormatYV12 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

yuv_yoffset

int yuv_yoffset

yuv_uoffset

int yuv_uoffset

yuv_voffset

int yuv_voffset

yuv_ypitch

int yuv_ypitch

yuv_upitch

int yuv_upitch

yuv_vpitch

int yuv_vpitch

handler

ThincMsgHandler handler
Constructor Detail

ThincVideoFormatYV12

public ThincVideoFormatYV12(ThincMsgHandler th,
                            short width,
                            short height)
                     throws ThincException
creates ThincVideoFormatYV12 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