本文整理汇总了Java中javax.media.format.VideoFormat.FALSE属性的典型用法代码示例。如果您正苦于以下问题:Java VideoFormat.FALSE属性的具体用法?Java VideoFormat.FALSE怎么用?Java VideoFormat.FALSE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.media.format.VideoFormat
的用法示例。
在下文中一共展示了VideoFormat.FALSE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LiveStream
public LiveStream(MediaLocator locator) {
try {
parseLocator(locator);
} catch (Exception e) {
System.err.println(e);
}
//size = Toolkit.getDefaultToolkit().getScreenSize();
size = new Dimension(width, height);
try {
robot = new Robot();
} catch (AWTException awe) {
throw new RuntimeException("");
}
maxDataLength = size.width * size.height * 3;
rgbFormat = new RGBFormat(size, maxDataLength,
Format.intArray,
frameRate,
32,
0xFF0000, 0xFF00, 0xFF,
1, size.width,
VideoFormat.FALSE,
Format.NOT_SPECIFIED);
// generate the data
data = new int[maxDataLength];
thread = new Thread(this, "Screen Grabber");
}
示例2: setDimension
public void setDimension(int w, int h) {
width = w;
height = h;
size = new Dimension(width, height);
maxDataLength = size.width * size.height * 3;
rgbFormat = new RGBFormat(size, maxDataLength, Format.intArray,
frameRate, 32, 0xFF0000, 0xFF00, 0xFF, 1, size.width,
VideoFormat.FALSE, Format.NOT_SPECIFIED);
}
示例3: setFrameRate
public void setFrameRate(float ffps) {
frameRate = ffps;
seqNo = 0;
rateChanged = true;
rateChanged2 = true;
everChanged = true;
maxDataLength = size.width * size.height * 3;
rgbFormat = new RGBFormat(size, maxDataLength, Format.intArray,
frameRate, 32, 0xFF0000, 0xFF00, 0xFF, 1, size.width,
VideoFormat.FALSE, Format.NOT_SPECIFIED);
}
示例4: StreamPantalla
public StreamPantalla(MediaLocator locator) {
try {
parseLocator(locator);
} catch (Exception e) {
System.err.println(e);
}
size = Toolkit.getDefaultToolkit().getScreenSize();
try {
robot = new Robot();
} catch (AWTException awe) {
throw new RuntimeException("");
}
maxDataLength = size.width * size.height * 3;
rgbFormat = new RGBFormat(size, maxDataLength, Format.intArray,
frameRate, 32, 0xFF0000, 0xFF00, 0xFF, 1, size.width,
VideoFormat.FALSE, Format.NOT_SPECIFIED);
// VistaFPS frame1 = new VistaFPS("Capture Frame");
// frame1.pack();
// frame1.setSizeMarcoCaptura(new Dimension(width, height));
// frame1.setVisible(true);
// frame1.FrameTransmit(StreamPantalla.this);
// generate the data
data = new int[maxDataLength];
thread = new Thread(this, "Hilo Screen Grabber RTP");
}
示例5: LiveStream
public LiveStream() {
if (videoData) {
int x, y, pos, revpos;
size = new Dimension(320, 240);
maxDataLength = size.width * size.height * 3;
rgbFormat = new RGBFormat(size, maxDataLength,
Format.byteArray,
frameRate,
24,
3, 2, 1,
3, size.width * 3,
VideoFormat.FALSE,
Format.NOT_SPECIFIED);
// generate the data
data = new byte[maxDataLength];
pos = 0;
revpos = (size.height - 1) * size.width * 3;
for (y = 0; y < size.height / 2; y++) {
for (x = 0; x < size.width; x++) {
byte value = (byte) ((y*2) & 0xFF);
data[pos++] = value;
data[pos++] = 0;
data[pos++] = 0;
data[revpos++] = value;
data[revpos++] = 0;
data[revpos++] = 0;
}
revpos -= size.width * 6;
}
} else { // audio data
audioFormat = new AudioFormat(AudioFormat.LINEAR,
8000.0,
8,
1,
Format.NOT_SPECIFIED,
AudioFormat.SIGNED,
8,
Format.NOT_SPECIFIED,
Format.byteArray);
maxDataLength = 1000;
}
thread = new Thread(this);
}