Class ThincVideoFormatYUY2
java.lang.Object
ThincVideoFormat
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MESSAGE_SIZE
public static final int MESSAGE_SIZE
- See Also:
- Constant Field Values
pitch
int pitch
handler
ThincMsgHandler handler
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 messageheight
- width
-
- Throws:
ThincException
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 imageheight
- height of YUV imagesize
- size of YUV image
- Returns:
- ARGB image represented as IntBuffer object
- Throws:
ThincException