Class ThincVideoFormatYV12
java.lang.Object
ThincVideoFormat
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
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 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
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
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 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