Esempio n. 1
0
		public VideoBuffer(int width, int height, PixFrmt pixFrmt, int stride) {
			this.memoryMappedFileName = Guid.NewGuid().ToString();
			this.width = width;
			this.height = height;
			this.pixelFormat = pixFrmt;
			this.stride = stride;
		}
Esempio n. 2
0
		public VideoBuffer(int width, int height, PixFrmt pixFrmt) {
			this.memoryMappedFileName = Guid.NewGuid().ToString();
			this.width = width;
			this.height = height;
			this.pixelFormat = pixFrmt;
			this.stride = ((width * pixelFormat.bitsPerPixel + 7) / 8 + 15) & ~15;
		}
Esempio n. 3
0
 public VideoBuffer(int width, int height, PixFrmt pixFrmt, int stride)
 {
     this.memoryMappedFileName = Guid.NewGuid().ToString();
     this.width       = width;
     this.height      = height;
     this.pixelFormat = pixFrmt;
     this.stride      = stride;
 }
Esempio n. 4
0
 public VideoBuffer(int width, int height, PixFrmt pixFrmt)
 {
     this.memoryMappedFileName = Guid.NewGuid().ToString();
     this.width       = width;
     this.height      = height;
     this.pixelFormat = pixFrmt;
     this.stride      = ((width * pixelFormat.bitsPerPixel + 7) / 8 + 15) & ~15;
 }