예제 #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];
 }
예제 #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];
 }