Ejemplo n.º 1
0
 /// <summary>
 /// Constructs a frame compressor
 /// </summary>
 /// <param name="information">Frame information</param>
 public SnappyFrameCompressor(KinectFrameInformation information)
 {
     this.information         = information;
     this.maxCompressedLength = SnappyPI.SnappyCodec.GetMaximumCompressedLength(information.FrameDataSize);
     this.compressedFrameData = new byte[this.maxCompressedLength];
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a frame compressor
 /// </summary>
 /// <param name="information">Frame information</param>
 public SnappyFrameDecompressor(KinectFrameInformation information)
 {
     this.information           = information;
     this.unCompressedFrameData = new byte[this.information.FrameDataSize];
 }