|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectThincVideoFormat
public abstract class ThincVideoFormat
abstract class for video format used in ThinSMsgVideo
.
Field Summary | |
---|---|
private static int[] |
clientFormats
|
private static int |
current
|
static int[] |
finalFormats
|
static int |
MAX_FORMAT
|
private static int[] |
serverFormats
|
static int |
UYVY
|
static int |
YUY2
|
static int |
YV12
|
Constructor Summary | |
---|---|
ThincVideoFormat()
|
Method Summary | |
---|---|
static int[] |
getFormat()
setFormat() gets an array of final format which both server and client accepted from ThincVideoFormat class. |
abstract 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. |
static void |
setFormat(int id)
setFormat() sets the format from the server into ThincVideoFormat class. |
private short |
unsigned(byte src)
|
protected int |
yuvToRgb(byte y,
byte u,
byte v)
yuvToRgb primitive method which converts YUV pixel into ARGB pixel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int YV12
public static final int YUY2
public static final int UYVY
public static final int MAX_FORMAT
private static final int[] clientFormats
private static int[] serverFormats
public static int[] finalFormats
private static int current
Constructor Detail |
---|
public ThincVideoFormat()
Method Detail |
---|
public static void setFormat(int id)
ThincVideoFormat
class.
id
- format id to setpublic static int[] getFormat()
ThincVideoFormat
class.
public abstract java.nio.IntBuffer process(int width, int height, int size) throws ThincException
ThinSMsgVideo
to draw ARGB image into frame buffer.
width
- width of YUV imageheight
- height of YUV imagesize
- size of YUV image
ThincException
protected int yuvToRgb(byte y, byte u, byte v)
y
- y value for source pixelu
- u value for source pixelv
- v value for source pixel
private short unsigned(byte src)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |