Beispiel #1
0
 protected override void Kinect_NewRecordedAudio(byte[] audio)
 {
     base.Kinect_NewRecordedAudio(audio);
     if (NewCompressedAudioStream != null)
     {
         Compression<byte[]> comp = new Compression<byte[]>();
         byte[] compressedValue = comp.GzipCompress(audio);
         NewCompressedAudioStream(compressedValue, audio);
     }
 }
Beispiel #2
0
        protected override void Kinect_NewSkeletonFrame(Skel skeletonImage)
        {
            base.Kinect_NewSkeletonFrame(skeletonImage);

            if (NewCompressedSkeletonFrame != null)
            {
                Compression<SkeletonFrame> comp = new Compression<SkeletonFrame>();
                byte[] compressedVal = comp.GzipCompress(skeletonImage.Skeleton);
                NewCompressedSkeletonFrame(compressedVal, skeletonImage.Skeleton);
            }
        }
Beispiel #3
0
        protected override void Kinect_NewDepthFrame(Depth depthImage)
        {
            base.Kinect_NewDepthFrame(depthImage);

            if (NewCompressedKinectDepthFrame != null)
            {
                Compression<DepthImageFrame> comp = new Compression<DepthImageFrame>();
                byte[] compressedVal = comp.GzipCompress(depthImage.DepthFrame);
                NewCompressedKinectDepthFrame(compressedVal, depthImage.DepthFrame);
            }
        }
Beispiel #4
0
        protected override void Kinect_NewVideoFrame(VideoImage videoImage)
        {
            base.Kinect_NewVideoFrame(videoImage);

            if (NewCompressedKinectVideoFrame != null)
            {
                Compression<ImageFrame> comp = new Compression<ImageFrame>();
                byte[] compressedVal = comp.GzipCompress(videoImage.ImageFrame);
                NewCompressedKinectVideoFrame(compressedVal, videoImage.ImageFrame);
            }
        }