当前位置: 首页>>代码示例>>Java>>正文


Java VideoFormat.FALSE属性代码示例

本文整理汇总了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");
   }
 
开发者ID:champtar,项目名称:fmj-sourceforge-mirror,代码行数:27,代码来源:LiveStream.java

示例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);
}
 
开发者ID:mloobo,项目名称:Dolphin-Streaming-Server,代码行数:9,代码来源:StreamPantalla.java

示例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);
}
 
开发者ID:mloobo,项目名称:Dolphin-Streaming-Server,代码行数:11,代码来源:StreamPantalla.java

示例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");
	}
 
开发者ID:mloobo,项目名称:Dolphin-Streaming-Server,代码行数:27,代码来源:StreamPantalla.java

示例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);
   }
 
开发者ID:champtar,项目名称:fmj-sourceforge-mirror,代码行数:46,代码来源:LiveStream.java


注:本文中的javax.media.format.VideoFormat.FALSE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。